Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
61 lines
2.5 KiB
TypeScript
61 lines
2.5 KiB
TypeScript
// Module ID: 14951
|
|
// Function ID: 14952
|
|
// Name: FamilyCenterParentalConsentNotice
|
|
// Dependencies: [19, 21, 4605, 576, 14943, 14944, 4299, 4601, 14952, 1114, 2396, 2]
|
|
// Exports: default
|
|
|
|
// Module 14951 (FamilyCenterParentalConsentNotice)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import Text_Text from "Text/Text" /* 4601 */;
|
|
import FamilyCenterInlineWarningNoticeDefault from "FamilyCenterInlineWarningNotice" /* 14952 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4605);
|
|
const obj2 = { container: { marginTop: nativeDefault.space.PX_16 }, link: { textDecorationLine: "underline" } };
|
|
let closure_5 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/parent_tools/native/FamilyCenterParentalConsentNotice.tsx");
|
|
|
|
export default function FamilyCenterParentalConsentNotice() {
|
|
const tmp = closure_5();
|
|
_require = tmp;
|
|
const isParentalConsentBannerActive = require("useIsParentalConsentBannerActive").useIsParentalConsentBannerActive();
|
|
const obj = require("useIsParentalConsentBannerActive");
|
|
const parentalConsentWarning = require("useParentalConsentWarning").useParentalConsentWarning();
|
|
let daysRemaining;
|
|
if (parentalConsentWarning != null) {
|
|
daysRemaining = parentalConsentWarning.daysRemaining;
|
|
}
|
|
if (daysRemaining == null) {
|
|
daysRemaining = null;
|
|
}
|
|
importDefault = noop.useCallback(() => {
|
|
onPress(dependencyMap[6]).openURL("https://support.discord.com/hc/articles/14155060633623");
|
|
}, []);
|
|
if (isParentalConsentBannerActive) {
|
|
if (null != daysRemaining) {
|
|
if (daysRemaining >= 0) {
|
|
function learnMoreHook(children, arg1) {
|
|
return jsx(Text_Text.Text, { variant: "text-sm/medium", color: "text-strong", style: link.link, accessibilityRole: "link", onPress, children }, arg1);
|
|
}
|
|
const obj3 = { style: tmp.container, text: null };
|
|
if (0 === daysRemaining) {
|
|
const intl2 = tmp2(1114).intl;
|
|
const obj4 = { learnMoreHook };
|
|
let formatResult = intl2.format(tmp9(2396).S5kmfO, obj4);
|
|
} else {
|
|
const intl = tmp2(1114).intl;
|
|
const obj5 = { count: daysRemaining, learnMoreHook };
|
|
formatResult = intl.format(tmp9(2396)["5jm+T3"], obj5);
|
|
}
|
|
obj3.text = formatResult;
|
|
return jsx(FamilyCenterInlineWarningNoticeDefault, { style: tmp.container, text: null });
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
};
|