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

86 lines
3.9 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 14120
// Function ID: 14121
2026-07-20 16:05:17 +00:00
// Name: FamilyCenterActivityBannerButton
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 17, 21, 4303, 7337, 7338, 14121, 712, 11326, 1236, 2284, 14128, 14129, 4299, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 14120 (FamilyCenterActivityBannerButton)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-20 16:05:17 +00:00
function FamilyCenterActivityBannerButton() {
2026-08-08 06:10:11 +00:00
let obj = require(7337) /* useUserIdsForLinkStatus */;
2026-07-20 16:05:17 +00:00
const hasActiveLinks = obj.useHasActiveLinks();
2026-08-08 06:10:11 +00:00
const tmp5 = importDefault(7338)();
2026-07-29 08:29:29 +00:00
const tmp = callback();
const tmp2 = require;
let tmp6 = null;
2026-07-20 16:05:17 +00:00
if (!obj2.useHasMaxConnections()) {
2026-07-29 08:29:29 +00:00
if (tmp5) {
tmp6 = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.container;
2026-08-08 06:10:11 +00:00
let tmp7Result = tmp2(14121);
2026-07-29 08:29:29 +00:00
tmp7Result = tmp7(tmp5 ? tmp7Result.FamilyCenterParentQRCodeButton : tmp7Result.FamilyCenterTeenQRCodeButton, {});
obj[1] = tmp7Result;
tmp7Result = tmp7(closure_3, obj);
const tmp8 = closure_3;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp6;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ View: c3, Image: c4 } = get_ActivityIndicator);
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ container: { width: "100%" } });
createCacheKey = { container: null, art: null, header: null, description: null };
createCacheKey = { backgroundColor: require("Themes").colors.BACKGROUND_BASE_LOW, marginTop: 16, padding: 24, alignItems: "center", borderRadius: require("Themes").radii.md, elevation: 2 };
createCacheKey[0] = createCacheKey;
createCacheKey = { maxWidth: 243, maxHeight: 119, marginBottom: require("Themes").space.PX_8 };
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { marginBottom: require("Themes").space.PX_8, textAlign: "center" };
createCacheKey[3] = { textAlign: "center" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj2 = { marginBottom: require("Themes").space.PX_8, textAlign: "center" };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/parent_tools/native/FamilyCenterActivityBanner.tsx");
2026-07-20 16:05:17 +00:00
export default function FamilyCenterActivityBanner() {
2026-07-29 08:29:29 +00:00
const tmp4 = createCacheKey();
2026-08-08 06:10:11 +00:00
let obj = require(7337) /* useUserIdsForLinkStatus */;
2026-07-20 16:05:17 +00:00
const hasMaxConnections = obj.useHasMaxConnections();
2026-08-08 06:10:11 +00:00
let obj1 = require(11326) /* useAgeSpecificText */;
2026-07-29 08:29:29 +00:00
const intl = require(1236) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const tmp = importDefault;
2026-08-08 06:10:11 +00:00
const tmp3 = importDefault(7338)();
2026-07-29 08:29:29 +00:00
const intl2 = require(1236) /* getSystemLocale */.intl;
2026-08-06 08:05:19 +00:00
const ageSpecificText = obj1.useAgeSpecificText(intl.string(importDefault(2284)["T7GyW+"]), intl2.string(importDefault(2284).goKE2b));
2026-08-08 06:10:11 +00:00
let obj2 = require(11326) /* useAgeSpecificText */;
2026-07-29 08:29:29 +00:00
const intl3 = require(1236) /* getSystemLocale */.intl;
2026-08-06 08:05:19 +00:00
const stringResult = intl.string(importDefault(2284)["T7GyW+"]);
2026-07-29 08:29:29 +00:00
const intl4 = require(1236) /* getSystemLocale */.intl;
obj = { style: tmp4.container, children: null };
obj = { source: null, style: null };
2026-08-06 08:05:19 +00:00
const ageSpecificText1 = obj2.useAgeSpecificText(intl3.format(importDefault(2284).MXjDSv, { articleLink: "https://support.discord.com/hc/articles/14155060633623" }), intl4.format(importDefault(2284).EMCf6j, { articleLink: "https://support.discord.com/hc/articles/14155043715735" }));
2026-08-08 06:10:11 +00:00
obj[0] = tmp(tmp3 ? 14128 : 14129);
2026-07-29 08:29:29 +00:00
obj[1] = tmp4.art;
const items = [closure_5(closure_4, obj), , , ];
obj1 = { style: tmp4.header, variant: "heading-lg/semibold", children: ageSpecificText };
2026-08-08 06:10:11 +00:00
items[1] = closure_5(require(4299) /* Text */.Text, obj1);
2026-07-29 08:29:29 +00:00
obj2 = { style: tmp4.description, variant: "text-sm/medium", color: "text-muted", children: ageSpecificText1 };
2026-08-08 06:10:11 +00:00
items[2] = closure_5(require(4299) /* Text */.Text, obj2);
2026-07-29 08:29:29 +00:00
let tmp13Result = null;
2026-07-20 16:05:17 +00:00
if (!hasMaxConnections) {
2026-07-29 08:29:29 +00:00
tmp13Result = tmp13(FamilyCenterActivityBannerButton, {});
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[3] = tmp13Result;
obj[1] = items;
2026-07-20 16:05:17 +00:00
return closure_6(closure_3, obj);
};