decord/source/modules/safety_common/native/SafetySettingsNotice.tsx

61 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14172
// Function ID: 14173
2026-07-20 16:05:17 +00:00
// Name: SafetySettingsNotice
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 5435, 21, 4668, 712, 14173, 4334, 4739, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14172 (SafetySettingsNotice)
import ThemesDefault from "Themes" /* 712 */;
import closure_2 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { SafetySettingsNoticeAction as closure_4 } from "SafetyToastType" /* 5435 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { blockedIgnoredRedirect: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { display: "flex", flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_8, padding: ThemesDefault.space.PX_8, borderRadius: ThemesDefault.radii.xs, borderColor: ThemesDefault.colors.TEXT_LINK, borderWidth: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_FEEDBACK_INFO };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_7 = createCacheKey.createStyles(createCacheKey);
let result = require("set").fileFinishedImporting("modules/safety_common/native/SafetySettingsNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function SafetySettingsNotice(noticeType) {
({ label, labelHook } = noticeType);
noticeType = noticeType.noticeType;
const count = noticeType.count;
2026-07-29 08:29:29 +00:00
let React;
2026-07-20 16:05:17 +00:00
const items = [noticeType];
const effect = React.useEffect(() => {
2026-08-24 06:08:38 +00:00
const result = labelHook(noticeType[6]).trackSafetySettingsNoticeAnalytics(noticeType, closure_1_4.VIEWED);
2026-07-20 16:05:17 +00:00
}, items);
const items1 = [noticeType, labelHook];
2026-07-23 10:11:24 +00:00
React = React.useCallback(() => {
2026-07-20 16:05:17 +00:00
labelHook();
2026-08-24 06:08:38 +00:00
const result = labelHook(noticeType[6]).trackSafetySettingsNoticeAnalytics(noticeType, closure_1_4.LEARN_MORE);
2026-07-20 16:05:17 +00:00
}, items1);
2026-08-24 06:08:38 +00:00
let obj = { style: callback2().blockedIgnoredRedirect, children: null };
2026-07-23 10:11:24 +00:00
const items2 = [callback(labelHook(noticeType[7]).CircleInformationIcon, { color: "text-link" }), ];
2026-07-29 08:29:29 +00:00
obj = { style: { flexShrink: 1 }, variant: "heading-sm/medium", children: null };
2026-07-20 16:05:17 +00:00
if (null != count) {
2026-07-29 08:29:29 +00:00
const intl2 = tmp6(tmp7[9]).intl;
obj = { hook: null, count: null };
obj[0] = function hook(children) {
2026-08-24 06:08:38 +00:00
return closure_1_5(labelHook(noticeType[8]).Text, { role: "link", variant: "heading-sm/medium", color: "text-link", onPress: closure_2, children });
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[1] = count;
2026-07-20 16:05:17 +00:00
let formatResult = intl2.format(label, obj);
} else {
2026-07-29 08:29:29 +00:00
const intl = tmp6(tmp7[9]).intl;
2026-08-24 06:08:38 +00:00
obj1 = { hook: null };
2026-07-29 08:29:29 +00:00
obj1[0] = function hook(children) {
2026-08-24 06:08:38 +00:00
return closure_1_5(labelHook(noticeType[8]).Text, { role: "link", variant: "heading-sm/medium", color: "text-link", onPress: closure_2, children });
2026-07-20 16:05:17 +00:00
};
formatResult = intl.format(label, obj1);
}
2026-07-29 08:29:29 +00:00
obj[2] = formatResult;
2026-07-23 10:11:24 +00:00
items2[1] = callback(labelHook(noticeType[8]).Text, obj);
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
};