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

524 lines
20 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 5581
// Function ID: 5582
2026-07-20 16:05:17 +00:00
// Name: PromptOptionButton
2026-09-01 10:26:29 +00:00
// Dependencies: [32, 19, 17, 4470, 5401, 1925, 21, 4217, 4478, 712, 589, 4479, 4927, 5582, 1351, 1236, 4197, 4205, 5068, 5585, 1431, 4474, 5588, 1297, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 5581 (PromptOptionButton)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-09-01 10:26:29 +00:00
import closure_6 from "maybeApplyNoTextColorForLightCustomTheme" /* 4470 */;
import closure_7 from "getEmojiToGroupId" /* 5401 */;
2026-08-31 15:47:37 +00:00
import { EMOJI_URL_BASE_SIZE } from "set" /* 1925 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import { Easing } from "module_4217" /* 4217 */;
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c9, jsxs: c10 } = jsxProd);
2026-08-27 16:17:25 +00:00
let obj = { duration: 200, easing: null };
2026-09-01 10:26:29 +00:00
obj[1] = Easing.out(require("module_4217").Easing.ease);
2026-08-27 16:17:25 +00:00
obj = { container: null, optionButton: null, optionTextEmoji: null, optionImageEmoji: null, optionText: null, checkIcon: null, newBadgeWrapper: null, newBadge: null, roleCount: null };
obj = { borderRadius: ThemesDefault.radii.md, borderWidth: 2, borderStyle: "solid", borderColor: ThemesDefault.colors.BORDER_SUBTLE, marginBottom: 8 };
obj[0] = obj;
obj[1] = { paddingVertical: 12, paddingHorizontal: 16, display: "flex", flexDirection: "row", alignItems: "center" };
obj[2] = { fontSize: 24, lineHeight: 24, marginRight: 12, paddingTop: 5 };
obj[3] = { height: 24, width: 24, marginRight: 12 };
obj[4] = { flexShrink: 1 };
createCacheKey = { position: "absolute", top: -6, right: -6, width: 20, height: 20, backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND, borderRadius: 10, display: "flex", alignItems: "center", justifyContent: "center" };
obj[5] = createCacheKey;
obj[6] = { position: "absolute", top: -6, right: -6 };
obj[7] = { fontWeight: "bold" };
obj[8] = { position: "absolute", top: -6, right: 24, paddingVertical: 2, paddingHorizontal: 6, backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND, borderRadius: 10, display: "flex", alignItems: "center", justifyContent: "center" };
let closure_12 = createCacheKey.createStyles(obj);
let closure_13 = { 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_14 = { 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_15 = { code: "function GuildOnboardingPromptOptionButtonTsx3(){const{withTiming,selected,SELECTION_TIMING}=this.__closure;return withTiming(selected?1:0,SELECTION_TIMING);}" };
let closure_16 = { code: "function GuildOnboardingPromptOptionButtonTsx4(){const{withTiming,isNew,SELECTION_TIMING}=this.__closure;return withTiming(isNew?1:0,SELECTION_TIMING);}" };
let closure_17 = { code: "function GuildOnboardingPromptOptionButtonTsx5(){const{interpolateColor,newProgress,unselectedBorderColor,newBorderColor,selectedProgress,selectedBorderColor,selectedBackgroundColor}=this.__closure;const currentUnselectedBorderColor=interpolateColor(newProgress.get(),[0,1],[unselectedBorderColor,newBorderColor]);return{borderColor:interpolateColor(selectedProgress.get(),[0,1],[currentUnselectedBorderColor,selectedBorderColor]),backgroundColor:interpolateColor(selectedProgress.get(),[0,1],['transparent',selectedBackgroundColor])};}" };
let closure_18 = { code: "function GuildOnboardingPromptOptionButtonTsx6(){const{useReducedMotion,scale}=this.__closure;return useReducedMotion?{}:{transform:[{scale:scale.get()}]};}" };
2026-08-24 06:08:38 +00:00
let obj2 = { position: "absolute", top: -6, right: 24, paddingVertical: 2, paddingHorizontal: 6, backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND, borderRadius: 10, display: "flex", alignItems: "center", justifyContent: "center" };
let result = require("set").fileFinishedImporting("modules/guild_onboarding/native/GuildOnboardingPromptOptionButton.tsx");
2026-07-20 16:05:17 +00:00
export default function PromptOptionButton(option) {
option = option.option;
const selected = option.selected;
2026-08-24 06:08:38 +00:00
({ onSelect: dependencyMap, suppressMemberCount: closure_3, canBeNew } = option);
2026-07-29 08:29:29 +00:00
let stateFromStores1;
2026-08-24 06:08:38 +00:00
closure_5 = undefined;
2026-07-23 10:11:24 +00:00
let num;
let first;
2026-08-24 06:08:38 +00:00
closure_8 = undefined;
2026-07-20 16:05:17 +00:00
let callback2;
2026-08-24 06:08:38 +00:00
closure_10 = undefined;
2026-07-23 10:11:24 +00:00
let sharedValue;
let isUnseen;
2026-08-24 06:08:38 +00:00
closure_13 = undefined;
2026-07-23 10:11:24 +00:00
let token;
let token1;
2026-07-20 16:05:17 +00:00
let token2;
let token3;
2026-08-27 16:17:25 +00:00
let derivedValue;
let derivedValue1;
const tmp = isUnseen();
obj = option(589);
2026-07-23 10:11:24 +00:00
let items = [first];
2026-07-20 16:05:17 +00:00
const stateFromStores = obj.useStateFromStores(items, () => {
let id;
2026-07-29 08:29:29 +00:00
if (option != null) {
const emoji = tmp.emoji;
if (emoji != null) {
2026-07-20 16:05:17 +00:00
id = emoji.id;
}
}
let usableCustomEmojiById = null;
if (null != id) {
let id1;
2026-07-29 08:29:29 +00:00
if (tmp != null) {
const emoji2 = tmp.emoji;
if (emoji2 != null) {
2026-07-20 16:05:17 +00:00
id1 = emoji2.id;
}
}
usableCustomEmojiById = first.getUsableCustomEmojiById(id1);
}
return usableCustomEmojiById;
});
2026-08-24 06:08:38 +00:00
obj1 = option(589);
2026-08-27 16:17:25 +00:00
let items1 = [num];
2026-07-29 08:29:29 +00:00
stateFromStores1 = obj1.useStateFromStores(items1, () => num.useReducedMotion);
2026-09-01 10:26:29 +00:00
let obj2 = option(4217);
2026-07-29 08:29:29 +00:00
class R {
2026-07-20 16:05:17 +00:00
constructor() {
num = 0;
2026-07-29 08:29:29 +00:00
tmp = selected;
2026-07-20 16:05:17 +00:00
if (selected) {
num = 1;
}
2026-07-29 08:29:29 +00:00
tmp2 = option;
tmp3 = onSelect;
2026-07-20 16:05:17 +00:00
obj = option(onSelect[11]);
2026-07-29 08:29:29 +00:00
obj = { duration: 150, easing: null };
2026-08-27 16:17:25 +00:00
Easing = option(onSelect[7]).Easing;
obj[1] = Easing.out(option(onSelect[7]).Easing.ease);
2026-07-20 16:05:17 +00:00
num2 = 0.7;
withTimingResult = obj.withTiming(num, obj);
2026-07-29 08:29:29 +00:00
if (tmp) {
2026-07-20 16:05:17 +00:00
num2 = 1;
}
2026-07-29 08:29:29 +00:00
obj1 = { opacity: withTimingResult, transform: null };
2026-07-20 16:05:17 +00:00
withSequenceResult = num2;
2026-08-24 06:08:38 +00:00
if (!closure_4) {
2026-08-27 16:17:25 +00:00
tmp2Result = tmp2(tmp3[7]);
2026-07-29 08:29:29 +00:00
tmp2Result1 = tmp2(tmp3[12]);
num3 = 1.2;
withSpringResult = tmp2Result1.withSpring(1.2 * num2, { stiffness: 80, damping: 6, mass: 0.3 });
tmp2Result2 = tmp2(tmp3[12]);
withSequenceResult = tmp2Result.withSequence(withSpringResult, tmp2Result2.withSpring(num2, { stiffness: 80, damping: 6, mass: 0.3 }));
2026-07-20 16:05:17 +00:00
}
items = [];
2026-07-29 08:29:29 +00:00
items[0] = { scale: withSequenceResult };
obj1[1] = items;
2026-07-20 16:05:17 +00:00
return obj1;
}
}
2026-09-01 10:26:29 +00:00
obj = { selected, withTiming: option(4479).withTiming, Easing: option(4217).Easing, useReducedMotion: stateFromStores1, withSequence: option(4217).withSequence, withSpring: option(4927).withSpring };
2026-07-29 08:29:29 +00:00
R.__closure = obj;
R.__workletHash = 8281627194581;
2026-08-27 16:17:25 +00:00
R.__initData = closure_13;
2026-07-29 08:29:29 +00:00
const animatedStyle = obj2.useAnimatedStyle(R);
2026-09-01 10:26:29 +00:00
const tmp8 = selected(5582)(option.guildId);
2026-08-24 06:08:38 +00:00
closure_5 = tmp8;
2026-07-23 10:11:24 +00:00
num = 0;
2026-07-29 08:29:29 +00:00
if (null != tmp8) {
2026-07-20 16:05:17 +00:00
num = 0;
if (null != option.roleIds) {
const _Math = Math;
const roleIds = option.roleIds;
2026-08-27 16:17:25 +00:00
let items2 = [];
2026-08-24 06:08:38 +00:00
HermesBuiltin.arraySpread(roleIds.map((arg0) => table[arg0]), 0);
2026-07-20 16:05:17 +00:00
const _Math2 = Math;
num = HermesBuiltin.apply(items2, Math);
}
}
2026-07-29 08:29:29 +00:00
let obj4 = stateFromStores1;
const tmp14 = callback(stateFromStores1.useState(false), 2);
first = tmp14[0];
closure_8 = tmp14[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-29 08:29:29 +00:00
callback(false);
closure_9.current = null;
2026-07-20 16:05:17 +00:00
}, 3000);
return () => {
2026-07-29 08:29:29 +00:00
if (null != ref.current) {
2026-07-20 16:05:17 +00:00
const _clearTimeout = clearTimeout;
2026-07-29 08:29:29 +00:00
clearTimeout(tmp.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-08-24 06:08:38 +00:00
const AccessibilityAnnouncer = option(closure_1_2[14]).AccessibilityAnnouncer;
const intl = option(closure_1_2[15]).intl;
2026-08-27 16:17:25 +00:00
obj = { memberCount: null };
2026-07-29 08:29:29 +00:00
obj[0] = tmp3;
2026-08-24 06:08:38 +00:00
AccessibilityAnnouncer.announce(intl.formatToPlainString(option(closure_1_2[15]).t.iyXfAn, obj), "polite");
2026-07-29 08:29:29 +00:00
tmp2.current = true;
2026-07-20 16:05:17 +00:00
}
}
}
if (!first) {
ref.current = false;
}
}, items4);
2026-09-01 10:26:29 +00:00
let tmp2Result = tmp2(4217);
2026-08-27 16:17:25 +00:00
class V {
2026-07-20 16:05:17 +00:00
constructor() {
2026-08-24 06:08:38 +00:00
tmp = closure_7;
2026-07-20 16:05:17 +00:00
num = 0;
2026-08-24 06:08:38 +00:00
if (closure_7) {
2026-07-20 16:05:17 +00:00
num = 1;
}
2026-07-29 08:29:29 +00:00
tmp2 = option;
tmp3 = onSelect;
2026-08-27 16:17:25 +00:00
obj = option(onSelect[7]);
2026-07-20 16:05:17 +00:00
num2 = 0;
2026-07-29 08:29:29 +00:00
if (tmp) {
2026-07-20 16:05:17 +00:00
num2 = 400;
}
2026-07-29 08:29:29 +00:00
tmp2Result = tmp2(tmp3[11]);
obj = { duration: 150, easing: null };
2026-08-27 16:17:25 +00:00
Easing = tmp2(tmp3[7]).Easing;
obj[1] = Easing.out(tmp2(tmp3[7]).Easing.ease);
2026-07-20 16:05:17 +00:00
num3 = 16;
2026-07-29 08:29:29 +00:00
withDelayResult = obj.withDelay(num2, tmp2Result.withTiming(num, obj));
if (tmp) {
2026-07-20 16:05:17 +00:00
num3 = 0;
}
2026-07-29 08:29:29 +00:00
obj1 = { opacity: withDelayResult, transform: null };
2026-07-20 16:05:17 +00:00
withDelayResult1 = num3;
2026-08-24 06:08:38 +00:00
if (!closure_4) {
2026-08-27 16:17:25 +00:00
tmp2Result1 = tmp2(tmp3[7]);
2026-07-20 16:05:17 +00:00
num4 = 0;
2026-07-29 08:29:29 +00:00
if (tmp) {
2026-07-20 16:05:17 +00:00
num4 = 400;
}
2026-07-29 08:29:29 +00:00
tmp2Result2 = tmp2(tmp3[11]);
obj2 = { duration: 200, easing: null };
2026-08-27 16:17:25 +00:00
Easing2 = tmp2(tmp3[7]).Easing;
obj2[1] = Easing2.out(tmp2(tmp3[7]).Easing.ease);
2026-07-29 08:29:29 +00:00
withDelayResult1 = tmp2Result1.withDelay(num4, tmp2Result2.withTiming(num3, obj2));
2026-07-20 16:05:17 +00:00
}
items = [];
2026-07-29 08:29:29 +00:00
items[0] = { translateX: withDelayResult1 };
obj1[1] = items;
2026-07-20 16:05:17 +00:00
return obj1;
}
}
2026-09-01 10:26:29 +00:00
obj = { showMemberCount: first, withDelay: tmp2(4217).withDelay, withTiming: tmp2(4479).withTiming, Easing: tmp2(4217).Easing, useReducedMotion: stateFromStores1 };
2026-08-27 16:17:25 +00:00
V.__closure = obj;
V.__workletHash = 9518487706997;
V.__initData = token;
const animatedStyle1 = tmp2Result.useAnimatedStyle(V);
2026-09-01 10:26:29 +00:00
tmp2Result = tmp2(4217);
2026-07-29 08:29:29 +00:00
sharedValue = tmp2Result.useSharedValue(1);
2026-07-23 10:11:24 +00:00
isUnseen = canBeNew;
2026-07-20 16:05:17 +00:00
if (canBeNew) {
isUnseen = option.isUnseen;
}
let id;
2026-07-29 08:29:29 +00:00
if (option != null) {
2026-07-23 10:11:24 +00:00
let emoji = option.emoji;
2026-07-29 08:29:29 +00:00
if (emoji != null) {
2026-07-20 16:05:17 +00:00
id = emoji.id;
}
}
2026-07-29 08:29:29 +00:00
let tmp21 = null != id;
if (!tmp21) {
2026-07-20 16:05:17 +00:00
let name;
2026-07-29 08:29:29 +00:00
if (option != null) {
2026-07-23 10:11:24 +00:00
let emoji2 = option.emoji;
2026-07-29 08:29:29 +00:00
if (emoji2 != null) {
2026-07-20 16:05:17 +00:00
name = emoji2.name;
}
}
2026-07-29 08:29:29 +00:00
tmp21 = null != name;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
closure_13 = tmp21;
2026-07-29 08:29:29 +00:00
const items5 = [tmp21, , , ];
2026-07-20 16:05:17 +00:00
const emoji3 = option.emoji;
let name1;
2026-07-29 08:29:29 +00:00
if (emoji3 != null) {
2026-07-20 16:05:17 +00:00
name1 = emoji3.name;
}
items5[1] = name1;
({ title: arr7[2], description: arr7[3] } = option);
2026-07-29 08:29:29 +00:00
const memo = obj4.useMemo(() => {
2026-08-24 06:08:38 +00:00
if (closure_13) {
2026-07-20 16:05:17 +00:00
const emoji = tmp.emoji;
2026-07-29 08:29:29 +00:00
let str;
if (emoji != null) {
str = emoji.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const replaced = str.replace(/^:|:$/g, "");
if (null != tmp.description) {
if (tmp.description.length > 0) {
2026-08-24 06:08:38 +00:00
const intl3 = option(closure_1_2[15]).intl;
2026-08-27 16:17:25 +00:00
obj = { emojiName: null, title: null, description: null };
2026-07-29 08:29:29 +00:00
obj[0] = replaced;
({ title: obj3[1], description: obj3[2] } = tmp);
2026-08-24 06:08:38 +00:00
let formatToPlainStringResult = intl3.formatToPlainString(option(closure_1_2[15]).t.nSzqkg, obj);
2026-07-20 16:05:17 +00:00
}
return formatToPlainStringResult;
}
2026-08-24 06:08:38 +00:00
const intl2 = option(closure_1_2[15]).intl;
2026-07-29 08:29:29 +00:00
obj = { emojiName: null, title: null };
obj[0] = replaced;
obj[1] = tmp.title;
2026-08-24 06:08:38 +00:00
formatToPlainStringResult = intl2.formatToPlainString(option(closure_1_2[15]).t.rBPpAN, obj);
2026-07-20 16:05:17 +00:00
} else {
if (null != tmp.description) {
2026-07-29 08:29:29 +00:00
if (tmp.description.length > 0) {
2026-08-24 06:08:38 +00:00
const intl = option(closure_1_2[15]).intl;
2026-07-29 08:29:29 +00:00
obj = { title: null, description: null };
({ title: obj[0], description: obj[1] } = tmp);
2026-08-24 06:08:38 +00:00
let title = intl.formatToPlainString(option(closure_1_2[15]).t.U4lDOC, obj);
2026-07-20 16:05:17 +00:00
}
return title;
}
2026-07-29 08:29:29 +00:00
title = tmp.title;
2026-07-20 16:05:17 +00:00
}
}, items5);
2026-09-01 10:26:29 +00:00
token = option(4197).useToken(tmp7(712).colors.BORDER_SUBTLE);
let tmp2Result1 = option(4197);
token1 = option(4197).useToken(tmp7(712).colors.BACKGROUND_BRAND);
const tmp2Result2 = option(4197);
token2 = option(4197).useToken(tmp7(712).colors.BORDER_STRONG);
const tmp2Result3 = option(4197);
token3 = option(4197).useToken(tmp7(712).colors.BACKGROUND_BASE_LOWEST);
const tmp2Result4 = option(4197);
2026-08-27 16:17:25 +00:00
const fn = function q() {
num = 0;
if (selected) {
num = 1;
}
return option(closure_1_2[11]).withTiming(num, sharedValue);
};
2026-09-01 10:26:29 +00:00
obj1 = { withTiming: tmp2(4479).withTiming, selected, SELECTION_TIMING: sharedValue };
2026-08-27 16:17:25 +00:00
fn.__closure = obj1;
fn.__workletHash = 11553377214675;
fn.__initData = token1;
2026-09-01 10:26:29 +00:00
derivedValue = option(4217).useDerivedValue(fn);
const tmp2Result5 = option(4217);
2026-08-27 16:17:25 +00:00
const fn2 = function z() {
num = 0;
if (isUnseen) {
num = 1;
}
return option(closure_1_2[11]).withTiming(num, sharedValue);
};
2026-09-01 10:26:29 +00:00
obj2 = { withTiming: tmp2(4479).withTiming, isNew: isUnseen, SELECTION_TIMING: sharedValue };
2026-08-27 16:17:25 +00:00
fn2.__closure = obj2;
fn2.__workletHash = 9359578148244;
fn2.__initData = token2;
2026-09-01 10:26:29 +00:00
derivedValue1 = option(4217).useDerivedValue(fn2);
const tmp2Result6 = option(4217);
2026-08-27 16:17:25 +00:00
class W {
constructor() {
obj = option(onSelect[7]);
items = [, ];
items[0] = closure_14;
items[1] = closure_15;
obj = { borderColor: null, backgroundColor: null };
interpolateColorResult = obj.interpolateColor(closure_19.get(), [0, 1], items);
obj3 = option(onSelect[7]);
items1 = [, ];
items1[0] = interpolateColorResult;
items1[1] = closure_16;
obj[0] = obj3.interpolateColor(closure_18.get(), [0, 1], items1);
obj4 = option(onSelect[7]);
items2 = ["transparent"];
items2[1] = closure_17;
obj[1] = obj4.interpolateColor(closure_18.get(), [0, 1], items2);
return obj;
}
}
2026-09-01 10:26:29 +00:00
const tmp2Result7 = option(4217);
W.__closure = { interpolateColor: option(4217).interpolateColor, newProgress: derivedValue1, unselectedBorderColor: token, newBorderColor: token1, selectedProgress: derivedValue, selectedBorderColor: token2, selectedBackgroundColor: token3 };
2026-08-27 16:17:25 +00:00
W.__workletHash = 1340353593596;
W.__initData = token3;
const animatedStyle2 = tmp2Result7.useAnimatedStyle(W);
2026-09-01 10:26:29 +00:00
let obj3 = { interpolateColor: option(4217).interpolateColor, newProgress: derivedValue1, unselectedBorderColor: token, newBorderColor: token1, selectedProgress: derivedValue, selectedBorderColor: token2, selectedBackgroundColor: token3 };
2026-08-27 16:17:25 +00:00
class K {
2026-07-20 16:05:17 +00:00
constructor() {
2026-08-24 06:08:38 +00:00
if (closure_4) {
2026-08-27 16:17:25 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
} else {
2026-08-27 16:17:25 +00:00
obj = { transform: null };
obj = { scale: null };
tmp = closure_11;
obj[0] = closure_11.get();
items = [];
items[0] = obj;
obj[0] = items;
2026-07-20 16:05:17 +00:00
}
return obj;
}
}
2026-08-27 16:17:25 +00:00
K.__closure = { useReducedMotion: stateFromStores1, scale: sharedValue };
K.__workletHash = 11083046243451;
K.__initData = derivedValue;
2026-09-01 10:26:29 +00:00
const animatedStyle3 = option(4217).useAnimatedStyle(K);
const tmp2Result8 = option(4217);
const checkboxA11yNative = option(4205).useCheckboxA11yNative({ checked: selected });
2026-07-20 16:05:17 +00:00
({ accessibilityRole, accessibilityState } = checkboxA11yNative);
2026-08-27 16:17:25 +00:00
obj4 = { style: items6, children: null };
items6 = [tmp.container, animatedStyle3, animatedStyle2];
const obj5 = {
2026-07-20 16:05:17 +00:00
activeOpacity: 0.6,
style: items7,
onPress() {
callback(!selected);
2026-08-24 06:08:38 +00:00
if (!closure_3) {
2026-07-20 16:05:17 +00:00
callback2(!selected);
}
},
onPressIn() {
2026-08-27 16:17:25 +00:00
obj = option(closure_1_2[7]);
2026-08-24 06:08:38 +00:00
const obj2 = option(closure_1_2[11]);
const withTimingResult = option(closure_1_2[11]).withTiming(1, { duration: 0 });
2026-07-29 08:29:29 +00:00
obj = { duration: 200, easing: null };
2026-08-27 16:17:25 +00:00
const Easing = option(closure_1_2[7]).Easing;
obj[1] = Easing.out(option(closure_1_2[7]).Easing.ease);
2026-08-24 06:08:38 +00:00
const result = sharedValue.set(obj.withSequence(withTimingResult, option(closure_1_2[11]).withTiming(1.02, obj)));
2026-07-20 16:05:17 +00:00
},
onPressOut() {
2026-08-27 16:17:25 +00:00
obj = option(closure_1_2[11]);
2026-07-29 08:29:29 +00:00
obj = { duration: 100, easing: null };
2026-08-27 16:17:25 +00:00
const Easing = option(closure_1_2[7]).Easing;
obj[1] = Easing.out(option(closure_1_2[7]).Easing.ease);
2026-07-20 16:05:17 +00:00
const result = sharedValue.set(obj.withTiming(1, obj));
},
accessibilityRole,
accessibilityState,
2026-07-29 08:29:29 +00:00
accessibilityLabel: memo,
children: null
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
items7 = [tmp.optionButton];
2026-07-20 16:05:17 +00:00
let id1;
2026-07-29 08:29:29 +00:00
if (option != null) {
2026-07-20 16:05:17 +00:00
const emoji4 = option.emoji;
2026-07-29 08:29:29 +00:00
if (emoji4 != null) {
2026-07-20 16:05:17 +00:00
id1 = emoji4.id;
}
}
2026-08-27 16:17:25 +00:00
let tmp38Result = null != id1;
if (!tmp38Result) {
2026-07-20 16:05:17 +00:00
let name2;
2026-07-29 08:29:29 +00:00
if (option != null) {
2026-07-20 16:05:17 +00:00
const emoji5 = option.emoji;
2026-07-29 08:29:29 +00:00
if (emoji5 != null) {
2026-07-20 16:05:17 +00:00
name2 = emoji5.name;
}
}
2026-08-27 16:17:25 +00:00
tmp38Result = null != name2;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
if (tmp38Result) {
const obj6 = { style: null, children: null };
obj6[0] = { display: "flex", alignItems: "center" };
const obj7 = { textEmojiStyle: null, fastImageStyle: null, src: null, name: null };
({ optionTextEmoji: obj24[0], optionImageEmoji: obj24[1] } = tmp);
2026-07-20 16:05:17 +00:00
let emojiURL;
2026-09-01 10:26:29 +00:00
let tmp7Result = tmp7(5585);
2026-07-20 16:05:17 +00:00
if (null != stateFromStores) {
2026-08-31 15:47:37 +00:00
tmp7Result = tmp7(1431);
2026-08-27 16:17:25 +00:00
const obj8 = { id: null, animated: null, size: null };
({ id: obj26[0], animated: obj26[1] } = stateFromStores);
obj8[2] = closure_8;
emojiURL = tmp7Result.getEmojiURL(obj8);
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
obj7[2] = emojiURL;
2026-07-29 08:29:29 +00:00
let str;
if (option != null) {
2026-07-20 16:05:17 +00:00
const emoji6 = option.emoji;
2026-07-29 08:29:29 +00:00
if (emoji6 != null) {
str = emoji6.name;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
obj7[3] = str;
obj6[1] = callback2(tmp7Result, obj7);
tmp38Result = tmp38(closure_5, obj6);
const tmp39 = closure_5;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
const items8 = [tmp38Result, ];
const obj9 = { style: tmp.optionText, children: null };
2026-09-01 10:26:29 +00:00
const items9 = [callback2(option(4474).Text, { variant: "text-md/semibold", color: "mobile-text-heading-primary", children: option.title }), ];
2026-08-27 16:17:25 +00:00
let tmp44Result = null != option.description && option.description.length > 0;
if (tmp44Result) {
const obj11 = { variant: "text-xs/medium", color: "text-default", children: null };
obj11[2] = option.description;
2026-09-01 10:26:29 +00:00
tmp44Result = tmp44(tmp2(4474).Text, obj11);
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
items9[1] = tmp44Result;
obj9[1] = items9;
items8[1] = closure_10(closure_5, obj9);
obj5[8] = items8;
2026-09-01 10:26:29 +00:00
const items10 = [closure_10(option(5068).PressableOpacity, obj5), , , ];
2026-08-27 16:17:25 +00:00
tmp44Result = null;
2026-07-20 16:05:17 +00:00
if (num > 0) {
2026-08-27 16:17:25 +00:00
const obj12 = { accessible: false, importantForAccessibility: "no-hide-descendants", accessibilityElementsHidden: true, style: null, children: null };
2026-07-20 16:05:17 +00:00
const items11 = [tmp.roleCount, animatedStyle1];
2026-08-27 16:17:25 +00:00
obj12[3] = items11;
const obj13 = { variant: "text-xs/semibold", color: "text-overlay-light", children: null };
2026-07-29 08:29:29 +00:00
let intl = tmp2(1236).intl;
2026-08-27 16:17:25 +00:00
const obj14 = { memberCount: null };
obj14[0] = num;
obj13[2] = intl.format(tmp2(1236).t.EgKsZA, obj14);
2026-09-01 10:26:29 +00:00
obj12[4] = tmp44(tmp2(4474).Text, obj13);
tmp44Result = tmp44(tmp7(4217).View, obj12);
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
items10[1] = tmp44Result;
const obj15 = { style: items12, children: null };
2026-07-23 10:11:24 +00:00
items12 = [tmp.checkIcon, animatedStyle];
2026-08-27 16:17:25 +00:00
const obj10 = { variant: "text-md/semibold", color: "mobile-text-heading-primary", children: option.title };
2026-09-01 10:26:29 +00:00
const tmp2Result9 = option(4205);
2026-08-27 16:17:25 +00:00
const tmp43 = closure_5;
2026-09-01 10:26:29 +00:00
obj15[1] = callback2(option(5588).CheckmarkSmallIcon, { size: "xs", color: selected(712).colors.WHITE });
items10[2] = callback2(selected(4217).View, obj15);
2026-07-20 16:05:17 +00:00
if (canBeNew) {
canBeNew = !selected;
}
if (canBeNew) {
canBeNew = option.isUnseen;
}
if (canBeNew) {
2026-08-27 16:17:25 +00:00
const obj17 = { color: null, text: null, style: null, textStyle: null };
obj17[0] = tmp2(1297).BadgeColors.BRAND;
2026-07-29 08:29:29 +00:00
let intl2 = tmp2(1236).intl;
2026-08-27 16:17:25 +00:00
obj17[1] = intl2.string(tmp2(1236).t.y2b7CA);
({ newBadgeWrapper: obj35[2], newBadge: obj35[3] } = tmp);
canBeNew = tmp44(tmp2(1297).TextBadge, obj17);
2026-07-20 16:05:17 +00:00
}
items10[3] = canBeNew;
2026-08-27 16:17:25 +00:00
obj4[1] = items10;
2026-09-01 10:26:29 +00:00
return closure_10(selected(4217).View, obj4);
2026-07-20 16:05:17 +00:00
};