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

64 lines
2.7 KiB
TypeScript
Raw Normal View History

// Module ID: 14739
// Function ID: 14740
2026-07-20 16:05:17 +00:00
// Name: SafetySettingsNotice
// Dependencies: [19, 17, 8485, 21, 4606, 576, 14740, 4561, 4602, 1114, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 14739 (SafetySettingsNotice)
import nativeDefault from "native" /* 576 */;
import Text_Text from "Text/Text" /* 4602 */;
import SafetySettingsUtils from "SafetySettingsUtils" /* 14740 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
let closure_4 = fn(8485).SafetySettingsNoticeAction;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4606);
let obj2 = { blockedIgnoredRedirect: { display: "flex", flexDirection: "row", alignItems: "center", gap: nativeDefault.space.PX_8, padding: nativeDefault.space.PX_8, borderRadius: nativeDefault.radii.xs, borderColor: nativeDefault.colors.TEXT_LINK, borderWidth: 1, backgroundColor: nativeDefault.colors.BACKGROUND_FEEDBACK_INFO } };
let closure_7 = createStyles.createStyles(obj2);
const size = fn(2);
let result = size.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;
noop = undefined;
2026-07-20 16:05:17 +00:00
const items = [noticeType];
const effect = noop.useEffect(() => {
const result = SafetySettingsUtils.trackSafetySettingsNoticeAnalytics(noticeType, constants.VIEWED);
2026-07-20 16:05:17 +00:00
}, items);
const items1 = [noticeType, labelHook];
noop = noop.useCallback(() => {
2026-07-20 16:05:17 +00:00
labelHook();
const result = SafetySettingsUtils.trackSafetySettingsNoticeAnalytics(noticeType, constants.LEARN_MORE);
2026-07-20 16:05:17 +00:00
}, items1);
const obj = { style: closure_7().blockedIgnoredRedirect, children: null };
const items2 = [closure_5(labelHook(noticeType[7]).CircleInformationIcon, { color: "text-link" }), ];
const obj2 = { 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;
const obj3 = {
hook(children) {
return hasOwnProperty(Text_Text.Text, { role: "link", variant: "heading-sm/medium", color: "text-link", onPress, children });
},
count
2026-07-20 16:05:17 +00:00
};
let formatResult = intl2.format(label, obj3);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl = tmp6(tmp7[9]).intl;
const obj4 = {
hook(children) {
return hasOwnProperty(Text_Text.Text, { role: "link", variant: "heading-sm/medium", color: "text-link", onPress, children });
}
2026-07-20 16:05:17 +00:00
};
formatResult = intl.format(label, obj4);
2026-07-20 16:05:17 +00:00
}
obj2.children = formatResult;
items2[1] = closure_5(labelHook(noticeType[8]).Text, obj2);
obj.children = items2;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
};