decord/source/modules/icymi/native/CaughtUpRow.tsx

296 lines
13 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15840
// Function ID: 15841
2026-07-20 16:05:17 +00:00
// Name: ExploreServersRow
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 32, 19, 17, 21, 4119, 4739, 15777, 712, 9094, 15794, 15790, 4234, 4671, 4100, 12160, 1236, 4750, 15816, 4761, 691, 689, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15840 (ExploreServersRow)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "asyncGeneratorStep" /* 5 */;
import closure_4 from "_slicedToArray" /* 32 */;
import closure_5 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createICYMIStyles from "createICYMIStyles" /* 15777 */;
import importDefaultResult from "module_4119" /* 4119 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
({ jsx: error, jsxs: closure_8 } = jsxProd);
let closure_9 = importDefaultResult.createAnimatedComponent(require("Text").Text);
2026-07-23 10:11:24 +00:00
let closure_10 = createICYMIStyles.createICYMIStyles((margin) => {
2026-07-29 08:29:29 +00:00
let obj = { container: null, textContainer: null, recommendedGuildsContainer: null, iconWrapper: null, icon: null, headerText: null, subtitleText: null, buttonContainer: null, gradient: null };
2026-08-24 06:08:38 +00:00
obj = { flex: 1, display: "flex", alignItems: "center", justifyContent: "center", marginVertical: ThemesDefault.space.PX_32 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
obj = { marginHorizontal: margin.margin, marginBottom: ThemesDefault.space.PX_24 };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
obj[2] = { flex: 1, marginBottom: ThemesDefault.space.PX_24 };
obj1 = { flex: 1, marginBottom: ThemesDefault.space.PX_24 };
obj[3] = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: ThemesDefault.space.PX_24 };
2026-07-29 08:29:29 +00:00
obj[4] = { height: 40, width: 40 };
2026-08-24 06:08:38 +00:00
const obj2 = { display: "flex", alignItems: "center", justifyContent: "center", marginBottom: ThemesDefault.space.PX_24 };
obj[5] = { alignSelf: "center", marginBottom: ThemesDefault.space.PX_8, textAlign: "center" };
2026-07-29 08:29:29 +00:00
obj[6] = { alignSelf: "center", textAlign: "center" };
2026-08-24 06:08:38 +00:00
const obj3 = { alignSelf: "center", marginBottom: ThemesDefault.space.PX_8, textAlign: "center" };
obj[7] = { flex: 1, width: "100%", gap: ThemesDefault.space.PX_12, paddingHorizontal: margin.margin };
2026-07-29 08:29:29 +00:00
obj[8] = { position: "absolute", top: 0, left: 0, right: 0, height: 150 };
2026-07-20 16:05:17 +00:00
return obj;
});
let closure_11 = { code: "function CaughtUpRowTsx1(){const{visibleSharedValue,withTiming,Easing}=this.__closure;return{transform:[{translateY:visibleSharedValue.get()?withTiming(0,{duration:250,easing:Easing.bezier(0.5,1.8,0.5,1)}):-80}],opacity:visibleSharedValue.get()?withTiming(1,{duration:100,easing:Easing.out(Easing.bezierFn(0.33,1,0.68,1))}):0};}" };
let closure_12 = { code: "function CaughtUpRowTsx2(){const{visibleSharedValue,withDelay,withSequence,withTiming,Easing}=this.__closure;return{transform:[{translateY:visibleSharedValue.get()?withDelay(80,withSequence(withTiming(8,{duration:100,easing:Easing.inOut(Easing.ease)}),withTiming(0,{duration:300,easing:Easing.out(Easing.ease)}))):0}]};}" };
let closure_13 = { code: "function CaughtUpRowTsx3(){const{visibleSharedValue,withDelay,withSequence,withTiming,Easing}=this.__closure;return{transform:[{translateY:visibleSharedValue.get()?withDelay(115,withSequence(withTiming(8,{duration:150,easing:Easing.inOut(Easing.ease)}),withTiming(0,{duration:300,easing:Easing.out(Easing.ease)}))):0}]};}" };
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/icymi/native/CaughtUpRow.tsx");
2026-07-20 16:05:17 +00:00
export default function ExploreServersRow(visible) {
visible = visible.visible;
2026-07-29 08:29:29 +00:00
let sharedValue;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
2026-07-29 08:29:29 +00:00
const tmp = callback5();
2026-08-24 06:08:38 +00:00
let obj = visible(4119);
2026-07-29 08:29:29 +00:00
sharedValue = obj.useSharedValue(false);
2026-07-23 10:11:24 +00:00
let items = [visible, sharedValue];
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
2026-07-29 08:29:29 +00:00
let tmp2 = visible;
2026-07-20 16:05:17 +00:00
if (visible) {
2026-07-29 08:29:29 +00:00
tmp2 = sharedValue.get() !== tmp;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp2) {
2026-07-20 16:05:17 +00:00
const _setTimeout = setTimeout;
const timerId = setTimeout(() => {
2026-07-29 08:29:29 +00:00
const result = closure_1.set(true);
2026-07-20 16:05:17 +00:00
}, 500);
}
}, items);
const tmp4 = callback2(React.useState(false), 2);
2026-07-29 08:29:29 +00:00
dependencyMap = tmp4[1];
callback = React.useCallback(callback(function*() {
if (dependencyMap === 2) {
dependencyMap = 3;
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
dependencyMap = 2;
if (0 === v0) {
if (arg0 === 1) {
dependencyMap = 3;
throw arg1;
} else if (arg0 === 2) {
dependencyMap = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_0 = tmp4;
2026-07-29 08:29:29 +00:00
dependencyMap(true);
2026-08-24 06:08:38 +00:00
v0(9094).itemInteracted("caught_up", "caught_up", "press_explore");
const obj5 = v0(9094);
obj1 = { itemId: "caught_up", itemType: "caught_up", actionParameters: null };
2026-07-29 08:29:29 +00:00
obj1[2] = { actionGestureType: "press", actionTargetElement: "browse_servers_button", actionIntentType: "open", actionDestinationType: null };
2026-08-24 06:08:38 +00:00
v0(9094).feedItemActioned(obj1);
const obj6 = v0(9094);
2026-07-29 08:29:29 +00:00
v0 = 1;
dependencyMap = 1;
const obj2 = { value: null, done: false };
2026-08-24 06:08:38 +00:00
obj2[0] = closure_1_0(15794).maybeFetchGuildDiscoveryCategories();
2026-07-29 08:29:29 +00:00
return obj2;
}
} else if (arg0 === 1) {
dependencyMap = 3;
throw arg1;
} else if (arg0 === 2) {
dependencyMap = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const _setTimeout = setTimeout;
let timerId = setTimeout(() => {
tmp4(table[11]).pushICYMIInfoModal({ extendedOnboarding: true, skipIntro: true });
const timerId = setTimeout(() => {
callback(false);
}, 500);
}, 100);
dependencyMap = 3;
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp8) {
dependencyMap = tmp;
throw tmp8;
}
}
}), []);
2026-07-20 16:05:17 +00:00
const callback1 = React.useCallback(() => {
2026-08-24 06:08:38 +00:00
sharedValue(9094).itemInteracted("caught_up", "caught_up", "press_home");
const obj = sharedValue(9094);
sharedValue(9094).feedItemActioned({ itemId: "caught_up", itemType: "caught_up", actionParameters: { actionGestureType: "press", actionTargetElement: "back_to_home_button", actionIntentType: "navigate", actionDestinationType: "guild_home" } });
const obj2 = sharedValue(9094);
const rootNavigationRef = visible(4234).getRootNavigationRef();
2026-07-29 08:29:29 +00:00
if (rootNavigationRef != null) {
rootNavigationRef.navigate("tabs", { screen: "guilds" });
2026-07-20 16:05:17 +00:00
}
}, []);
2026-08-24 06:08:38 +00:00
obj1 = visible(4119);
2026-07-20 16:05:17 +00:00
class E {
constructor() {
2026-08-24 06:08:38 +00:00
obj = closure_1;
2026-07-20 16:05:17 +00:00
num = -80;
2026-08-24 06:08:38 +00:00
if (closure_1.get()) {
2026-07-20 16:05:17 +00:00
tmp = visible;
2026-08-24 06:08:38 +00:00
tmp2 = closure_2;
obj2 = visible(closure_2[13]);
2026-07-29 08:29:29 +00:00
obj = { duration: 250, easing: null };
tmp3 = visible;
2026-08-24 06:08:38 +00:00
tmp4 = closure_2;
Easing = visible(closure_2[5]).Easing;
2026-07-29 08:29:29 +00:00
num2 = 1;
num3 = 0.5;
num4 = 1.8;
tmp5 = Easing;
2026-07-20 16:05:17 +00:00
num5 = 0.5;
2026-07-29 08:29:29 +00:00
num6 = 0.5;
obj[1] = Easing.bezier(0.5, 1.8, 0.5, 1);
num7 = 0;
num = obj2.withTiming(0, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1 = { transform: items, opacity: null };
2026-07-20 16:05:17 +00:00
items = [];
2026-07-29 08:29:29 +00:00
items[0] = { translateY: num };
num8 = 0;
if (obj.get()) {
tmp6 = visible;
2026-08-24 06:08:38 +00:00
tmp7 = closure_2;
obj5 = visible(closure_2[13]);
2026-07-29 08:29:29 +00:00
obj2 = { duration: 100, easing: null };
tmp8 = visible;
2026-08-24 06:08:38 +00:00
tmp9 = closure_2;
Easing2 = visible(closure_2[5]).Easing;
2026-07-29 08:29:29 +00:00
tmp10 = visible;
2026-08-24 06:08:38 +00:00
tmp11 = closure_2;
Easing3 = visible(closure_2[5]).Easing;
2026-07-29 08:29:29 +00:00
num9 = 1;
num10 = 0.68;
num11 = 0.33;
tmp12 = Easing3;
num12 = 1;
num13 = 1;
obj2[1] = Easing2.out(Easing3.bezierFn(0.33, 1, 0.68, 1));
num8 = obj5.withTiming(1, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1[1] = num8;
return obj1;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
obj = { visibleSharedValue: sharedValue, withTiming: visible(4671).withTiming, Easing: visible(4119).Easing };
2026-07-20 16:05:17 +00:00
E.__closure = obj;
E.__workletHash = 6575188656069;
E.__initData = closure_11;
const animatedStyle = obj1.useAnimatedStyle(E);
2026-08-24 06:08:38 +00:00
let obj3 = visible(4119);
2026-07-20 16:05:17 +00:00
const fn = function b() {
let num = 0;
if (sharedValue.get()) {
2026-08-24 06:08:38 +00:00
let obj = visible(4119);
const obj2 = visible(4119);
2026-07-29 08:29:29 +00:00
obj = { duration: 100, easing: null };
2026-08-24 06:08:38 +00:00
const Easing = visible(4119).Easing;
obj[1] = Easing.inOut(visible(4119).Easing.ease);
const obj3 = visible(4671);
const withTimingResult = visible(4671).withTiming(8, obj);
2026-07-29 08:29:29 +00:00
obj = { duration: 300, easing: null };
2026-08-24 06:08:38 +00:00
const Easing2 = visible(4119).Easing;
obj[1] = Easing2.out(visible(4119).Easing.ease);
num = obj.withDelay(80, obj2.withSequence(withTimingResult, visible(4671).withTiming(0, obj)));
const obj5 = visible(4671);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const transform = [{ translateY: num }];
return { transform };
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj = { visibleSharedValue: sharedValue, withDelay: visible(4119).withDelay, withSequence: visible(4119).withSequence, withTiming: visible(4671).withTiming, Easing: visible(4119).Easing };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 469742746264;
fn.__initData = closure_12;
const animatedStyle1 = obj3.useAnimatedStyle(fn);
2026-08-24 06:08:38 +00:00
let obj5 = visible(4119);
2026-07-20 16:05:17 +00:00
const fn2 = function x() {
let num = 0;
if (sharedValue.get()) {
2026-08-24 06:08:38 +00:00
let obj = visible(4119);
const obj2 = visible(4119);
2026-07-29 08:29:29 +00:00
obj = { duration: 150, easing: null };
2026-08-24 06:08:38 +00:00
const Easing = visible(4119).Easing;
obj[1] = Easing.inOut(visible(4119).Easing.ease);
const obj3 = visible(4671);
const withTimingResult = visible(4671).withTiming(8, obj);
2026-07-29 08:29:29 +00:00
obj = { duration: 300, easing: null };
2026-08-24 06:08:38 +00:00
const Easing2 = visible(4119).Easing;
obj[1] = Easing2.out(visible(4119).Easing.ease);
num = obj.withDelay(115, obj2.withSequence(withTimingResult, visible(4671).withTiming(0, obj)));
const obj5 = visible(4671);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const transform = [{ translateY: num }];
return { transform };
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj1 = { visibleSharedValue: sharedValue, withDelay: visible(4119).withDelay, withSequence: visible(4119).withSequence, withTiming: visible(4671).withTiming, Easing: visible(4119).Easing };
2026-07-20 16:05:17 +00:00
fn2.__closure = obj1;
fn2.__workletHash = 14933607481025;
fn2.__initData = closure_13;
const animatedStyle2 = obj5.useAnimatedStyle(fn2);
2026-08-24 06:08:38 +00:00
let obj7 = visible(4100);
2026-07-29 08:29:29 +00:00
const token = obj7.useToken(sharedValue(712).colors.BACKGROUND_BRAND);
let obj2 = { children: null };
obj3 = { style: tmp.container, children: null };
const obj4 = { style: tmp.textContainer, children: null };
2026-08-24 06:08:38 +00:00
obj5 = { style: items1, children: callback3(visible(12160).FlashIcon, obj6) };
2026-07-23 10:11:24 +00:00
items1 = [tmp.iconWrapper, animatedStyle];
2026-08-24 06:08:38 +00:00
const items2 = [callback3(sharedValue(4119).View, obj5), , ];
2026-07-29 08:29:29 +00:00
obj7 = { variant: "heading-lg/semibold", color: "mobile-text-heading-primary", style: items3, children: null };
items3 = [tmp.headerText, animatedStyle1];
const intl = visible(1236).intl;
obj7[3] = intl.string(visible(1236).t.xjxffq);
2026-07-20 16:05:17 +00:00
items2[1] = callback3(closure_9, obj7);
2026-07-29 08:29:29 +00:00
const obj8 = { variant: "text-md/normal", color: "text-default", style: items4, children: null };
items4 = [tmp.subtitleText, animatedStyle2];
const intl2 = visible(1236).intl;
obj8[3] = intl2.string(visible(1236).t.sAApb0);
2026-07-20 16:05:17 +00:00
items2[2] = callback3(closure_9, obj8);
2026-07-29 08:29:29 +00:00
obj4[1] = items2;
2026-07-20 16:05:17 +00:00
const items5 = [callback4(View, obj4), ];
2026-07-29 08:29:29 +00:00
const obj9 = { style: tmp.buttonContainer, children: null };
const obj10 = { size: "md", text: null, grow: true, variant: "primary", onPress: null, loading: null };
const intl3 = visible(1236).intl;
obj10[1] = intl3.string(visible(1236).t.lNJYV8);
obj10[4] = callback;
obj10[5] = tmp4[0];
2026-08-24 06:08:38 +00:00
const items6 = [callback3(visible(4750).Button, obj10), ];
2026-07-29 08:29:29 +00:00
const obj11 = { size: "md", text: null, grow: true, variant: "secondary", onPress: null };
const intl4 = visible(1236).intl;
obj11[1] = intl4.string(visible(1236).t.AGrUbj);
obj11[4] = callback1;
2026-08-24 06:08:38 +00:00
items6[1] = callback3(visible(4750).Button, obj11);
2026-07-29 08:29:29 +00:00
obj9[1] = items6;
2026-07-20 16:05:17 +00:00
items5[1] = callback4(View, obj9);
2026-07-29 08:29:29 +00:00
obj3[1] = items5;
2026-08-24 06:08:38 +00:00
const items7 = [callback4(View, obj3), callback3(visible(15816).Separator, {}), ];
const obj12 = { style: tmp.gradient, start: visible(691).VerticalGradient.START, end: visible(691).VerticalGradient.END, colors: null, pointerEvents: "none" };
obj6 = { size: "custom", style: tmp.icon, color: "background-brand" };
const tmp11 = sharedValue(4761);
2026-07-29 08:29:29 +00:00
const obj20 = sharedValue(689)(token);
const items8 = [sharedValue(689)(token).alpha(0.2).hex(), ];
const alphaResult = sharedValue(689)(token).alpha(0.2);
const obj22 = sharedValue(689)(token);
items8[1] = sharedValue(689)(token).alpha(0).hex();
obj12[3] = items8;
items7[2] = callback3(tmp11, obj12);
obj2[0] = items7;
2026-07-20 16:05:17 +00:00
return callback4(View, obj2);
};