decord/source/modules/parent_tools/native/FamilyCenterRequestsPage.tsx

101 lines
5.2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13878
// Function ID: 106299
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterMaxConnectionsBlurb
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 27, 5766, 10098, 33, 4131, 689, 6200, 6201, 11051, 1212, 2199, 4127, 10101, 5121, 13839, 13879, 13881, 13890, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 13878 (FamilyCenterMaxConnectionsBlurb)
2026-07-23 10:11:24 +00:00
import "result";
import get_ActivityIndicator from "get ActivityIndicator";
import items from "items";
import { THROUGHLINE_URL } from "LOCATION_CONTEXT_MOBILE";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
let closure_5;
let closure_6;
let closure_8;
let closure_9;
const require = arg1;
2026-07-20 16:05:17 +00:00
function FamilyCenterMaxConnectionsBlurb() {
2026-07-25 08:10:48 +00:00
let obj = require(6200) /* useUserIdsForLinkStatus */;
2026-07-20 16:05:17 +00:00
const hasMaxConnections = obj.useHasMaxConnections();
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
2026-07-27 11:26:19 +00:00
require(11051) /* useAgeSpecificText */;
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
intl.formatToPlainString(importDefault(2199)["1/PzIj"], { maxConnections: importDefault(6201)() ? closure_5 : closure_6 });
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
let tmp7 = null;
if (hasMaxConnections) {
obj = { style: tmp.container };
2026-07-23 10:11:24 +00:00
obj = { variant: "text-xxs/medium", color: "text-muted", children: tmp6 };
2026-07-25 08:10:48 +00:00
obj.children = callback(require(4127) /* Text */.Text, obj);
2026-07-20 16:05:17 +00:00
tmp7 = callback(closure_3, obj);
}
return tmp7;
}
function FamilyCenterHelpLineInfo() {
2026-07-23 10:11:24 +00:00
const tmp = callback3();
2026-07-25 08:10:48 +00:00
let obj = require(10101) /* useShouldShowHelplineLink */;
2026-07-20 16:05:17 +00:00
const shouldShowHelplineLink = obj.useShouldShowHelplineLink();
2026-07-25 08:10:48 +00:00
require(10101) /* useShouldShowHelplineLink */;
2026-07-20 16:05:17 +00:00
if (shouldShowHelplineLink) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { helpLink: "https://support.discord.com/hc/articles/7925648993943-Crisis-Text-Line" };
2026-07-25 08:10:48 +00:00
let formatResult = intl2.format(importDefault(2199)["KOwsf/"], obj);
2026-07-20 16:05:17 +00:00
} else {
formatResult = null;
if (tmp4) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { helpLink: THROUGHLINE_URL };
2026-07-25 08:10:48 +00:00
formatResult = intl.format(importDefault(2199)["6tsC8u"], obj);
2026-07-20 16:05:17 +00:00
}
}
let tmp13 = null;
if (null != formatResult) {
const obj1 = { style: tmp.container };
const obj2 = { style: tmp.supportHeader, variant: "heading-sm/semibold" };
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
obj2.children = intl3.string(importDefault(2199)["7/tVhv"]);
const items = [callback(require(4127) /* Text */.Text, obj2), ];
2026-07-23 10:11:24 +00:00
const obj3 = { variant: "text-xs/medium", color: "text-muted", children: formatResult };
2026-07-25 08:10:48 +00:00
items[1] = callback(require(4127) /* Text */.Text, obj3);
2026-07-20 16:05:17 +00:00
obj1.children = items;
tmp13 = callback2(closure_3, obj1);
}
return tmp13;
}
2026-07-23 10:11:24 +00:00
({ View: closure_3, ScrollView: closure_4 } = get_ActivityIndicator);
({ MAX_PARENT_TO_TEEN_ACTIVE_CONNECTIONS: closure_5, MAX_TEEN_TO_PARENT_ACTIVE_CONNECTIONS: closure_6 } = items);
({ jsx: closure_8, jsxs: closure_9 } = jsxProd);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { display: "flex", paddingTop: require("_createForOfIteratorHelperLoose").space.PX_12, marginTop: require("_createForOfIteratorHelperLoose").space.PX_12, borderTopColor: require("_createForOfIteratorHelperLoose").colors.BORDER_SUBTLE, borderTopWidth: 1 };
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
let obj1 = { container: { display: "flex", marginTop: require("_createForOfIteratorHelperLoose").space.PX_16 } };
_createForOfIteratorHelperLoose = { marginBottom: require("_createForOfIteratorHelperLoose").space.PX_4 };
obj1.supportHeader = _createForOfIteratorHelperLoose;
let closure_11 = _createForOfIteratorHelperLoose.createStyles(obj1);
2026-07-20 16:05:17 +00:00
const obj4 = { scrollView: { flex: 1 } };
2026-07-23 10:11:24 +00:00
let obj2 = { display: "flex", marginTop: require("_createForOfIteratorHelperLoose").space.PX_16 };
obj4.container = { paddingHorizontal: require("_createForOfIteratorHelperLoose").space.PX_16, paddingBottom: require("_createForOfIteratorHelperLoose").space.PX_16 };
let closure_12 = _createForOfIteratorHelperLoose.createStyles(obj4);
const obj5 = { paddingHorizontal: require("_createForOfIteratorHelperLoose").space.PX_16, paddingBottom: require("_createForOfIteratorHelperLoose").space.PX_16 };
const result = require("items").fileFinishedImporting("modules/parent_tools/native/FamilyCenterRequestsPage.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterRequestsPage() {
2026-07-23 10:11:24 +00:00
const tmp = callback4();
2026-07-20 16:05:17 +00:00
let obj = { style: tmp.scrollView };
obj = { bottom: true };
obj = { style: tmp.container };
2026-07-27 11:26:19 +00:00
const items = [callback(importDefault(13839), {}), callback(importDefault(13879), {}), callback(importDefault(13881), {}), callback(importDefault(13890), {}), callback(FamilyCenterMaxConnectionsBlurb, {}), callback(FamilyCenterHelpLineInfo, {})];
2026-07-20 16:05:17 +00:00
obj.children = items;
obj.children = callback2(closure_3, obj);
2026-07-23 10:11:24 +00:00
obj.children = callback(require(5121) /* SafeAreaPaddingView */.SafeAreaPaddingView, obj);
2026-07-20 16:05:17 +00:00
return callback(closure_4, obj);
};