94 lines
6.9 KiB
TypeScript
94 lines
6.9 KiB
TypeScript
/* Metro module 13425; source: modules/parent_tools/native/FamilyCenterRequestsPage.tsx; dependencies: [31, 27, 5117, 9734, 33, 4501, 697, 8170, 8171, 12627, 1244, 2224, 4573, 9737, 6766, 6618, 13426, 13428, 13437, 2] */
|
|
function _fun102142(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:6, offset: 0x0222e91b, size: 558 bytes, params: 8, frame: 25
|
|
var object3;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_3 = value.View;
|
|
const env0_4 = value.ScrollView;
|
|
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
|
|
const env0_5 = value.MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS;
|
|
const env0_6 = value.MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
|
|
const env0_7 = (require(9734) /* metro dependency 9734: Constants */).THROUGHLINE_URL;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_8 = value.jsx;
|
|
const env0_9 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
let createStyles = value.createStyles;
|
|
const object4 = {display: 'flex'};
|
|
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object4.paddingTop = PX_12;
|
|
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object4.marginTop = PX_12;
|
|
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
|
object4.borderTopColor = BORDER_SUBTLE;
|
|
object4.borderTopWidth = 1;
|
|
const env0_10 = Reflect.apply(createStyles, value, [{container: object4}]);
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
createStyles = value.createStyles;
|
|
object3 = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.container = {display: 'flex', marginTop: PX_16};
|
|
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object3.supportHeader = {marginBottom: PX_4};
|
|
const env0_11 = Reflect.apply(createStyles, value, [object3]);
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
createStyles = value.createStyles;
|
|
const object5 = {};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object5.paddingHorizontal = PX_16;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object5.paddingBottom = PX_16;
|
|
const env0_13 = Reflect.apply(createStyles, value, [{scrollView: {flex: 1}, container: object5}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterRequestsPage.tsx');
|
|
exports.default = FamilyCenterRequestsPage;
|
|
}
|
|
|
|
function FamilyCenterMaxConnectionsBlurb() { // fn#102143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:460, offset: 0x0222eb49, size: 305 bytes, params: 1, frame: 26
|
|
const styles = useStyles();
|
|
const value2 = (require(8170) /* metro dependency 8170: useUserLinks */).useHasMaxConnections();
|
|
const r11 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)() ? MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS : MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS;
|
|
const useAgeSpecificTextModule = require(12627) /* metro dependency 12627: useAgeSpecificText */;
|
|
const useAgeSpecificText = useAgeSpecificTextModule.useAgeSpecificText;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let formatToPlainString = intl.formatToPlainString;
|
|
const value3 = Reflect.apply(formatToPlainString, intl,
|
|
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['1/PzIj'], {maxConnections: r11}]);
|
|
formatToPlainString = intl.formatToPlainString;
|
|
const RcTgiE = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).RcTgiE;
|
|
return value2 ? <View style={styles.container}>{((Text) => <Text variant="text-xxs/medium" color="text-muted">{Reflect.apply(useAgeSpecificText,
|
|
useAgeSpecificTextModule, [value3, Reflect.apply(formatToPlainString, intl, [RcTgiE,
|
|
{maxConnections: r11}])])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View> : null;
|
|
}
|
|
|
|
function FamilyCenterHelpLineInfo() { // fn#102144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:1018, offset: 0x0222ec7a, size: 425 bytes, params: 1, frame: 25
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const styles = useStyles();
|
|
const r9 = (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowHelplineLink() ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['KOwsf/'],
|
|
{helpLink: 'https://support.discord.com/hc/articles/7925648993943-Crisis-Text-Line'}) : (require(9737) /* metro dependency 9737: useHelpLineVisibility */).useShouldShowThroughlineLink() ? intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['6tsC8u'],
|
|
{helpLink: THROUGHLINE_URL}) : null;
|
|
const value7 = null;
|
|
return value7 == r9 ? value7 : <View style={styles.container}>{((Text) => <Text style={styles.supportHeader} variant="heading-sm/semibold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['7/tVhv'])}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}{((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-xs/medium" color="text-muted">{r9}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround)}</View>;
|
|
}
|
|
|
|
function FamilyCenterRequestsPage() { // fn#102145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13615:1814, offset: 0x0222ee23, size: 254 bytes, params: 1, frame: 26
|
|
const styles = useStyles();
|
|
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
|
return (
|
|
<ScrollView style={styles.scrollView}>
|
|
<SafeAreaPaddingView bottom>
|
|
<View style={styles.container}>
|
|
{((Component) => <Component />)(importDefault(13426) /* metro dependency 13426: FamilyCenterLinkingBanner */)}
|
|
{((Component) => <Component />)(importDefault(13428) /* metro dependency 13428: FamilyCenterAcceptedLinks */)}
|
|
{((Component) => <Component />)(importDefault(13437) /* metro dependency 13437: FamilyCenterPendingLinks */)}
|
|
<FamilyCenterMaxConnectionsBlurb />
|
|
<FamilyCenterHelpLineInfo />
|
|
</View>
|
|
</SafeAreaPaddingView>
|
|
</ScrollView>
|
|
);
|
|
}
|
|
|