2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 11892
|
|
|
|
|
// Function ID: 92051
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: LinkButton
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [31, 27, 653, 1906, 33, 4131, 3828, 675, 4127, 8939, 477, 1905, 1212, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 11892 (LinkButton)
|
2026-07-23 10:11:24 +00:00
|
|
|
import result from "result";
|
|
|
|
|
import { Pressable } from "get ActivityIndicator";
|
|
|
|
|
import { AnalyticEvents } from "ME";
|
|
|
|
|
import { CHANGELOG_URL } from "CHANGELOG_MODAL_KEY";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_7;
|
|
|
|
|
let closure_8;
|
|
|
|
|
let closure_9;
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function LinkButton(arg0) {
|
|
|
|
|
let lineClamp;
|
|
|
|
|
let text;
|
|
|
|
|
({ lineClamp, text } = arg0);
|
|
|
|
|
const tmp = callback3();
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = {
|
2026-07-20 16:05:17 +00:00
|
|
|
onPress() {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer1_1(outer1_2[6]);
|
|
|
|
|
obj.openURL(outer1_6);
|
|
|
|
|
obj = { cta_type: "profile_bio", target: outer1_6 };
|
|
|
|
|
outer1_1(outer1_2[7]).track(outer1_5.CHANGE_LOG_CTA_CLICKED, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
|
|
|
|
style: tmp.link,
|
2026-07-25 08:10:48 +00:00
|
|
|
children: callback(require(4127) /* Text */.Text, obj)
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { variant: "text-md/normal", color: "text-link", lineClamp, style: tmp.link };
|
|
|
|
|
const items = ["\n", text];
|
|
|
|
|
obj.children = items;
|
2026-07-20 16:05:17 +00:00
|
|
|
return callback2(Pressable, obj);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
({ jsxs: closure_7, jsx: closure_8, Fragment: closure_9 } = jsxProd);
|
|
|
|
|
let closure_10 = _createForOfIteratorHelperLoose.createStyles({ text: { alignSelf: "stretch", textAlignVertical: "top", width: "100%", flexGrow: 1, paddingTop: 2, lineHeight: 24 }, span: { alignSelf: "stretch", textAlignVertical: "bottom", width: "100%", flexGrow: 1, display: "flex", paddingBottom: 2 }, link: { alignSelf: "stretch", textAlignVertical: "bottom", width: "100%", flexGrow: 1, bottom: -4, position: "relative" } });
|
|
|
|
|
const result = require("ME").fileFinishedImporting("modules/profile_customization/native/BioText.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function BioText(lineClamp) {
|
|
|
|
|
let bio;
|
|
|
|
|
let placeholder;
|
|
|
|
|
let textVariant;
|
|
|
|
|
let userId;
|
|
|
|
|
({ placeholder, bio } = lineClamp);
|
|
|
|
|
lineClamp = lineClamp.lineClamp;
|
|
|
|
|
({ userId, textVariant } = lineClamp);
|
|
|
|
|
if (textVariant === undefined) {
|
|
|
|
|
textVariant = "text-md/normal";
|
|
|
|
|
}
|
|
|
|
|
const tmp = callback3();
|
|
|
|
|
const items = [bio, textVariant];
|
|
|
|
|
let memo = React.useMemo(() => {
|
|
|
|
|
let obj = bio(textVariant[9]);
|
|
|
|
|
obj = { linkVariant: textVariant, textVariant };
|
|
|
|
|
let num;
|
|
|
|
|
if (obj3.isAndroid()) {
|
|
|
|
|
num = 3;
|
|
|
|
|
}
|
|
|
|
|
obj.customEmojiOffsetY = num;
|
|
|
|
|
return obj.parseBioReact(bio, undefined, obj);
|
|
|
|
|
}, items);
|
|
|
|
|
let tmp3 = 0 === bio.length;
|
|
|
|
|
if (tmp3) {
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp3 = !lineClamp(textVariant[11])(userId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
if (lineClamp(textVariant[11])(userId)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {};
|
|
|
|
|
obj = { variant: textVariant };
|
|
|
|
|
let str2 = "text-default";
|
|
|
|
|
let str3 = "text-default";
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
str3 = "text-muted";
|
|
|
|
|
}
|
|
|
|
|
obj.color = str3;
|
|
|
|
|
obj.lineClamp = lineClamp;
|
|
|
|
|
obj.style = tmp.text;
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = bio(textVariant[12]).intl;
|
|
|
|
|
const items1 = [intl.string(bio(textVariant[12]).t.OJmNR9), "\n"];
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items2 = [closure_7(bio(textVariant[8]).Text, obj, "changelog-bio"), ];
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj1 = { variant: textVariant };
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
str2 = "text-muted";
|
|
|
|
|
}
|
|
|
|
|
obj1.color = str2;
|
|
|
|
|
obj1.lineClamp = lineClamp;
|
|
|
|
|
obj1.style = tmp.span;
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl2 = bio(textVariant[12]).intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj2 = {
|
|
|
|
|
blogHook(text) {
|
2026-07-23 10:11:24 +00:00
|
|
|
return outer1_8(outer1_11, { lineClamp, text }, arg1);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
obj1.children = intl2.format(bio(textVariant[12]).t.RCYeBL, obj2);
|
|
|
|
|
items2[1] = closure_8(bio(textVariant[8]).Text, obj1, "changelog-cta");
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items2;
|
|
|
|
|
let tmp7Result = tmp10(closure_9, obj);
|
|
|
|
|
const tmp11 = closure_9;
|
|
|
|
|
const tmp16 = closure_8;
|
|
|
|
|
} else if (!tmp3) {
|
|
|
|
|
obj = { variant: textVariant };
|
|
|
|
|
let str = "text-default";
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
str = "text-muted";
|
|
|
|
|
}
|
|
|
|
|
obj.color = str;
|
|
|
|
|
obj.lineClamp = lineClamp;
|
|
|
|
|
obj.style = tmp.text;
|
|
|
|
|
if (tmp3) {
|
|
|
|
|
memo = placeholder;
|
|
|
|
|
}
|
|
|
|
|
obj.children = memo;
|
2026-07-23 10:11:24 +00:00
|
|
|
tmp7Result = closure_8(bio(textVariant[8]).Text, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp7 = closure_8;
|
|
|
|
|
} else {
|
|
|
|
|
tmp7Result = null;
|
|
|
|
|
}
|
|
|
|
|
return tmp7Result;
|
|
|
|
|
};
|