Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
78 lines
3.4 KiB
TypeScript
78 lines
3.4 KiB
TypeScript
// Module ID: 13153
|
|
// Function ID: 13154
|
|
// Name: UserProfileRemediatedNotice
|
|
// Dependencies: [19, 17, 4222, 1074, 21, 4574, 576, 8267, 563, 4570, 1114, 9074, 2]
|
|
// Exports: default
|
|
|
|
// Module 13153 (UserProfileRemediatedNotice)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import Text_Text from "Text/Text" /* 4570 */;
|
|
import UserProfileSharedStylesDefault from "UserProfileSharedStyles" /* 8267 */;
|
|
import RelationshipActionCreatorsDefault from "RelationshipActionCreators" /* 9074 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import RelationshipStore from "RelationshipStore" /* 4222 */;
|
|
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const RelationshipTypes = fn(1074).RelationshipTypes;
|
|
const jsxProd = fn(21);
|
|
({ jsx: metroRequire, Fragment: closure_7, jsxs: closure_8 } = jsxProd);
|
|
const createStyles = fn(4574);
|
|
let obj2 = { container: { padding: nativeDefault.space.PX_12, gap: nativeDefault.space.PX_8, flexDirection: "row", alignItems: "center" } };
|
|
let closure_9 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileRemediatedNotice.tsx");
|
|
|
|
export default function RemediatedUserNotice(user) {
|
|
user = user.user;
|
|
const tmp = closure_9();
|
|
const tmp3 = UserProfileSharedStylesDefault();
|
|
const items = [RelationshipStore];
|
|
const stateFromStoresObject = user(563).useStateFromStoresObject(items, () => ({ isPendingIncoming: RelationshipStore.getRelationshipType(user.id) === RelationshipTypes.PENDING_INCOMING, isBlocked: RelationshipStore.isBlocked(user.id), isIgnored: RelationshipStore.isIgnored(user.id) }));
|
|
({ isBlocked, isIgnored } = stateFromStoresObject);
|
|
if (isBlocked) {
|
|
const obj2 = { style: null, children: null };
|
|
const items1 = [tmp.container, tmp3.card, user.style];
|
|
obj2.style = items1;
|
|
if (isBlocked) {
|
|
const obj3 = { variant: "text-sm/semibold", color: "text-default", lineClamp: 1, children: null };
|
|
const intl = tmp4(1114).intl;
|
|
obj3.children = intl.string(tmp4(1114).t["oC/fU6"]);
|
|
isBlocked = closure_6(tmp4(4570).Text, obj3);
|
|
}
|
|
const items2 = [isBlocked, ];
|
|
if (isIgnored) {
|
|
const obj4 = { children: null };
|
|
const obj5 = { variant: "text-sm/semibold", color: "text-default", lineClamp: 1, children: null };
|
|
const intl2 = tmp4(1114).intl;
|
|
obj5.children = intl2.string(tmp4(1114).t.HXz5An);
|
|
const items3 = [closure_6(tmp4(4570).Text, obj5), closure_6(tmp4(4570).Text, { variant: "text-sm/semibold", color: "text-default", accessibilityElementsHidden: true, importantForAccessibility: "no", children: "\u2022" }), ];
|
|
const intl3 = tmp4(1114).intl;
|
|
const obj6 = {
|
|
unignoreHook(children) {
|
|
return timestampProducer(Text_Text.Text, {
|
|
role: "button",
|
|
variant: "heading-sm/medium",
|
|
color: "text-link",
|
|
onPress() {
|
|
return RelationshipActionCreatorsDefault.unignoreUser(id.id, "UserProfileRemediatedNotice");
|
|
},
|
|
children
|
|
});
|
|
}
|
|
};
|
|
items3[2] = intl3.format(tmp4(1114).t.PrtAqy, obj6);
|
|
obj4.children = items3;
|
|
isIgnored = tmp8(closure_7, obj4);
|
|
}
|
|
items2[1] = isIgnored;
|
|
obj2.children = items2;
|
|
let tmp8Result = tmp8(View, obj2);
|
|
} else {
|
|
tmp8Result = null;
|
|
if (isIgnored) {
|
|
tmp8Result = null;
|
|
}
|
|
}
|
|
return tmp8Result;
|
|
};
|