2026-07-29 08:29:29 +00:00
// Module ID: 11108
// Function ID: 11109
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterModalRequestConfirm
2026-07-29 08:29:29 +00:00
// Dependencies: [5, 19, 17, 1874, 5794, 21, 4189, 712, 1480, 647, 5795, 11109, 5855, 11110, 6783, 6784, 1297, 1416, 1236, 2223, 4185, 11111, 11112, 11120, 5022, 4600, 4395, 6785, 6256, 38, 10008, 7699, 5637, 8125, 1906, 6747, 6749, 4405, 5143, 11121, 11122, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 11108 (FamilyCenterModalRequestConfirm)
2026-07-23 10:11:24 +00:00
import closure_3 from "jsxProd" ;
2026-07-29 08:29:29 +00:00
import messagesProxy from "messagesProxy" ;
import get_ActivityIndicator from "getAvatarURL" ;
import mergeGuildAvatar from "mergeGuildAvatar" ;
2026-07-23 10:11:24 +00:00
import items from "items" ;
2026-07-29 08:29:29 +00:00
import jsxProd from "registerAsset" ;
import createCacheKey from "createCacheKey" ;
import createCacheKey from "createCacheKey" ;
import createCacheKey from "createCacheKey" ;
import createCacheKey from "createCacheKey" ;
import createCacheKey from "createCacheKey" ;
import createCacheKey from "createCacheKey" ;
2026-07-23 10:11:24 +00:00
import HeaderBackImage from "HeaderBackImage" ;
2026-07-29 08:29:29 +00:00
let c10 ;
let c5 ;
let c9 ;
2026-07-23 10:11:24 +00:00
let closure_12 ;
let closure_14 ;
let closure_6 ;
2026-07-29 08:29:29 +00:00
let map1 ;
let metroImportAll ;
let unpackModuleId ;
2026-07-23 10:11:24 +00:00
const require = arg1 ;
2026-07-20 16:05:17 +00:00
class FamilyCenterModalRequestConfirm {
constructor ( arg0 ) {
userId = global . userId ;
linkCode = global . linkCode ;
teenIdentity = global . teenIdentity ;
2026-07-29 08:29:29 +00:00
useNavigation = undefined ;
requestLink = undefined ;
tmp = Fragment ( ) ;
tmp2 = userId ;
tmp3 = useNavigation ;
2026-07-23 10:11:24 +00:00
obj = require ( "useNavigation" ) ;
2026-07-20 16:05:17 +00:00
navigation = obj . useNavigation ( ) ;
2026-07-23 10:11:24 +00:00
useNavigation = navigation ;
obj2 = require ( "defaultAreStatesEqual" ) ;
2026-07-20 16:05:17 +00:00
items = [ ] ;
2026-07-29 08:29:29 +00:00
items [ 0 ] = View ;
stateFromStores = obj2 . useStateFromStores ( items , ( ) = > currentUser . getCurrentUser ( ) ) ;
2026-07-20 16:05:17 +00:00
items1 = [ ] ;
items1 [ 0 ] = navigation ;
items2 = [ ] ;
items2 [ 0 ] = navigation ;
2026-07-29 08:29:29 +00:00
callback = messagesProxy . useCallback ( ( ) = > {
2026-07-20 16:05:17 +00:00
const result = linkCode ( navigation [ 10 ] ) . clearPendingConnection ( ) ;
navigation . push ( userId ( navigation [ 11 ] ) . FamilyCenterModalRequestSections . SENT ) ;
} , items1 ) ;
2026-07-29 08:29:29 +00:00
callback1 = messagesProxy . useCallback ( ( arg0 ) = > {
2026-07-20 16:05:17 +00:00
const failureCodeForAPIError = userId ( navigation [ 12 ] ) . getFailureCodeForAPIError ( arg0 ) ;
navigation . push ( userId ( navigation [ 11 ] ) . FamilyCenterModalRequestSections . ERROR , { failureCode : failureCodeForAPIError } ) ;
} , items2 ) ;
2026-07-23 10:11:24 +00:00
obj3 = require ( "useFamilyCenterActions" ) ;
2026-07-20 16:05:17 +00:00
familyCenterActions = obj3 . useFamilyCenterActions ( { onSuccess : callback , onError : callback1 } ) ;
requestLink = familyCenterActions . requestLink ;
isRequestingLink = familyCenterActions . isRequestingLink ;
items3 = [ , , ] ;
items3 [ 0 ] = requestLink ;
items3 [ 1 ] = userId ;
items3 [ 2 ] = linkCode ;
2026-07-29 08:29:29 +00:00
tmp10 = jsxs ;
callback2 = messagesProxy . useCallback ( ( ) = > {
2026-07-20 16:05:17 +00:00
requestLink ( userId , linkCode ) ;
} , items3 ) ;
if ( null != teenIdentity ) {
tmp11 = View ;
2026-07-29 08:29:29 +00:00
obj = { style : null , children : null } ;
obj [ 0 ] = tmp . connectionHeader ;
obj1 = { style : null , children : null } ;
obj1 [ 0 ] = tmp . headerIcons ;
tmp12 = jsx ;
2026-07-20 16:05:17 +00:00
userAvatarSource = undefined ;
if ( null != stateFromStores ) {
2026-07-29 08:29:29 +00:00
tmp14 = linkCode ;
obj6 = require ( "getAvatarURL" ) ;
userAvatarSource = obj6 . getUserAvatarSource ( stateFromStores ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj2 = { source : null , size : null , accessibilityLabel : null } ;
obj2 [ 0 ] = userAvatarSource ;
obj2 [ 1 ] = require ( "Button" ) . AvatarSizes . LARGE ;
2026-07-23 10:11:24 +00:00
intl = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
tmp15 = linkCode ;
str = undefined ;
if ( stateFromStores != null ) {
str = stateFromStores . globalName ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( str == null ) {
2026-07-20 16:05:17 +00:00
username = undefined ;
2026-07-29 08:29:29 +00:00
if ( stateFromStores != null ) {
2026-07-20 16:05:17 +00:00
username = stateFromStores . username ;
}
2026-07-29 08:29:29 +00:00
str = username ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( str == null ) {
str = "" ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj3 = { name : null } ;
obj3 [ 0 ] = str ;
obj2 [ 2 ] = intl . formatToPlainString ( require ( "messagesProxy" ) . kFj4h1 , obj3 ) ;
2026-07-20 16:05:17 +00:00
items4 = [ , , ] ;
2026-07-29 08:29:29 +00:00
items4 [ 0 ] = tmp12 ( require ( "Button" ) . Avatar , obj2 ) ;
obj4 = { style : null , children : null } ;
obj4 [ 0 ] = tmp . ellipseGroup ;
obj5 = { style : null } ;
obj5 [ 0 ] = tmp . ellipse ;
2026-07-20 16:05:17 +00:00
items5 = [ , , ] ;
2026-07-29 08:29:29 +00:00
items5 [ 0 ] = tmp12 ( tmp11 , obj5 ) ;
obj6 = { style : null } ;
obj6 [ 0 ] = tmp . ellipse ;
items5 [ 1 ] = tmp12 ( tmp11 , obj6 ) ;
obj7 = { style : null } ;
obj7 [ 0 ] = tmp . ellipse ;
items5 [ 2 ] = tmp12 ( tmp11 , obj7 ) ;
obj4 [ 1 ] = items5 ;
items4 [ 1 ] = tmp10 ( tmp11 , obj4 ) ;
obj8 = { source : null , size : null , accessibilityLabel : null } ;
tmp15Result = require ( "getAvatarURL" ) ;
obj9 = { id : null , avatar : null , discriminator : "0" } ;
( { id : obj15 [ 0 ] , avatar : obj15 [ 1 ] } = teenIdentity ) ;
obj8 [ 0 ] = tmp15Result . getUserAvatarSource ( obj9 ) ;
obj8 [ 1 ] = require ( "Button" ) . AvatarSizes . LARGE ;
2026-07-23 10:11:24 +00:00
intl2 = require ( "getSystemLocale" ) . intl ;
2026-07-20 16:05:17 +00:00
username = teenIdentity . global_name ;
2026-07-29 08:29:29 +00:00
if ( username == null ) {
2026-07-20 16:05:17 +00:00
username = teenIdentity . username ;
}
2026-07-29 08:29:29 +00:00
obj10 = { name : null } ;
obj10 [ 0 ] = username ;
obj8 [ 2 ] = intl2 . formatToPlainString ( require ( "messagesProxy" ) . kFj4h1 , obj10 ) ;
items4 [ 2 ] = tmp12 ( require ( "Button" ) . Avatar , obj8 ) ;
obj1 [ 1 ] = items4 ;
2026-07-20 16:05:17 +00:00
items6 = [ , , , ] ;
2026-07-29 08:29:29 +00:00
items6 [ 0 ] = tmp10 ( tmp11 , obj1 ) ;
obj11 = { variant : "heading-xl/bold" , color : "mobile-text-heading-primary" , style : null , children : null } ;
obj11 [ 2 ] = tmp . title ;
2026-07-23 10:11:24 +00:00
intl3 = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj11 [ 3 ] = intl3 . string ( require ( "messagesProxy" ) . sMmIbm ) ;
items6 [ 1 ] = tmp12 ( require ( "Text" ) . Text , obj11 ) ;
obj12 = { variant : "heading-xl/bold" , color : "mobile-text-heading-primary" , style : null , children : null } ;
obj12 [ 2 ] = tmp . teenName ;
2026-07-20 16:05:17 +00:00
username2 = teenIdentity . global_name ;
2026-07-29 08:29:29 +00:00
if ( username2 == null ) {
2026-07-20 16:05:17 +00:00
username2 = teenIdentity . username ;
}
2026-07-29 08:29:29 +00:00
obj12 [ 3 ] = username2 ;
items6 [ 2 ] = tmp12 ( require ( "Text" ) . Text , obj12 ) ;
obj13 = { variant : "text-sm/medium" , color : "text-muted" , style : null , children : null } ;
obj13 [ 2 ] = tmp . consent ;
2026-07-23 10:11:24 +00:00
intl4 = require ( "getSystemLocale" ) . intl ;
2026-07-20 16:05:17 +00:00
username3 = teenIdentity . global_name ;
2026-07-29 08:29:29 +00:00
if ( username3 == null ) {
2026-07-20 16:05:17 +00:00
username3 = teenIdentity . username ;
}
2026-07-29 08:29:29 +00:00
obj14 = { username : null } ;
obj14 [ 0 ] = username3 ;
obj13 [ 3 ] = intl4 . format ( require ( "messagesProxy" ) . yiUJNU , obj14 ) ;
items6 [ 3 ] = tmp12 ( require ( "Text" ) . Text , obj13 ) ;
obj [ 1 ] = items6 ;
tmp10Result = tmp10 ( tmp11 , obj ) ;
tmp18 = tmp15 ;
tmp19 = tmp12 ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp20 = Fragment ;
obj15 = { children : null } ;
tmp21 = jsx ;
tmp22 = Image ;
obj16 = { style : null , source : null } ;
obj16 [ 0 ] = tmp . art ;
tmp23 = linkCode ;
obj16 [ 1 ] = require ( "registerAsset" ) ;
2026-07-20 16:05:17 +00:00
items7 = [ , ] ;
2026-07-29 08:29:29 +00:00
items7 [ 0 ] = jsx ( Image , obj16 ) ;
obj17 = { style : null , variant : "text-lg/bold" , children : null } ;
obj17 [ 0 ] = tmp . headerText ;
2026-07-23 10:11:24 +00:00
intl7 = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj17 [ 2 ] = intl7 . string ( require ( "messagesProxy" ) . GH11eI ) ;
items7 [ 1 ] = jsx ( require ( "Text" ) . Text , obj17 ) ;
obj15 [ 0 ] = items7 ;
tmp10Result = tmp10 ( Fragment , obj15 ) ;
tmp18 = linkCode ;
tmp19 = jsx ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj18 = { children : null } ;
obj19 = { children : null } ;
2026-07-20 16:05:17 +00:00
items8 = [ , ] ;
items8 [ 0 ] = tmp10Result ;
2026-07-29 08:29:29 +00:00
items8 [ 1 ] = tmp19 ( require ( "RowGroup" ) , { } ) ;
obj19 [ 0 ] = items8 ;
2026-07-20 16:05:17 +00:00
items9 = [ , ] ;
2026-07-29 08:29:29 +00:00
items9 [ 0 ] = tmp10 ( require ( "ModalContent" ) . ModalContent , obj19 ) ;
obj20 = { children : null } ;
obj21 = { children : null } ;
obj22 = { variant : "primary" , size : "lg" , disabled : isRequestingLink , loading : isRequestingLink , text : null , onPress : null } ;
2026-07-23 10:11:24 +00:00
intl5 = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj22 [ 4 ] = intl5 . string ( require ( "messagesProxy" ) . ISg34l ) ;
obj22 [ 5 ] = callback2 ;
2026-07-20 16:05:17 +00:00
items10 = [ , ] ;
2026-07-29 08:29:29 +00:00
items10 [ 0 ] = tmp19 ( require ( "Button" ) . Button , obj22 ) ;
obj23 = { variant : "secondary" , size : "lg" , text : null , onPress : null } ;
2026-07-23 10:11:24 +00:00
intl6 = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj23 [ 2 ] = intl6 . string ( require ( "getSystemLocale" ) . t [ "ETE/oC" ] ) ;
obj23 [ 3 ] = require ( "module_4395" ) . pop ;
items10 [ 1 ] = tmp19 ( require ( "Button" ) . Button , obj23 ) ;
obj21 [ 0 ] = items10 ;
obj20 [ 0 ] = tmp10 ( require ( "ButtonGroup" ) . ButtonGroup , obj21 ) ;
items9 [ 1 ] = tmp19 ( require ( "ModalFooter" ) . ModalFooter , obj20 ) ;
obj18 [ 0 ] = items9 ;
return tmp10 ( require ( "ModalScreen" ) . ModalScreen , obj18 ) ;
2026-07-20 16:05:17 +00:00
}
}
class FamilyCenterModalRequestSuccess {
constructor ( ) {
2026-07-29 08:29:29 +00:00
tmp = Fragment ( ) ;
tmp2 = closure_0 ;
tmp3 = closure_2 ;
2026-07-23 10:11:24 +00:00
obj = require ( "defaultAreStatesEqual" ) ;
2026-07-20 16:05:17 +00:00
items = [ ] ;
2026-07-29 08:29:29 +00:00
items [ 0 ] = View ;
stateFromStores = obj . useStateFromStores ( items , ( ) = > currentUser . getCurrentUser ( ) ) ;
callback = messagesProxy . useCallback ( ( ) = > {
let arr = callback ( table [ 26 ] ) ;
2026-07-20 16:05:17 +00:00
arr = arr . pop ( ) ;
} , [ ] ) ;
if ( null === stateFromStores ) {
2026-07-29 08:29:29 +00:00
tmp6 = closure_1 ;
arr2 = require ( "module_4395" ) ;
2026-07-20 16:05:17 +00:00
arr = arr2 . pop ( ) ;
}
2026-07-29 08:29:29 +00:00
tmp8 = jsxs ;
2026-07-20 16:05:17 +00:00
tmp9 = jsx ;
tmp10 = View ;
2026-07-29 08:29:29 +00:00
obj = { style : tmp.content , children : null } ;
obj1 = { style : tmp.textWrapper , children : null } ;
obj2 = { style : tmp.illustration , children : null } ;
obj2 [ 1 ] = jsx ( require ( "AccountAgeTier10LargeBadge" ) . EnvelopeSpotIllustration , { scale : 0.7 } ) ;
2026-07-20 16:05:17 +00:00
items1 = [ , , ] ;
2026-07-29 08:29:29 +00:00
items1 [ 0 ] = jsx ( View , obj2 ) ;
obj3 = { variant : "heading-lg/bold" , color : "mobile-text-heading-primary" , style : tmp.header , children : null } ;
2026-07-23 10:11:24 +00:00
intl = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj3 [ 3 ] = intl . string ( require ( "messagesProxy" ) . EpwfZl ) ;
items1 [ 1 ] = jsx ( require ( "Text" ) . Text , obj3 ) ;
obj4 = { variant : "text-sm/medium" , color : "text-muted" , style : tmp.description , children : null } ;
2026-07-23 10:11:24 +00:00
intl2 = require ( "getSystemLocale" ) . intl ;
2026-07-20 16:05:17 +00:00
email = undefined ;
2026-07-29 08:29:29 +00:00
if ( stateFromStores != null ) {
2026-07-20 16:05:17 +00:00
email = stateFromStores . email ;
}
2026-07-29 08:29:29 +00:00
obj5 = { children : null } ;
obj6 = { children : null } ;
obj4 [ 3 ] = intl2 . format ( require ( "messagesProxy" ) . dVtWId , { email } ) ;
items1 [ 2 ] = tmp9 ( require ( "Text" ) . Text , obj4 ) ;
obj1 [ 1 ] = items1 ;
obj [ 1 ] = tmp8 ( tmp10 , obj1 ) ;
obj6 [ 0 ] = tmp9 ( tmp10 , obj ) ;
2026-07-20 16:05:17 +00:00
items2 = [ , ] ;
2026-07-29 08:29:29 +00:00
items2 [ 0 ] = tmp9 ( require ( "ModalContent" ) . ModalContent , obj6 ) ;
obj7 = { children : null } ;
obj8 = { size : "lg" , text : null , onPress : null } ;
2026-07-23 10:11:24 +00:00
intl3 = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj8 [ 1 ] = intl3 . string ( require ( "getSystemLocale" ) . t . cpT0Cq ) ;
obj8 [ 2 ] = callback ;
obj7 [ 0 ] = tmp9 ( require ( "Button" ) . Button , obj8 ) ;
items2 [ 1 ] = tmp9 ( require ( "ModalFooter" ) . ModalFooter , obj7 ) ;
obj5 [ 0 ] = items2 ;
return tmp8 ( require ( "ModalScreen" ) . ModalScreen , obj5 ) ;
2026-07-20 16:05:17 +00:00
}
}
class FamilyCenterModalRequestError {
constructor ( arg0 ) {
2026-07-29 08:29:29 +00:00
tmp = Fragment ( ) ;
tmp2 = closure_0 ;
tmp3 = closure_2 ;
2026-07-23 10:11:24 +00:00
obj = require ( "defaultAreStatesEqual" ) ;
2026-07-20 16:05:17 +00:00
items = [ ] ;
2026-07-29 08:29:29 +00:00
items [ 0 ] = View ;
stateFromStores = obj . useStateFromStores ( items , ( ) = > currentUser . getCurrentUser ( ) ) ;
tmp5 = closure_1 ;
tmp6 = require ( "useIsInAdultAgeGroup" ) ( ) ;
2026-07-23 10:11:24 +00:00
obj2 = require ( "Button" ) ;
boxShadowStyle = obj2 . generateBoxShadowStyle ( require ( "Button" ) . FOUR_DP_ELEVATION_SHADOW_PARAMS ) ;
2026-07-29 08:29:29 +00:00
callback = messagesProxy . useCallback ( ( ) = > {
let arr = callback ( table [ 26 ] ) ;
2026-07-20 16:05:17 +00:00
arr = arr . pop ( ) ;
} , [ ] ) ;
2026-07-29 08:29:29 +00:00
tmp9 = require ( "module_38" ) ( null != stateFromStores , "User must be logged in to see this modal." ) ;
2026-07-20 16:05:17 +00:00
obj3 = Image [ global . failureCode ] ;
2026-07-29 08:29:29 +00:00
tmp10 = tmp6 ;
obj = { isAdult : tmp10 , email : null } ;
2026-07-20 16:05:17 +00:00
email = stateFromStores . email ;
2026-07-29 08:29:29 +00:00
obj [ 1 ] = email ;
2026-07-20 16:05:17 +00:00
headerResult = obj3 . header ( obj ) ;
icon = obj3 . icon ;
2026-07-29 08:29:29 +00:00
tmp14 = jsxs ;
2026-07-20 16:05:17 +00:00
descriptionResult = obj3 . description ( obj ) ;
2026-07-29 08:29:29 +00:00
tmp13 = FamilyCenterIconType ;
tmp15 = jsx ;
tmp16 = View ;
obj1 = { style : items1 , children : null } ;
2026-07-20 16:05:17 +00:00
items1 = [ , ] ;
items1 [ 0 ] = tmp . ring ;
items1 [ 1 ] = boxShadowStyle ;
items2 = [ , ] ;
items2 [ 0 ] = tmp . iconContainer ;
2026-07-29 08:29:29 +00:00
obj2 = { style : items2 , children : null } ;
2026-07-20 16:05:17 +00:00
items2 [ 1 ] = icon === FamilyCenterIconType . CHECK ? tmp.positive : tmp.negative ;
2026-07-29 08:29:29 +00:00
if ( icon === tmp13 . CHECK ) {
obj3 = { source : null , color : "#FFF" } ;
obj3 [ 0 ] = require ( "registerAsset" ) ;
tmp15Result = tmp15 ( require ( "Button" ) . Icon , obj3 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj4 = { source : null , color : "#FFF" } ;
obj4 [ 0 ] = require ( "registerAsset" ) ;
tmp15Result = tmp15 ( require ( "Button" ) . Icon , obj4 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj5 = { children : null } ;
obj6 = { children : null } ;
obj2 [ 1 ] = tmp15Result ;
obj1 [ 1 ] = tmp15 ( tmp16 , obj2 ) ;
2026-07-20 16:05:17 +00:00
items3 = [ , , ] ;
2026-07-29 08:29:29 +00:00
items3 [ 0 ] = tmp15 ( tmp16 , obj1 ) ;
obj7 = { variant : "heading-lg/bold" , color : "mobile-text-heading-primary" , style : tmp.header , children : headerResult } ;
items3 [ 1 ] = tmp15 ( require ( "Text" ) . Text , obj7 ) ;
obj8 = { variant : "text-sm/medium" , color : "text-muted" , style : tmp.description , children : descriptionResult } ;
items3 [ 2 ] = tmp15 ( require ( "Text" ) . Text , obj8 ) ;
obj6 [ 0 ] = items3 ;
2026-07-20 16:05:17 +00:00
items4 = [ , ] ;
2026-07-29 08:29:29 +00:00
items4 [ 0 ] = tmp14 ( require ( "ModalContent" ) . ModalContent , obj6 ) ;
obj9 = { children : null } ;
obj10 = { text : null , onPress : null } ;
2026-07-23 10:11:24 +00:00
intl = require ( "getSystemLocale" ) . intl ;
2026-07-29 08:29:29 +00:00
obj10 [ 0 ] = intl . string ( require ( "getSystemLocale" ) . t . cpT0Cq ) ;
obj10 [ 1 ] = callback ;
obj9 [ 0 ] = tmp15 ( require ( "Button" ) . Button , obj10 ) ;
items4 [ 1 ] = tmp15 ( require ( "ModalFooter" ) . ModalFooter , obj9 ) ;
obj5 [ 0 ] = items4 ;
return tmp14 ( require ( "ModalScreen" ) . ModalScreen , obj5 ) ;
2026-07-20 16:05:17 +00:00
}
}
function FamilyCenterPrereqLoading ( arg0 ) {
2026-07-23 10:11:24 +00:00
let importDefault ;
let require ;
( { userId : require , linkCode : importDefault } = arg0 ) ;
2026-07-29 08:29:29 +00:00
let dependencyMap ;
let obj = require ( 1480 ) /* useNavigation */ ;
dependencyMap = obj . useNavigation ( ) ;
2026-07-20 16:05:17 +00:00
const effect = React . useEffect ( ( ) = > {
function _runPrereq() {
2026-07-29 08:29:29 +00:00
const self = this ;
const tmp = outer2_3 ( function * ( ) {
if ( c3 === 2 ) {
c3 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp4 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
return { value : "HermesInternal" , done : null } ;
}
} else {
try {
c3 = 2 ;
if ( 0 === c2 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
let closure_1 = tmp5 ;
let closure_0 = tmp2 ;
closure_0 = undefined ;
let obj1 = outer2_0 ( outer2_2 [ 11 ] ) ;
c2 = 1 ;
c3 = 1 ;
obj1 = { value : null , done : false } ;
obj1 [ 0 ] = obj1 . resolveConnectionPrereqTarget ( outer1_0 , outer1_1 ) ;
return obj1 ;
}
} else if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
closure_0 = arg1 ;
if ( closure_0 ) {
c3 = 3 ;
} else if ( closure_0 . section !== outer2_0 ( outer2_2 [ 11 ] ) . FamilyCenterModalRequestSections . ERROR ) {
if ( closure_0 . section !== outer2_0 ( outer2_2 [ 11 ] ) . FamilyCenterModalRequestSections . REQUEST ) {
if ( closure_0 . section !== outer2_0 ( outer2_2 [ 11 ] ) . FamilyCenterModalRequestSections . CONFIRM_AGE ) {
const replaced = c2 . replace ( outer2_0 . section ) ;
}
}
}
const replaced1 = c2 . replace ( outer2_0 . section , outer2_0 . params ) ;
}
} catch ( tmp29 ) {
c3 = tmp ;
throw tmp29 ;
}
}
} ) ;
const _runPrereq = tmp ;
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c0 = false ;
( function runPrereq() {
2026-07-29 08:29:29 +00:00
const self = this ;
const apply = _runPrereq . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
let c0 = true ;
2026-07-20 16:05:17 +00:00
} ;
} , [ ] ) ;
2026-07-29 08:29:29 +00:00
obj = { children : null } ;
obj = { style : callback5 ( ) . container , children : null } ;
obj [ 1 ] = callback ( require ( 5637 ) /* ActivityIndicator */ . ActivityIndicator , { } ) ;
obj [ 0 ] = callback ( closure_6 , obj ) ;
return callback ( require ( 6783 ) /* ModalScreen */ . ModalScreen , obj ) ;
2026-07-20 16:05:17 +00:00
}
function FamilyCenterPrereqScreen ( primaryButton ) {
let description ;
let title ;
primaryButton = primaryButton . primaryButton ;
( { title , description } = primaryButton ) ;
2026-07-23 10:11:24 +00:00
const tmp = callback6 ( ) ;
2026-07-29 08:29:29 +00:00
let obj = { children : null } ;
obj = { style : tmp.content , children : null } ;
2026-07-23 10:11:24 +00:00
obj = { variant : "heading-xl/bold" , color : "mobile-text-heading-primary" , style : tmp.title , children : title } ;
2026-07-29 08:29:29 +00:00
const items = [ callback ( require ( 4185 ) /* Text */ . Text , obj ) , callback ( require ( 4185 ) /* Text */ . Text , { variant : "text-sm/medium" , color : "text-muted" , style : tmp.description , children : description } ) ] ;
obj [ 1 ] = items ;
2026-07-20 16:05:17 +00:00
const items1 = [ callback2 ( closure_6 , obj ) , ] ;
2026-07-29 08:29:29 +00:00
const obj2 = { children : null } ;
obj2 [ 0 ] = callback ( require ( 4600 ) /* Button */ . Button , { text : primaryButton.text , onPress : primaryButton.onPress } ) ;
items1 [ 1 ] = callback ( require ( 11120 ) /* ModalFooter */ . ModalFooter , obj2 ) ;
obj [ 0 ] = items1 ;
return callback2 ( require ( 6783 ) /* ModalScreen */ . ModalScreen , obj ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
function FamilyCenterConfirmAgeScreen ( teenIdentity ) {
teenIdentity = teenIdentity . teenIdentity ;
const tmp = callback7 ( ) ;
let navigation ;
let stateFromStores ;
let dependencyMap ;
let obj = navigation ( 1480 ) ;
navigation = obj . useNavigation ( ) ;
let obj1 = navigation ( 647 ) ;
const items = [ mergeGuildAvatar ] ;
stateFromStores = obj1 . useStateFromStores ( items , ( ) = > {
currentUser = currentUser . getCurrentUser ( ) ;
2026-07-20 16:05:17 +00:00
let prop ;
2026-07-29 08:29:29 +00:00
if ( currentUser != null ) {
2026-07-20 16:05:17 +00:00
prop = currentUser . ageVerificationStatus ;
}
return prop ;
} ) ;
2026-07-29 08:29:29 +00:00
const tmp7 = stateFromStores ( 8125 ) ( stateFromStores ) ;
dependencyMap = tmp7 ;
const items1 = [ stateFromStores , tmp7 , navigation ] ;
2026-07-20 16:05:17 +00:00
const effect = React . useEffect ( ( ) = > {
2026-07-29 08:29:29 +00:00
let tmp2 = null != tmp3 ;
if ( tmp2 ) {
tmp2 = tmp !== stateFromStores ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( tmp2 ) {
tmp2 = null != stateFromStores ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( tmp2 ) {
tmp2 = stateFromStores !== navigation ( tmp3 [ 34 ] ) . AgeVerificationStatusUkAndAusOnly . UNVERIFIED ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( tmp2 ) {
2026-07-20 16:05:17 +00:00
const replaced = navigation . replace ( navigation ( tmp3 [ 11 ] ) . FamilyCenterModalRequestSections . VERIFYING ) ;
}
} , items1 ) ;
const callback = React . useCallback ( ( ) = > {
2026-07-29 08:29:29 +00:00
let obj = stateFromStores ( _undefined [ 35 ] ) ;
obj = { entryPoint : navigation ( _undefined [ 36 ] ) . AgeVerificationModalEntryPoint . FAMILY_CENTER_CONNECTION } ;
2026-07-20 16:05:17 +00:00
const result = obj . showAgeVerificationGetStartedModal ( obj ) ;
} , [ ] ) ;
2026-07-29 08:29:29 +00:00
obj = { style : tmp.content , children : null } ;
obj = { style : tmp.art , children : null } ;
obj [ 1 ] = callback ( navigation ( 6785 ) . FamilyShieldSpotIllustration , { } ) ;
const items2 = [ callback ( closure_6 , obj ) , , ] ;
obj1 = { variant : "heading-xl/bold" , color : "mobile-text-heading-primary" , style : tmp.title , children : null } ;
const intl = navigation ( 1236 ) . intl ;
let str ;
if ( teenIdentity != null ) {
str = teenIdentity . global_name ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( str == null ) {
2026-07-20 16:05:17 +00:00
let username ;
2026-07-29 08:29:29 +00:00
if ( teenIdentity != null ) {
2026-07-20 16:05:17 +00:00
username = teenIdentity . username ;
}
2026-07-29 08:29:29 +00:00
str = username ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( str == null ) {
str = "" ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { children : null } ;
obj1 [ 3 ] = intl . formatToPlainString ( stateFromStores ( 2223 ) . pQQMJ7 , { username : str } ) ;
items2 [ 1 ] = callback ( navigation ( 4185 ) . Text , obj1 ) ;
const obj3 = { variant : "text-sm/medium" , color : "text-muted" , style : tmp.description , children : null } ;
const intl2 = tmp2 ( 1236 ) . intl ;
obj3 [ 3 ] = intl2 . format ( stateFromStores ( 2223 ) [ "0o3yg8" ] , { link : "https://support.discord.com/hc/articles/14155060633623" } ) ;
items2 [ 2 ] = callback ( navigation ( 4185 ) . Text , obj3 ) ;
obj [ 1 ] = items2 ;
const items3 = [ closure_13 ( closure_6 , obj ) , ] ;
const obj4 = { children : null } ;
const obj5 = { children : null } ;
const obj6 = { variant : "primary" , text : null , onPress : null } ;
const intl3 = tmp2 ( 1236 ) . intl ;
obj6 [ 1 ] = intl3 . string ( stateFromStores ( 2223 ) [ "3oUE4o" ] ) ;
obj6 [ 2 ] = callback ;
const items4 = [ callback ( navigation ( 4600 ) . Button , obj6 ) , ] ;
const obj7 = { variant : "tertiary" , text : null , onPress : null } ;
const intl4 = tmp2 ( 1236 ) . intl ;
obj7 [ 1 ] = intl4 . string ( navigation ( 1236 ) . t . oEAioF ) ;
obj7 [ 2 ] = function onPress() {
return stateFromStores ( _undefined [ 26 ] ) . pop ( ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
items4 [ 1 ] = callback ( navigation ( 4600 ) . Button , obj7 ) ;
obj5 [ 0 ] = items4 ;
obj4 [ 0 ] = closure_13 ( navigation ( 5022 ) . ButtonGroup , obj5 ) ;
items3 [ 1 ] = callback ( navigation ( 11120 ) . ModalFooter , obj4 ) ;
obj2 [ 0 ] = items3 ;
return closure_13 ( navigation ( 6783 ) . ModalScreen , obj2 ) ;
2026-07-20 16:05:17 +00:00
}
function FamilyCenterVerifyingScreen() {
2026-07-23 10:11:24 +00:00
let obj = navigation ( stateFromStores [ 8 ] ) ;
navigation = obj . useNavigation ( ) ;
const tmp = callback5 ( ) ;
const isAgeVerified = navigation ( stateFromStores [ 37 ] ) . useIsAgeVerified ( ) ;
const obj2 = navigation ( stateFromStores [ 37 ] ) ;
2026-07-29 08:29:29 +00:00
const items = [ mergeGuildAvatar ] ;
2026-07-23 10:11:24 +00:00
stateFromStores = navigation ( stateFromStores [ 9 ] ) . useStateFromStores ( items , ( ) = > {
2026-07-29 08:29:29 +00:00
currentUser = currentUser . getCurrentUser ( ) ;
2026-07-20 16:05:17 +00:00
let prop ;
2026-07-29 08:29:29 +00:00
if ( currentUser != null ) {
2026-07-20 16:05:17 +00:00
prop = currentUser . ageVerificationStatus ;
}
return prop ;
} ) ;
let closure_3 = React . useRef ( false ) ;
const items1 = [ isAgeVerified , stateFromStores , navigation ] ;
const effect = React . useEffect ( ( ) = > {
if ( isAgeVerified ) {
if ( ! ref . current ) {
2026-07-29 08:29:29 +00:00
tmp9 . current = true ;
2026-07-20 16:05:17 +00:00
const replaced = navigation . replace ( navigation ( stateFromStores [ 11 ] ) . FamilyCenterModalRequestSections . PREREQ_LOADING ) ;
}
} else if ( stateFromStores === navigation ( stateFromStores [ 34 ] ) . AgeVerificationStatusUkAndAusOnly . UNVERIFIED ) {
2026-07-29 08:29:29 +00:00
const obj = { failureCode : null } ;
obj [ 0 ] = outer1_10 . GENERIC_ERROR ;
2026-07-20 16:05:17 +00:00
const replaced1 = navigation . replace ( navigation ( stateFromStores [ 11 ] ) . FamilyCenterModalRequestSections . ERROR , obj ) ;
}
} , items1 ) ;
const items2 = [ navigation ] ;
const effect1 = React . useEffect ( ( ) = > {
const timeout = setTimeout ( ( ) = > {
2026-07-29 08:29:29 +00:00
const replaced = lib . replace ( lib ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . ERROR , { failureCode : outer1_10.GENERIC_ERROR } ) ;
2026-07-23 10:11:24 +00:00
} , outer1_8 ) ;
2026-07-20 16:05:17 +00:00
return ( ) = > clearTimeout ( closure_0 ) ;
} , items2 ) ;
2026-07-29 08:29:29 +00:00
obj = { children : null } ;
obj = { style : tmp.container , children : null } ;
obj [ 1 ] = callback ( navigation ( stateFromStores [ 32 ] ) . ActivityIndicator , { } ) ;
obj [ 0 ] = callback ( closure_6 , obj ) ;
2026-07-23 10:11:24 +00:00
return callback ( navigation ( stateFromStores [ 14 ] ) . ModalScreen , obj ) ;
2026-07-20 16:05:17 +00:00
}
function FamilyCenterPrereqInvalidCodeScreen() {
2026-07-29 08:29:29 +00:00
let obj = { title : null , description : null , primaryButton : null } ;
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
obj [ 0 ] = intl . string ( importDefault ( 2223 ) . ewSb6o ) ;
const intl2 = require ( 1236 ) /* getSystemLocale */ . intl ;
obj [ 1 ] = intl2 . string ( importDefault ( 2223 ) . jcUN2F ) ;
obj = { text : null , onPress : null } ;
const intl3 = require ( 1236 ) /* getSystemLocale */ . intl ;
obj [ 0 ] = intl3 . string ( require ( 1236 ) /* getSystemLocale */ . t . WAI6xu ) ;
obj [ 1 ] = importDefault ( 4395 ) . pop ;
obj [ 2 ] = obj ;
2026-07-20 16:05:17 +00:00
return callback ( FamilyCenterPrereqScreen , obj ) ;
}
function FamilyCenterPrereqMustBeAdultScreen() {
2026-07-29 08:29:29 +00:00
let obj = navigation ( 1480 ) ;
navigation = obj . useNavigation ( ) ;
const items = [ mergeGuildAvatar ] ;
const stateFromStores = navigation ( 647 ) . useStateFromStores ( items , ( ) = > {
currentUser = currentUser . getCurrentUser ( ) ;
let prop ;
if ( currentUser != null ) {
prop = currentUser . ageVerificationStatus ;
}
return prop ;
} ) ;
const tmp3 = stateFromStores ( 8125 ) ( stateFromStores ) ;
const dependencyMap = tmp3 ;
const items1 = [ stateFromStores , tmp3 , navigation ] ;
const effect = React . useEffect ( ( ) = > {
let tmp2 = null != tmp3 ;
if ( tmp2 ) {
tmp2 = tmp !== stateFromStores ;
}
if ( tmp2 ) {
tmp2 = null != stateFromStores ;
}
if ( tmp2 ) {
tmp2 = stateFromStores !== navigation ( tmp3 [ 34 ] ) . AgeVerificationStatusUkAndAusOnly . UNVERIFIED ;
}
if ( tmp2 ) {
const replaced = navigation . replace ( navigation ( tmp3 [ 11 ] ) . FamilyCenterModalRequestSections . VERIFYING ) ;
}
} , items1 ) ;
obj = { title : null , description : null , primaryButton : null } ;
2026-07-20 16:05:17 +00:00
const callback = React . useCallback ( ( ) = > {
2026-07-29 08:29:29 +00:00
let obj = stateFromStores ( tmp3 [ 35 ] ) ;
obj = { entryPoint : navigation ( tmp3 [ 36 ] ) . AgeVerificationModalEntryPoint . FAMILY_CENTER_CONNECTION } ;
2026-07-20 16:05:17 +00:00
const result = obj . showAgeVerificationGetStartedModal ( obj ) ;
} , [ ] ) ;
2026-07-29 08:29:29 +00:00
const intl = navigation ( 1236 ) . intl ;
obj [ 0 ] = intl . string ( stateFromStores ( 2223 ) . BQFHXW ) ;
const intl2 = navigation ( 1236 ) . intl ;
obj [ 1 ] = intl2 . format ( stateFromStores ( 2223 ) . WDjaKn , { link : { onClick : callback } } ) ;
obj = { text : null , onPress : null } ;
const intl3 = navigation ( 1236 ) . intl ;
obj [ 0 ] = intl3 . string ( navigation ( 1236 ) . t [ "NX+WJN" ] ) ;
obj [ 1 ] = stateFromStores ( 4395 ) . pop ;
obj [ 2 ] = obj ;
2026-07-20 16:05:17 +00:00
return callback ( FamilyCenterPrereqScreen , obj ) ;
}
2026-07-29 08:29:29 +00:00
( { Image : c5 , View : closure_6 } = get_ActivityIndicator ) ;
( { FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT : metroImportAll , FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES : c9 , FamilyCenterFailureCode : c10 , FamilyCenterIconType : unpackModuleId } = items ) ;
( { jsx : closure_12 , jsxs : map1 , Fragment : closure_14 } = jsxProd ) ;
createCacheKey = { headerText : null , art : null , connectionHeader : null , headerIcons : null , ellipseGroup : null , ellipse : null , title : null , teenName : null , consent : null } ;
createCacheKey = { marginTop : require ( "Themes" ) . space . PX_16 , marginBottom : require ( "Themes" ) . space . PX_16 } ;
createCacheKey [ 0 ] = createCacheKey ;
createCacheKey [ 1 ] = { width : 165 , height : 119 } ;
createCacheKey [ 2 ] = { alignItems : "center" , marginBottom : require ( "Themes" ) . space . PX_16 } ;
let obj1 = { alignItems : "center" , marginBottom : require ( "Themes" ) . space . PX_16 } ;
createCacheKey [ 3 ] = { flexDirection : "row" , alignItems : "center" , justifyContent : "center" , alignSelf : "center" , padding : require ( "Themes" ) . space . PX_8 , backgroundColor : require ( "Themes" ) . colors . BACKGROUND_SURFACE_HIGH , borderRadius : require ( "Themes" ) . radii . round , marginBottom : require ( "Themes" ) . space . PX_24 } ;
let obj2 = { flexDirection : "row" , alignItems : "center" , justifyContent : "center" , alignSelf : "center" , padding : require ( "Themes" ) . space . PX_8 , backgroundColor : require ( "Themes" ) . colors . BACKGROUND_SURFACE_HIGH , borderRadius : require ( "Themes" ) . radii . round , marginBottom : require ( "Themes" ) . space . PX_24 } ;
createCacheKey [ 4 ] = { flexDirection : "row" , marginHorizontal : require ( "Themes" ) . space . PX_12 } ;
let obj3 = { flexDirection : "row" , marginHorizontal : require ( "Themes" ) . space . PX_12 } ;
createCacheKey [ 5 ] = { width : 4 , height : 4 , marginHorizontal : 2 , backgroundColor : require ( "Themes" ) . colors . ICON_MUTED , borderRadius : require ( "Themes" ) . radii . round } ;
createCacheKey [ 6 ] = { textAlign : "center" } ;
let obj4 = { width : 4 , height : 4 , marginHorizontal : 2 , backgroundColor : require ( "Themes" ) . colors . ICON_MUTED , borderRadius : require ( "Themes" ) . radii . round } ;
createCacheKey [ 7 ] = { marginTop : require ( "Themes" ) . space . PX_4 , textAlign : "center" } ;
let obj5 = { marginTop : require ( "Themes" ) . space . PX_4 , textAlign : "center" } ;
createCacheKey [ 8 ] = { marginTop : require ( "Themes" ) . space . PX_8 , textAlign : "center" , paddingHorizontal : require ( "Themes" ) . space . PX_16 } ;
createCacheKey = createCacheKey . createStyles ( createCacheKey ) ;
let obj7 = { content : null , textWrapper : null , header : null , description : null , illustration : null } ;
let obj6 = { marginTop : require ( "Themes" ) . space . PX_8 , textAlign : "center" , paddingHorizontal : require ( "Themes" ) . space . PX_16 } ;
obj7 [ 0 ] = { flex : 1 , flexDirection : "column" , alignItems : "center" , justifyContent : "center" , paddingHorizontal : require ( "Themes" ) . space . PX_16 } ;
obj7 [ 1 ] = { alignItems : "center" } ;
createCacheKey = { marginBottom : require ( "Themes" ) . space . PX_8 } ;
obj7 [ 2 ] = createCacheKey ;
obj7 [ 3 ] = { textAlign : "center" } ;
let obj8 = { flex : 1 , flexDirection : "column" , alignItems : "center" , justifyContent : "center" , paddingHorizontal : require ( "Themes" ) . space . PX_16 } ;
obj7 [ 4 ] = { position : "absolute" , bottom : "100%" , left : 0 , right : 0 , alignItems : "center" , paddingBottom : require ( "Themes" ) . space . PX_24 } ;
let closure_17 = createCacheKey . createStyles ( obj7 ) ;
let obj11 = { header : { marginBottom : 8 , textAlign : "center" } , description : { textAlign : "center" } , ring : null , iconContainer : null , positive : null , negative : null } ;
let obj10 = { position : "absolute" , bottom : "100%" , left : 0 , right : 0 , alignItems : "center" , paddingBottom : require ( "Themes" ) . space . PX_24 } ;
obj11 [ 2 ] = { display : "flex" , justifyContent : "center" , alignItems : "center" , height : 64 , width : 64 , borderRadius : require ( "Themes" ) . radii . round , backgroundColor : require ( "Themes" ) . colors . BACKGROUND_SURFACE_HIGH , marginBottom : 24 } ;
let obj12 = { display : "flex" , justifyContent : "center" , alignItems : "center" , height : 64 , width : 64 , borderRadius : require ( "Themes" ) . radii . round , backgroundColor : require ( "Themes" ) . colors . BACKGROUND_SURFACE_HIGH , marginBottom : 24 } ;
obj11 [ 3 ] = { display : "flex" , justifyContent : "center" , alignItems : "center" , height : 48 , width : 48 , borderRadius : require ( "Themes" ) . radii . round , backgroundColor : require ( "Themes" ) . colors . STATUS_POSITIVE } ;
createCacheKey = { backgroundColor : require ( "Themes" ) . colors . STATUS_POSITIVE } ;
obj11 [ 4 ] = createCacheKey ;
let obj13 = { display : "flex" , justifyContent : "center" , alignItems : "center" , height : 48 , width : 48 , borderRadius : require ( "Themes" ) . radii . round , backgroundColor : require ( "Themes" ) . colors . STATUS_POSITIVE } ;
obj11 [ 5 ] = { backgroundColor : require ( "Themes" ) . colors . BACKGROUND_FEEDBACK_CRITICAL } ;
let closure_19 = createCacheKey . createStyles ( obj11 ) ;
let closure_21 = createCacheKey . createStyles ( { container : { flex : 1 , justifyContent : "center" , alignItems : "center" } } ) ;
let obj16 = { content : { flex : 1 , flexDirection : "column" , alignItems : "center" , justifyContent : "center" , paddingHorizontal : 32 } , title : null , description : null } ;
let obj15 = { backgroundColor : require ( "Themes" ) . colors . BACKGROUND_FEEDBACK_CRITICAL } ;
obj16 [ 1 ] = { textAlign : "center" , marginBottom : require ( "Themes" ) . space . PX_8 } ;
obj16 [ 2 ] = { textAlign : "center" } ;
let closure_23 = createCacheKey . createStyles ( obj16 ) ;
let obj18 = { content : { flex : 1 , flexDirection : "column" , alignItems : "center" , justifyContent : "center" , paddingHorizontal : 32 } , art : null , title : null , description : null } ;
let obj17 = { textAlign : "center" , marginBottom : require ( "Themes" ) . space . PX_8 } ;
obj18 [ 1 ] = { marginBottom : require ( "Themes" ) . space . PX_24 } ;
createCacheKey = { textAlign : "center" , marginBottom : require ( "Themes" ) . space . PX_8 } ;
obj18 [ 2 ] = createCacheKey ;
obj18 [ 3 ] = { textAlign : "center" } ;
let closure_25 = createCacheKey . createStyles ( obj18 ) ;
createCacheKey = { headerShown : true , headerLeft : null , headerTitle : null } ;
createCacheKey [ 1 ] = HeaderBackImage . getHeaderCloseButton ( require ( "module_4395" ) . pop ) ;
createCacheKey [ 2 ] = function headerTitle() {
2026-07-20 16:05:17 +00:00
return null ;
} ;
2026-07-29 08:29:29 +00:00
let obj19 = { marginBottom : require ( "Themes" ) . space . PX_24 } ;
2026-07-23 10:11:24 +00:00
let result = require ( "get ActivityIndicator" ) . fileFinishedImporting ( "modules/parent_tools/native/FamilyCenterModalRequest.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default function FamilyCenterRequestModal ( userId ) {
userId = userId . userId ;
const linkCode = userId . linkCode ;
2026-07-29 08:29:29 +00:00
const FamilyCenterConnectionPrereqExperiment = userId ( 11121 ) . FamilyCenterConnectionPrereqExperiment ;
2026-07-20 16:05:17 +00:00
const items = [ linkCode , userId ] ;
2026-07-29 08:29:29 +00:00
const memo = React . useMemo ( ( ) = > {
2026-07-20 16:05:17 +00:00
let obj = { } ;
obj = { } ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( outer1_30 ) ;
obj . render = function render() {
return outer1_12 ( outer1_22 , { userId : closure_0 , linkCode : closure_1 } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . PREREQ_LOADING ] = obj ;
2026-07-20 16:05:17 +00:00
obj = { } ;
2026-07-29 08:29:29 +00:00
const merged1 = Object . assign ( outer1_30 ) ;
obj . render = function render ( teenIdentity ) {
2026-07-20 16:05:17 +00:00
teenIdentity = undefined ;
2026-07-29 08:29:29 +00:00
if ( teenIdentity != null ) {
2026-07-20 16:05:17 +00:00
teenIdentity = teenIdentity . teenIdentity ;
}
2026-07-29 08:29:29 +00:00
return closure_12 ( closure_26 , { teenIdentity } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . CONFIRM_AGE ] = obj ;
2026-07-20 16:05:17 +00:00
const obj1 = { } ;
2026-07-29 08:29:29 +00:00
const merged2 = Object . assign ( outer1_30 ) ;
obj1 . render = function render() {
return callback ( closure_27 , { } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . VERIFYING ] = obj1 ;
const obj2 = { headerLeft : null , headerShown : true , headerTitle : null , render : null } ;
let obj5 = userId ( outer1_2 [ 38 ] ) ;
obj2 [ 0 ] = obj5 . getHeaderCloseButton ( linkCode ( outer1_2 [ 26 ] ) . pop ) ;
obj2 [ 2 ] = function headerTitle() {
2026-07-20 16:05:17 +00:00
return null ;
} ;
2026-07-29 08:29:29 +00:00
obj2 [ 3 ] = function render ( teenIdentity ) {
const obj = { userId : closure_0 , linkCode : closure_1 , teenIdentity : null } ;
2026-07-20 16:05:17 +00:00
teenIdentity = undefined ;
2026-07-29 08:29:29 +00:00
if ( teenIdentity != null ) {
2026-07-20 16:05:17 +00:00
teenIdentity = teenIdentity . teenIdentity ;
}
2026-07-29 08:29:29 +00:00
obj [ 2 ] = teenIdentity ;
return outer1_12 ( outer1_16 , obj ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . REQUEST ] = obj2 ;
2026-07-20 16:05:17 +00:00
const obj3 = { } ;
2026-07-29 08:29:29 +00:00
const merged3 = Object . assign ( outer1_30 ) ;
obj3 . render = function render() {
return callback ( closure_28 , { } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . INVALID_CODE ] = obj3 ;
2026-07-20 16:05:17 +00:00
const obj4 = { } ;
2026-07-29 08:29:29 +00:00
const merged4 = Object . assign ( outer1_30 ) ;
obj4 . render = function render() {
return callback ( closure_29 , { } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . MUST_BE_ADULT ] = obj4 ;
obj5 = { headerShown : true , headerLeft : null , headerTitle : null , render : null } ;
obj5 [ 1 ] = userId ( outer1_2 [ 38 ] ) . getHeaderCloseButton ( linkCode ( outer1_2 [ 26 ] ) . pop ) ;
obj5 [ 2 ] = function headerTitle() {
return null ;
} ;
obj5 [ 3 ] = function render() {
return callback ( closure_18 , { } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . SENT ] = obj5 ;
const obj6 = { headerShown : true , headerLeft : null , headerTitle : null , render : null } ;
const obj10 = userId ( outer1_2 [ 38 ] ) ;
obj6 [ 1 ] = userId ( outer1_2 [ 38 ] ) . getHeaderCloseButton ( linkCode ( outer1_2 [ 26 ] ) . pop ) ;
obj6 [ 2 ] = function headerTitle() {
2026-07-20 16:05:17 +00:00
return null ;
} ;
2026-07-29 08:29:29 +00:00
obj6 [ 3 ] = function render ( failureCode ) {
return callback ( closure_20 , { failureCode : failureCode.failureCode } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . ERROR ] = obj6 ;
const obj7 = { fullscreen : true , headerLeft : null , render : null } ;
const obj12 = userId ( outer1_2 [ 38 ] ) ;
obj7 [ 1 ] = userId ( outer1_2 [ 38 ] ) . getHeaderCloseButton ( linkCode ( outer1_2 [ 26 ] ) . pop ) ;
obj7 [ 2 ] = function render() {
return callback ( closure_20 , { failureCode : constants.INELIGIBLE_FOR_FAMILY_CENTER } ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj [ userId ( outer1_2 [ 11 ] ) . FamilyCenterModalRequestSections . TEEN_SCAN ] = obj7 ;
2026-07-20 16:05:17 +00:00
return obj ;
2026-07-29 08:29:29 +00:00
} , items ) ;
const FamilyCenterModalRequestSections = userId ( 11109 ) . FamilyCenterModalRequestSections ;
2026-07-20 16:05:17 +00:00
if ( FamilyCenterConnectionPrereqExperiment . useConfig ( { location : "FamilyCenterRequestModal" } ) . enabled ) {
let PREREQ_LOADING = FamilyCenterModalRequestSections . PREREQ_LOADING ;
} else {
2026-07-29 08:29:29 +00:00
PREREQ_LOADING = tmp2 ? FamilyCenterModalRequestSections.REQUEST : FamilyCenterModalRequestSections.TEEN_SCAN ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj = { initialRouteName : PREREQ_LOADING , screens : memo , headerBackTitle : null } ;
const intl = tmp3 ( 1236 ) . intl ;
obj [ 2 ] = intl . string ( userId ( 1236 ) . t [ "13/7kX" ] ) ;
return callback ( userId ( 11122 ) . Modal , obj ) ;
2026-07-20 16:05:17 +00:00
} ;
export { FamilyCenterModalRequestConfirm } ;
export { FamilyCenterModalRequestSuccess } ;
export { FamilyCenterModalRequestError } ;