decord/source/modules/guild_onboarding/native/GuildOnboardingPromptOptionButton.tsx

509 lines
18 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5146
2026-07-27 11:26:19 +00:00
// Function ID: 44884
2026-07-20 16:05:17 +00:00
// Name: PromptOptionButton
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 27, 4123, 4992, 1853, 33, 4131, 689, 566, 3992, 4132, 4543, 5147, 3844, 1212, 3835, 3849, 4661, 5150, 1392, 4127, 5153, 1273, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 5146 (PromptOptionButton)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_7 from "_isNativeReflectConstruct";
import { EMOJI_URL_BASE_SIZE } from "set";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_10;
let closure_9;
const require = arg1;
({ jsx: closure_9, jsxs: closure_10 } = jsxProd);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { borderRadius: require("_createForOfIteratorHelperLoose").radii.md, borderWidth: 2, borderStyle: "solid", marginBottom: 8 };
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.optionButton = { paddingVertical: 12, paddingHorizontal: 16, display: "flex", flexDirection: "row", alignItems: "center" };
_createForOfIteratorHelperLoose.optionTextEmoji = { fontSize: 24, lineHeight: 24, marginRight: 12, paddingTop: 5 };
_createForOfIteratorHelperLoose.optionImageEmoji = { height: 24, width: 24, marginRight: 12 };
_createForOfIteratorHelperLoose.optionText = { flexShrink: 1 };
let obj1 = { position: "absolute", top: -6, right: -6, width: 20, height: 20, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BRAND, borderRadius: 10, display: "flex", alignItems: "center", justifyContent: "center" };
_createForOfIteratorHelperLoose.checkIcon = obj1;
_createForOfIteratorHelperLoose.newBadgeWrapper = { position: "absolute", top: -6, right: -6 };
_createForOfIteratorHelperLoose.newBadge = { fontWeight: "bold" };
let obj2 = { position: "absolute", top: -6, right: 24, paddingVertical: 2, paddingHorizontal: 6, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BRAND, borderRadius: 10, display: "flex", alignItems: "center", justifyContent: "center" };
_createForOfIteratorHelperLoose.roleCount = obj2;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
2026-07-20 16:05:17 +00:00
let closure_12 = { code: "function GuildOnboardingPromptOptionButtonTsx1(){const{selected,withTiming,Easing,useReducedMotion,withSequence,withSpring}=this.__closure;const rawOpacity=selected?1:0;const opacity=withTiming(rawOpacity,{duration:150,easing:Easing.out(Easing.ease)});const rawScale=selected?1:0.7;const scale=useReducedMotion?rawScale:withSequence(withSpring(rawScale*1.2,{stiffness:80,damping:6,mass:0.3}),withSpring(rawScale,{stiffness:80,damping:6,mass:0.3}));return{opacity:opacity,transform:[{scale:scale}]};}" };
let closure_13 = { code: "function GuildOnboardingPromptOptionButtonTsx2(){const{showMemberCount,withDelay,withTiming,Easing,useReducedMotion}=this.__closure;const rawOpacity=showMemberCount?1:0;const opacity=withDelay(showMemberCount?400:0,withTiming(rawOpacity,{duration:150,easing:Easing.out(Easing.ease)}));const rawTranslate=showMemberCount?0:16;const translateX=useReducedMotion?rawTranslate:withDelay(showMemberCount?400:0,withTiming(rawTranslate,{duration:200,easing:Easing.out(Easing.ease)}));return{opacity:opacity,transform:[{translateX:translateX}]};}" };
let closure_14 = { code: "function GuildOnboardingPromptOptionButtonTsx3(){const{useReducedMotion,Easing,withTiming,selected,selectedBorderColor,isNew,unselectedBrandBorderColor,unselectedBorderColor,selectedBackgroundColor}=this.__closure;const timing=useReducedMotion?{duration:0}:{duration:200,easing:Easing.out(Easing.ease)};return{borderColor:withTiming(selected?selectedBorderColor:isNew?unselectedBrandBorderColor:unselectedBorderColor,timing),backgroundColor:withTiming(selected?selectedBackgroundColor:'transparent',timing)};}" };
let closure_15 = { code: "function GuildOnboardingPromptOptionButtonTsx4(){const{useReducedMotion,scale}=this.__closure;return useReducedMotion?{}:{transform:[{scale:scale.get()}]};}" };
2026-07-23 10:11:24 +00:00
let result = require("get ActivityIndicator").fileFinishedImporting("modules/guild_onboarding/native/GuildOnboardingPromptOptionButton.tsx");
2026-07-20 16:05:17 +00:00
export default function PromptOptionButton(option) {
let accessibilityRole;
let accessibilityState;
let canBeNew;
2026-07-23 10:11:24 +00:00
let _slicedToArray;
let dependencyMap;
2026-07-20 16:05:17 +00:00
option = option.option;
const selected = option.selected;
2026-07-23 10:11:24 +00:00
({ onSelect: dependencyMap, suppressMemberCount: _slicedToArray, canBeNew } = option);
let num;
let first;
2026-07-20 16:05:17 +00:00
let closure_8;
let callback2;
let closure_10;
2026-07-23 10:11:24 +00:00
let sharedValue;
let isUnseen;
let c13;
let token;
let token1;
2026-07-20 16:05:17 +00:00
let token2;
let token3;
2026-07-23 10:11:24 +00:00
const tmp = sharedValue();
let obj = option(566);
let items = [first];
2026-07-20 16:05:17 +00:00
const stateFromStores = obj.useStateFromStores(items, () => {
let id;
if (null != option) {
const emoji = option.emoji;
if (null != emoji) {
id = emoji.id;
}
}
let usableCustomEmojiById = null;
if (null != id) {
let id1;
if (null != option) {
const emoji2 = option.emoji;
if (null != emoji2) {
id1 = emoji2.id;
}
}
usableCustomEmojiById = first.getUsableCustomEmojiById(id1);
}
return usableCustomEmojiById;
});
2026-07-23 10:11:24 +00:00
let obj1 = option(566);
const items1 = [num];
2026-07-20 16:05:17 +00:00
const stateFromStores1 = obj1.useStateFromStores(items1, () => num.useReducedMotion);
2026-07-25 08:10:48 +00:00
let obj2 = option(3992);
2026-07-20 16:05:17 +00:00
class D {
constructor() {
num = 0;
if (selected) {
num = 1;
}
obj = option(onSelect[11]);
obj = { duration: 150 };
Easing = option(onSelect[10]).Easing;
obj.easing = Easing.out(option(onSelect[10]).Easing.ease);
num2 = 0.7;
withTimingResult = obj.withTiming(num, obj);
if (selected) {
num2 = 1;
}
obj1 = { opacity: withTimingResult };
obj2 = {};
withSequenceResult = num2;
2026-07-23 10:11:24 +00:00
if (!result) {
2026-07-20 16:05:17 +00:00
tmp3 = option;
tmp4 = onSelect;
obj5 = option(onSelect[10]);
num3 = 12;
obj6 = option(onSelect[12]);
num4 = 1.2;
2026-07-23 10:11:24 +00:00
withSpringResult = obj6.withSpring(1.2 * num2, { stiffness: 80, damping: 6, mass: 0.3 });
2026-07-20 16:05:17 +00:00
obj7 = option(onSelect[12]);
2026-07-23 10:11:24 +00:00
withSequenceResult = obj5.withSequence(withSpringResult, obj7.withSpring(num2, { stiffness: 80, damping: 6, mass: 0.3 }));
2026-07-20 16:05:17 +00:00
}
obj2.scale = withSequenceResult;
items = [];
items[0] = obj2;
obj1.transform = items;
return obj1;
}
}
2026-07-25 08:10:48 +00:00
obj = { selected, withTiming: option(4132).withTiming, Easing: option(3992).Easing, useReducedMotion: stateFromStores1, withSequence: option(3992).withSequence, withSpring: option(4543).withSpring };
2026-07-20 16:05:17 +00:00
D.__closure = obj;
D.__workletHash = 8281627194581;
2026-07-23 10:11:24 +00:00
D.__initData = isUnseen;
2026-07-20 16:05:17 +00:00
const animatedStyle = obj2.useAnimatedStyle(D);
2026-07-25 08:10:48 +00:00
const tmp5 = selected(5147)(option.guildId);
2026-07-20 16:05:17 +00:00
const View = tmp5;
2026-07-23 10:11:24 +00:00
num = 0;
2026-07-20 16:05:17 +00:00
if (null != tmp5) {
num = 0;
if (null != option.roleIds) {
const _Math = Math;
const roleIds = option.roleIds;
const items2 = [];
HermesBuiltin.arraySpread(roleIds.map((arg0) => tmp5[arg0]), 0);
const _Math2 = Math;
num = HermesBuiltin.apply(items2, Math);
}
}
2026-07-23 10:11:24 +00:00
const tmp11 = callback(stateFromStores1.useState(false), 2);
first = tmp11[0];
2026-07-20 16:05:17 +00:00
closure_8 = tmp11[1];
2026-07-23 10:11:24 +00:00
callback2 = stateFromStores1.useRef(null);
2026-07-20 16:05:17 +00:00
const items3 = [first];
2026-07-23 10:11:24 +00:00
const effect = stateFromStores1.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (first) {
const _setTimeout = setTimeout;
closure_9.current = setTimeout(() => {
2026-07-23 10:11:24 +00:00
outer1_8(false);
outer1_9.current = null;
2026-07-20 16:05:17 +00:00
}, 3000);
return () => {
2026-07-23 10:11:24 +00:00
if (null != outer1_9.current) {
2026-07-20 16:05:17 +00:00
const _clearTimeout = clearTimeout;
2026-07-23 10:11:24 +00:00
clearTimeout(outer1_9.current);
2026-07-20 16:05:17 +00:00
}
};
}
}, items3);
2026-07-23 10:11:24 +00:00
closure_10 = stateFromStores1.useRef(false);
2026-07-20 16:05:17 +00:00
const items4 = [first, num];
2026-07-23 10:11:24 +00:00
const effect1 = stateFromStores1.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (first) {
if (!ref.current) {
if (0 > 0) {
2026-07-23 10:11:24 +00:00
const AccessibilityAnnouncer = option(outer1_2[14]).AccessibilityAnnouncer;
const intl = option(outer1_2[15]).intl;
2026-07-20 16:05:17 +00:00
const obj = { memberCount: num };
2026-07-23 10:11:24 +00:00
AccessibilityAnnouncer.announce(intl.formatToPlainString(option(outer1_2[15]).t.iyXfAn, obj), "polite");
2026-07-20 16:05:17 +00:00
ref.current = true;
}
}
}
if (!first) {
ref.current = false;
}
}, items4);
2026-07-25 08:10:48 +00:00
let obj4 = option(3992);
2026-07-20 16:05:17 +00:00
class L {
constructor() {
num = 0;
2026-07-23 10:11:24 +00:00
if (c7) {
2026-07-20 16:05:17 +00:00
num = 1;
}
obj = option(onSelect[10]);
num2 = 0;
2026-07-23 10:11:24 +00:00
if (c7) {
2026-07-20 16:05:17 +00:00
num2 = 400;
}
obj2 = option(onSelect[11]);
obj = { duration: 150 };
Easing = option(onSelect[10]).Easing;
obj.easing = Easing.out(option(onSelect[10]).Easing.ease);
num3 = 16;
withDelayResult = obj.withDelay(num2, obj2.withTiming(num, obj));
2026-07-23 10:11:24 +00:00
if (c7) {
2026-07-20 16:05:17 +00:00
num3 = 0;
}
obj1 = { opacity: withDelayResult };
obj2 = {};
withDelayResult1 = num3;
2026-07-23 10:11:24 +00:00
if (!result) {
2026-07-20 16:05:17 +00:00
tmp3 = option;
tmp4 = onSelect;
obj6 = option(onSelect[10]);
2026-07-23 10:11:24 +00:00
tmp5 = c7;
2026-07-20 16:05:17 +00:00
num4 = 0;
2026-07-23 10:11:24 +00:00
if (c7) {
2026-07-20 16:05:17 +00:00
num4 = 400;
}
tmp6 = option;
tmp7 = onSelect;
obj7 = option(onSelect[11]);
obj3 = {};
num5 = 200;
obj3.duration = 200;
Easing2 = option(onSelect[10]).Easing;
obj3.easing = Easing2.out(option(onSelect[10]).Easing.ease);
withDelayResult1 = obj6.withDelay(num4, obj7.withTiming(num3, obj3));
}
obj2.translateX = withDelayResult1;
items = [];
items[0] = obj2;
obj1.transform = items;
return obj1;
}
}
2026-07-25 08:10:48 +00:00
obj = { showMemberCount: first, withDelay: option(3992).withDelay, withTiming: option(4132).withTiming, Easing: option(3992).Easing, useReducedMotion: stateFromStores1 };
2026-07-20 16:05:17 +00:00
L.__closure = obj;
L.__workletHash = 9518487706997;
2026-07-23 10:11:24 +00:00
L.__initData = c13;
2026-07-20 16:05:17 +00:00
const animatedStyle1 = obj4.useAnimatedStyle(L);
2026-07-25 08:10:48 +00:00
let obj6 = option(3992);
2026-07-23 10:11:24 +00:00
sharedValue = obj6.useSharedValue(1);
isUnseen = canBeNew;
2026-07-20 16:05:17 +00:00
if (canBeNew) {
isUnseen = option.isUnseen;
}
let id;
if (null != option) {
2026-07-23 10:11:24 +00:00
let emoji = option.emoji;
2026-07-20 16:05:17 +00:00
if (null != emoji) {
id = emoji.id;
}
}
let tmp18 = null != id;
if (!tmp18) {
let name;
if (null != option) {
2026-07-23 10:11:24 +00:00
let emoji2 = option.emoji;
2026-07-20 16:05:17 +00:00
if (null != emoji2) {
name = emoji2.name;
}
}
tmp18 = null != name;
}
2026-07-23 10:11:24 +00:00
c13 = tmp18;
2026-07-20 16:05:17 +00:00
const items5 = [tmp18, , , ];
const emoji3 = option.emoji;
let name1;
if (null != emoji3) {
name1 = emoji3.name;
}
items5[1] = name1;
({ title: arr7[2], description: arr7[3] } = option);
2026-07-23 10:11:24 +00:00
const memo = stateFromStores1.useMemo(() => {
if (c13) {
2026-07-20 16:05:17 +00:00
const emoji = tmp.emoji;
let name;
if (null != emoji) {
name = emoji.name;
}
let str2 = "";
if (null != name) {
str2 = name;
}
const replaced = str2.replace(/^:|:$/g, "");
if (null != option.description) {
if (option.description.length > 0) {
2026-07-23 10:11:24 +00:00
const intl3 = option(outer1_2[15]).intl;
2026-07-20 16:05:17 +00:00
let obj = { emojiName: replaced };
({ title: obj3.title, description: obj3.description } = option);
2026-07-23 10:11:24 +00:00
let formatToPlainStringResult = intl3.formatToPlainString(option(outer1_2[15]).t.nSzqkg, obj);
2026-07-20 16:05:17 +00:00
}
return formatToPlainStringResult;
}
2026-07-23 10:11:24 +00:00
const intl2 = option(outer1_2[15]).intl;
2026-07-20 16:05:17 +00:00
obj = { emojiName: replaced, title: option.title };
2026-07-23 10:11:24 +00:00
formatToPlainStringResult = intl2.formatToPlainString(option(outer1_2[15]).t.rBPpAN, obj);
2026-07-20 16:05:17 +00:00
} else {
if (null != tmp.description) {
if (option.description.length > 0) {
2026-07-23 10:11:24 +00:00
const intl = option(outer1_2[15]).intl;
2026-07-20 16:05:17 +00:00
obj = {};
({ title: obj.title, description: obj.description } = option);
2026-07-23 10:11:24 +00:00
let title = intl.formatToPlainString(option(outer1_2[15]).t.U4lDOC, obj);
2026-07-20 16:05:17 +00:00
}
return title;
}
title = option.title;
}
}, items5);
2026-07-25 08:10:48 +00:00
let obj7 = option(3835);
2026-07-23 10:11:24 +00:00
token = obj7.useToken(selected(689).colors.BACKGROUND_BRAND);
2026-07-25 08:10:48 +00:00
let obj8 = option(3835);
2026-07-23 10:11:24 +00:00
token1 = obj8.useToken(selected(689).colors.BORDER_SUBTLE);
2026-07-25 08:10:48 +00:00
let obj9 = option(3835);
2026-07-23 10:11:24 +00:00
token2 = obj9.useToken(selected(689).colors.BORDER_STRONG);
2026-07-25 08:10:48 +00:00
let obj10 = option(3835);
2026-07-23 10:11:24 +00:00
token3 = obj10.useToken(selected(689).colors.BACKGROUND_BASE_LOWEST);
2026-07-25 08:10:48 +00:00
let obj11 = option(3992);
2026-07-20 16:05:17 +00:00
class X {
constructor() {
2026-07-23 10:11:24 +00:00
if (result) {
2026-07-20 16:05:17 +00:00
obj = {};
num3 = 0;
obj.duration = 0;
} else {
obj = {};
num = 200;
obj.duration = 200;
tmp = option;
tmp2 = onSelect;
num2 = 10;
Easing = option(onSelect[10]).Easing;
obj.easing = Easing.out(option(onSelect[10]).Easing.ease);
}
obj1 = {};
obj4 = option(onSelect[11]);
if (selected) {
2026-07-23 10:11:24 +00:00
tmp4 = c16;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = isUnseen;
2026-07-23 10:11:24 +00:00
tmp4 = isUnseen ? c14 : c15;
2026-07-20 16:05:17 +00:00
}
obj1.borderColor = obj4.withTiming(tmp4, obj);
obj5 = option(onSelect[11]);
str = "transparent";
if (selected) {
2026-07-23 10:11:24 +00:00
str = c17;
2026-07-20 16:05:17 +00:00
}
obj1.backgroundColor = obj5.withTiming(str, obj);
return obj1;
}
}
2026-07-25 08:10:48 +00:00
obj1 = { useReducedMotion: stateFromStores1, Easing: option(3992).Easing, withTiming: option(4132).withTiming, selected, selectedBorderColor: token2, isNew: isUnseen, unselectedBrandBorderColor: token, unselectedBorderColor: token1, selectedBackgroundColor: token3 };
2026-07-20 16:05:17 +00:00
X.__closure = obj1;
X.__workletHash = 17180171486485;
2026-07-23 10:11:24 +00:00
X.__initData = token;
2026-07-20 16:05:17 +00:00
const animatedStyle2 = obj11.useAnimatedStyle(X);
2026-07-25 08:10:48 +00:00
let obj13 = option(3992);
2026-07-20 16:05:17 +00:00
class F {
constructor() {
2026-07-23 10:11:24 +00:00
if (result) {
2026-07-20 16:05:17 +00:00
obj = {};
} else {
obj = {};
obj = {};
2026-07-23 10:11:24 +00:00
tmp = c11;
obj.scale = c11.get();
2026-07-20 16:05:17 +00:00
items = [];
items[0] = obj;
obj.transform = items;
}
return obj;
}
}
F.__closure = { useReducedMotion: stateFromStores1, scale: sharedValue };
F.__workletHash = 319662489785;
2026-07-23 10:11:24 +00:00
F.__initData = token1;
2026-07-20 16:05:17 +00:00
const animatedStyle3 = obj13.useAnimatedStyle(F);
2026-07-25 08:10:48 +00:00
let obj14 = option(3849);
2026-07-20 16:05:17 +00:00
const checkboxA11yNative = obj14.useCheckboxA11yNative({ checked: selected });
({ accessibilityRole, accessibilityState } = checkboxA11yNative);
obj2 = { style: items6 };
2026-07-23 10:11:24 +00:00
items6 = [animatedStyle3, animatedStyle2, tmp.container];
2026-07-20 16:05:17 +00:00
const obj3 = {
activeOpacity: 0.6,
style: items7,
onPress() {
callback(!selected);
2026-07-23 10:11:24 +00:00
if (!_slicedToArray) {
2026-07-20 16:05:17 +00:00
callback2(!selected);
}
},
onPressIn() {
2026-07-23 10:11:24 +00:00
let obj = option(outer1_2[10]);
const obj2 = option(outer1_2[11]);
const withTimingResult = option(outer1_2[11]).withTiming(1, { duration: 0 });
2026-07-20 16:05:17 +00:00
obj = { duration: 200 };
2026-07-23 10:11:24 +00:00
const Easing = option(outer1_2[10]).Easing;
obj.easing = Easing.out(option(outer1_2[10]).Easing.ease);
const result = sharedValue.set(obj.withSequence(withTimingResult, option(outer1_2[11]).withTiming(1.02, obj)));
2026-07-20 16:05:17 +00:00
},
onPressOut() {
2026-07-23 10:11:24 +00:00
let obj = option(outer1_2[11]);
2026-07-20 16:05:17 +00:00
obj = { duration: 100 };
2026-07-23 10:11:24 +00:00
const Easing = option(outer1_2[10]).Easing;
obj.easing = Easing.out(option(outer1_2[10]).Easing.ease);
2026-07-20 16:05:17 +00:00
const result = sharedValue.set(obj.withTiming(1, obj));
},
accessibilityRole,
accessibilityState,
accessibilityLabel: memo
};
2026-07-23 10:11:24 +00:00
items7 = [tmp.optionButton];
2026-07-20 16:05:17 +00:00
let id1;
if (null != option) {
const emoji4 = option.emoji;
if (null != emoji4) {
id1 = emoji4.id;
}
}
let tmp34Result = null != id1;
if (!tmp34Result) {
let name2;
if (null != option) {
const emoji5 = option.emoji;
if (null != emoji5) {
name2 = emoji5.name;
}
}
tmp34Result = null != name2;
}
if (tmp34Result) {
2026-07-23 10:11:24 +00:00
obj4 = { style: { display: "flex", alignItems: "center" } };
let obj5 = {};
2026-07-20 16:05:17 +00:00
({ optionTextEmoji: obj19.textEmojiStyle, optionImageEmoji: obj19.fastImageStyle } = tmp);
let emojiURL;
if (null != stateFromStores) {
obj6 = {};
({ id: obj21.id, animated: obj21.animated } = stateFromStores);
obj6.size = closure_8;
2026-07-23 10:11:24 +00:00
emojiURL = selected(1392).getEmojiURL(obj6);
const obj20 = selected(1392);
2026-07-20 16:05:17 +00:00
}
obj5.src = emojiURL;
let name3;
if (null != option) {
const emoji6 = option.emoji;
if (null != emoji6) {
name3 = emoji6.name;
}
}
let str = "";
if (null != name3) {
str = name3;
}
obj5.name = str;
2026-07-25 08:10:48 +00:00
obj4.children = callback2(selected(5150), obj5);
2026-07-20 16:05:17 +00:00
tmp34Result = tmp34(View, obj4);
const tmp35 = View;
2026-07-25 08:10:48 +00:00
const tmp38 = selected(5150);
2026-07-20 16:05:17 +00:00
}
const items8 = [tmp34Result, ];
obj7 = { style: tmp.optionText };
2026-07-23 10:11:24 +00:00
obj8 = { variant: "text-md/semibold", color: "mobile-text-heading-primary", children: option.title };
2026-07-25 08:10:48 +00:00
const items9 = [callback2(option(4127).Text, obj8), ];
2026-07-20 16:05:17 +00:00
let tmp46 = null != option.description && option.description.length > 0;
if (tmp46) {
2026-07-23 10:11:24 +00:00
obj9 = { variant: "text-xs/medium", color: "text-default", children: option.description };
2026-07-25 08:10:48 +00:00
tmp46 = callback2(option(4127).Text, obj9);
2026-07-20 16:05:17 +00:00
}
items9[1] = tmp46;
obj7.children = items9;
items8[1] = closure_10(View, obj7);
obj3.children = items8;
2026-07-25 08:10:48 +00:00
const items10 = [closure_10(option(4661).PressableOpacity, obj3), , , ];
2026-07-20 16:05:17 +00:00
let tmp50 = null;
if (num > 0) {
2026-07-23 10:11:24 +00:00
obj10 = { accessible: false, importantForAccessibility: "no-hide-descendants", accessibilityElementsHidden: true };
2026-07-20 16:05:17 +00:00
const items11 = [tmp.roleCount, animatedStyle1];
obj10.style = items11;
2026-07-23 10:11:24 +00:00
obj11 = { variant: "text-xs/semibold", color: "text-overlay-light" };
let intl = option(1212).intl;
2026-07-20 16:05:17 +00:00
const obj12 = { memberCount: num };
2026-07-23 10:11:24 +00:00
obj11.children = intl.format(option(1212).t.EgKsZA, obj12);
2026-07-25 08:10:48 +00:00
obj10.children = callback2(option(4127).Text, obj11);
tmp50 = callback2(selected(3992).View, obj10);
2026-07-20 16:05:17 +00:00
}
items10[1] = tmp50;
obj13 = { style: items12 };
2026-07-23 10:11:24 +00:00
items12 = [tmp.checkIcon, animatedStyle];
obj14 = { size: "xs", color: selected(689).colors.WHITE };
2026-07-25 08:10:48 +00:00
obj13.children = callback2(option(5153).CheckmarkSmallIcon, obj14);
items10[2] = callback2(selected(3992).View, obj13);
2026-07-20 16:05:17 +00:00
if (canBeNew) {
canBeNew = !selected;
}
if (canBeNew) {
canBeNew = option.isUnseen;
}
if (canBeNew) {
2026-07-23 10:11:24 +00:00
const obj15 = { color: option(1273).BadgeColors.BRAND };
let intl2 = option(1212).intl;
obj15.text = intl2.string(option(1212).t.y2b7CA);
2026-07-20 16:05:17 +00:00
({ newBadgeWrapper: obj30.style, newBadge: obj30.textStyle } = tmp);
2026-07-23 10:11:24 +00:00
canBeNew = callback2(option(1273).TextBadge, obj15);
2026-07-20 16:05:17 +00:00
}
items10[3] = canBeNew;
obj2.children = items10;
2026-07-25 08:10:48 +00:00
return closure_10(selected(3992).View, obj2);
2026-07-20 16:05:17 +00:00
};