decord/source/modules/quests/native/QuestDock/QuestDockBackgroundBlurHeader.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

383 lines
22 KiB
TypeScript

// Module ID: 15304
// Function ID: 15305
// Name: QuestDockBackgroundBlurHeader
// Dependencies: [32, 19, 17, 5532, 15207, 21, 4640, 576, 5061, 15208, 1365, 4341, 15296, 4376, 7187, 15305, 15273, 5210, 4636, 1115, 11266, 15307, 8059, 2]
// Module 15304 (QuestDockBackgroundBlurHeader)
import nativeDefault from "native" /* 576 */;
import utils_PlatformUtils from "utils/PlatformUtils" /* 1365 */;
import spring from "spring" /* 5061 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
require = fn;
get_ActivityIndicator = fn(17);
({ AccessibilityInfo: hasOwnProperty, View: metroRequire } = get_ActivityIndicator);
const QuestDockMode = fn(5532).QuestDockMode;
const QuestDockConstants = fn(15207);
const QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QuestDockConstants.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
({ QUEST_DOCK_CONTENT_BORDER_RADII: closure_9, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: c10, QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: closure_11, QUEST_DOCK_COLLAPSED_HEIGHT } = QuestDockConstants);
const jsxProd = fn(21);
({ jsx: closure_12, Fragment: map1, jsxs: closure_14 } = jsxProd);
const createStyles = fn(4640);
let obj = { header: { alignItems: "center", justifyContent: "space-between", flexDirection: "row", height: QUEST_DOCK_COLLAPSED_HEIGHT, overflow: "hidden", paddingRight: nativeDefault.space.PX_16, paddingLeft: nativeDefault.space.PX_8, gap: nativeDefault.space.PX_8, position: "absolute", zIndex: 2 }, secondaryContent: { flexGrow: 0, flexShrink: 0 }, collapsedContent: { justifyContent: "center", position: "absolute", bottom: 0, top: 0, right: 0 }, expandedContent: null, actionDisclosures: null, actionDisclosuresIcon: null, tertiaryContent: null };
let obj3 = { alignItems: "center", justifyContent: "space-between", flexDirection: "row", height: QUEST_DOCK_COLLAPSED_HEIGHT, overflow: "hidden", paddingRight: nativeDefault.space.PX_16, paddingLeft: nativeDefault.space.PX_8, gap: nativeDefault.space.PX_8, position: "absolute", zIndex: 2 };
obj.expandedContent = { alignItems: "center", flexDirection: "row", gap: nativeDefault.space.PX_8 };
obj.actionDisclosures = { alignItems: "center", display: "flex", flexDirection: "row", gap: 4 };
obj.actionDisclosuresIcon = { height: 14, width: 14 };
obj.tertiaryContent = { opacity: 0.7 };
let closure_15 = createStyles.createStyles(obj);
function questDockHeaderLayoutAnimation(originX) {
const obj = { initialValues: { originX: originX.currentOriginX, originY: originX.currentOriginY, width: originX.currentWidth, height: originX.currentHeight }, animations: null };
const size = { originX: spring.withSpring(originX.targetOriginX, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED), originY: null, height: null, width: null };
size.originY = spring.withSpring(originX.targetOriginY, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
size.height = spring.withSpring(originX.targetHeight, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
size.width = spring.withSpring(originX.targetWidth, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
obj.animations = size;
return obj;
}
let obj4 = { alignItems: "center", flexDirection: "row", gap: nativeDefault.space.PX_8 };
questDockHeaderLayoutAnimation.__closure = { withSpring: fn(5061).withSpring, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED };
questDockHeaderLayoutAnimation.__workletHash = 13829887811453;
questDockHeaderLayoutAnimation.__initData = { code: "function questDockHeaderLayoutAnimation_QuestDockBackgroundBlurHeaderTsx1(values){const{withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:withSpring(values.targetOriginX,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),originY:withSpring(values.targetOriginY,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:withSpring(values.targetHeight,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),width:withSpring(values.targetWidth,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}};}" };
const __initData = { code: "function QuestDockBackgroundBlurHeaderTsx2(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),width:activeQuestDockMode.get()===QuestDockMode.EXPANDED?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}]};}" };
const __initData2 = { code: "function QuestDockBackgroundBlurHeaderTsx3(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}" };
const __initData3 = { code: "function QuestDockBackgroundBlurHeaderTsx4(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED*-1:0};}" };
const __initData4 = { code: "function QuestDockBackgroundBlurHeaderTsx5(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}" };
const __initData5 = { code: "function QuestDockBackgroundBlurHeaderTsx6(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};}" };
const __initData6 = { code: "function QuestDockBackgroundBlurHeaderTsx7(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}" };
const __initData7 = { code: "function QuestDockBackgroundBlurHeaderTsx8(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs}=this.__closure;return{borderRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),width:questDockWrapperSpecs.get().width};}" };
let obj5 = { withSpring: fn(5061).withSpring, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED };
let size = fn(2);
let result = size.fileFinishedImporting("modules/quests/native/QuestDock/QuestDockBackgroundBlurHeader.tsx");
export default noop.memo(function QuestDockBackgroundBlurHeader(arg0) {
({ blurHash, withPressableDisclosure } = arg0);
({ children, collapsedContent } = arg0);
if (withPressableDisclosure === undefined) {
withPressableDisclosure = false;
}
let activeQuestDockMode;
dependencyMap = undefined;
let token;
noop = undefined;
({ onDisclosurePress, onSubmenuPress } = arg0);
const context = noop.useContext(activeQuestDockMode(15208).QuestDockGestureContext);
activeQuestDockMode = context.activeQuestDockMode;
const questDockWrapperSpecs = context.questDockWrapperSpecs;
[tmp5, c2] = token(noop.useState(false), 2);
const effect = noop.useEffect(() => {
if (obj.isIOS()) {
const result = hasOwnProperty.isReduceTransparencyEnabled();
result.then(c2);
closure_0 = hasOwnProperty.addEventListener("reduceTransparencyChanged", c2);
return () => closure_0.remove();
}
obj = utils_PlatformUtils;
}, []);
const tmp4 = token(noop.useState(false), 2);
token = activeQuestDockMode(4341).useToken(questDockWrapperSpecs(576).modules.mobile.QUEST_DOCK_BORDER_RADIUS);
const tmp9 = questDockWrapperSpecs(15296)(token);
noop = tmp9;
let obj = activeQuestDockMode(4341);
class G {
constructor() {
obj = activeQuestDockMode;
tmp = QuestDockMode;
obj1 = { borderTopLeftRadius: activeQuestDockMode.get() === QuestDockMode.EXPANDED ? closure_9 : closure_3, borderTopRightRadius: obj.get() === tmp.EXPANDED ? closure_9 : closure_3, borderBottomLeftRadius: null, borderBottomRightRadius: null, width: null, transform: null };
if (obj.get() === tmp.EXPANDED) {
withSpringResult = closure_9;
} else {
tmp2 = closure_0;
tmp3 = closure_2;
obj3 = closure_0(closure_2[8]);
tmp4 = closure_4;
tmp5 = closure_8;
withSpringResult = obj3.withSpring(closure_4.get(), closure_8);
}
obj1.borderBottomLeftRadius = withSpringResult;
if (obj.get() === tmp.EXPANDED) {
withSpringResult1 = closure_9;
} else {
tmp7 = closure_0;
tmp8 = closure_2;
obj4 = closure_0(closure_2[8]);
tmp9 = closure_4;
tmp10 = closure_8;
withSpringResult1 = obj4.withSpring(closure_4.get(), closure_8);
}
obj1.borderBottomRightRadius = withSpringResult1;
if (obj.get() === tmp.EXPANDED) {
tmp13 = questDockWrapperSpecs;
tmp14 = closure_11;
num = 2;
width = questDockWrapperSpecs.get().width - 2 * closure_11;
} else {
tmp12 = questDockWrapperSpecs;
width = questDockWrapperSpecs.get().width;
}
obj1.width = width;
tmp15 = closure_0;
tmp16 = closure_2;
obj5 = closure_0(closure_2[8]);
num2 = 0;
if (obj.get() === tmp.EXPANDED) {
num2 = closure_11;
}
obj9 = { translateX: obj5.withSpring(num2, closure_8) };
tmp17 = closure_8;
items = [, ];
items[0] = obj9;
tmp15Result = tmp15(tmp16[8]);
num3 = 0;
if (obj.get() === tmp.EXPANDED) {
num3 = closure_11;
}
obj10 = { translateY: tmp15Result.withSpring(num3, tmp17) };
items[1] = obj10;
obj1.transform = items;
return obj1;
}
}
let obj2 = activeQuestDockMode(4376);
G.__closure = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: token, withSpring: activeQuestDockMode(5061).withSpring, questDockAnimatedBorderRadius: tmp9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED, questDockWrapperSpecs, QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: closure_11 };
G.__workletHash = 17202411570804;
G.__initData = __initData;
const animatedStyle = obj2.useAnimatedStyle(G);
let obj3 = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: token, withSpring: activeQuestDockMode(5061).withSpring, questDockAnimatedBorderRadius: tmp9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED, questDockWrapperSpecs, QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: closure_11 };
const fn = function b() {
let num = 1;
if (activeQuestDockMode.get() === QuestDockMode.EXPANDED) {
num = 0;
}
return { opacity: spring.withSpring(num, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED) };
};
let obj4 = activeQuestDockMode(4376);
fn.__closure = { withSpring: activeQuestDockMode(5061).withSpring, activeQuestDockMode, QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED };
fn.__workletHash = 5804990093011;
fn.__initData = __initData2;
const animatedStyle1 = obj4.useAnimatedStyle(fn);
let obj5 = { withSpring: activeQuestDockMode(5061).withSpring, activeQuestDockMode, QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED };
class Y {
constructor() {
right = 0;
if (activeQuestDockMode.get() === QuestDockMode.EXPANDED) {
tmp = closure_10;
num2 = -1;
right = -1 * closure_10;
}
return { right };
}
}
Y.__closure = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: closure_10 };
Y.__workletHash = 14001429324395;
Y.__initData = __initData3;
const animatedStyle2 = activeQuestDockMode(4376).useAnimatedStyle(Y);
let obj6 = activeQuestDockMode(4376);
const obj7 = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: closure_10 };
const fn2 = function x() {
let num = 0;
if (activeQuestDockMode.get() === QuestDockMode.EXPANDED) {
num = 1;
}
return { opacity: spring.withSpring(num, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED) };
};
const obj8 = activeQuestDockMode(4376);
fn2.__closure = { withSpring: activeQuestDockMode(5061).withSpring, activeQuestDockMode, QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED };
fn2.__workletHash = 6229744150165;
fn2.__initData = __initData4;
const animatedStyle3 = obj8.useAnimatedStyle(fn2);
const obj9 = { withSpring: activeQuestDockMode(5061).withSpring, activeQuestDockMode, QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED };
const fn3 = function q() {
let right = 0;
if (activeQuestDockMode.get() !== QuestDockMode.EXPANDED) {
right = closure_2_10;
}
return { right };
};
fn3.__closure = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: closure_10 };
fn3.__workletHash = 10870034799551;
fn3.__initData = __initData5;
const animatedStyle4 = activeQuestDockMode(4376).useAnimatedStyle(fn3);
const obj10 = activeQuestDockMode(4376);
class W {
constructor() {
pointerEvents = "none";
if (activeQuestDockMode.get() === QuestDockMode.EXPANDED) {
pointerEvents = "auto";
}
return { pointerEvents };
}
}
W.__closure = { activeQuestDockMode, QuestDockMode };
W.__workletHash = 3272003844163;
W.__initData = __initData6;
const animatedProps = activeQuestDockMode(4376).useAnimatedProps(W);
const obj11 = activeQuestDockMode(4376);
class V {
constructor() {
obj = activeQuestDockMode;
tmp = QuestDockMode;
obj1 = { borderRadius: activeQuestDockMode.get() === QuestDockMode.EXPANDED ? closure_9 : closure_3, borderBottomLeftRadius: null, borderBottomRightRadius: null, width: null };
if (obj.get() === tmp.EXPANDED) {
withSpringResult = closure_9;
} else {
tmp2 = closure_0;
tmp3 = closure_2;
obj3 = closure_0(closure_2[8]);
tmp4 = closure_4;
tmp5 = closure_8;
withSpringResult = obj3.withSpring(closure_4.get(), closure_8);
}
obj1.borderBottomLeftRadius = withSpringResult;
if (obj.get() === tmp.EXPANDED) {
withSpringResult1 = closure_9;
} else {
tmp7 = closure_0;
tmp8 = closure_2;
obj4 = closure_0(closure_2[8]);
tmp9 = closure_4;
tmp10 = closure_8;
withSpringResult1 = obj4.withSpring(closure_4.get(), closure_8);
}
obj1.borderBottomRightRadius = withSpringResult1;
obj1.width = questDockWrapperSpecs.get().width;
return obj1;
}
}
const obj12 = activeQuestDockMode(4376);
V.__closure = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: token, withSpring: activeQuestDockMode(5061).withSpring, questDockAnimatedBorderRadius: tmp9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED, questDockWrapperSpecs };
V.__workletHash = 8904986205240;
V.__initData = __initData7;
const animatedStyle5 = obj12.useAnimatedStyle(V);
let tmp17 = closure_15();
const obj14 = { style: null, layout: questDockHeaderLayoutAnimation, children: null };
let items = [tmp17.header, animatedStyle];
obj14.style = items;
const obj13 = { activeQuestDockMode, QuestDockMode, QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: token, withSpring: activeQuestDockMode(5061).withSpring, questDockAnimatedBorderRadius: tmp9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED, questDockWrapperSpecs };
const tmp19 = questDockWrapperSpecs(7187);
if (obj15.isAndroid()) {
if (null != blurHash) {
const obj16 = { placeholder: blurHash, animatedStyle: animatedStyle5, animatedLayout: tmp20 };
let tmp23 = closure_12(tmp7(15305), obj16);
let tmp22 = closure_12;
}
const items1 = [tmp23, children, ];
const obj17 = { style: tmp17.secondaryContent, children: null };
const obj18 = { style: null, layout: null, children: null };
const items2 = [tmp17.collapsedContent, animatedStyle2];
obj18.style = items2;
obj18.layout = tmp20;
const obj19 = { style: animatedStyle1, children: collapsedContent };
obj18.children = tmp22(tmp7(7187), obj19);
const items3 = [tmp22(tmp7(7187), obj18), ];
const obj20 = { animatedProps, style: animatedStyle4, layout: tmp20, children: null };
const tmp7Result = tmp7(7187);
const obj21 = { style: null, children: null };
const items4 = [tmp17.expandedContent, animatedStyle3];
obj21.style = items4;
const tmp7Result3 = tmp7(7187);
if (withPressableDisclosure) {
const obj22 = { onPress: onDisclosurePress, accessibilityRole: "button", style: null, children: null };
const items5 = [, ];
({ actionDisclosures: arr7[0], tertiaryContent: arr7[1] } = tmp17);
obj22.style = items5;
const obj23 = { children: null };
const obj24 = { color: "interactive-text-active", variant: "text-sm/medium", children: null };
const intl2 = tmp(1115).intl;
obj24.children = intl2.string(tmp(1115).t.o6FLcF);
const items6 = [tmp22(tmp(4636).Text, obj24), ];
const obj25 = { color: tmp7(576).colors.INTERACTIVE_TEXT_ACTIVE, style: tmp17.actionDisclosuresIcon };
items6[1] = tmp22(tmp(11266).CircleQuestionIcon, obj25);
obj23.children = items6;
obj22.children = tmp18(closure_13, obj23);
let tmp22Result = tmp22(tmp(5210).PressableOpacity, obj22);
} else {
const obj26 = { style: null, children: null };
const items7 = [, ];
({ actionDisclosures: arr6[0], tertiaryContent: arr6[1] } = tmp17);
obj26.style = items7;
const obj27 = { color: "text-default", variant: "text-sm/medium", children: null };
const intl = tmp(1115).intl;
obj27.children = intl.string(tmp(1115).t.o6FLcF);
obj26.children = tmp22(tmp(4636).Text, obj27);
tmp22Result = tmp22(tmp25, obj26);
}
const items8 = [tmp22Result, tmp22(tmp7(15307), {}), ];
const obj28 = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, style: null, children: null };
class G {
constructor() {
obj = activeQuestDockMode;
tmp = QuestDockMode;
obj1 = { borderTopLeftRadius: activeQuestDockMode.get() === QuestDockMode.EXPANDED ? closure_9 : closure_3, borderTopRightRadius: obj.get() === tmp.EXPANDED ? closure_9 : closure_3, borderBottomLeftRadius: null, borderBottomRightRadius: null, width: null, transform: null };
if (obj.get() === tmp.EXPANDED) {
withSpringResult = closure_9;
} else {
tmp2 = closure_0;
tmp3 = closure_2;
obj3 = closure_0(closure_2[8]);
tmp4 = closure_4;
tmp5 = closure_8;
withSpringResult = obj3.withSpring(closure_4.get(), closure_8);
}
obj1.borderBottomLeftRadius = withSpringResult;
if (obj.get() === tmp.EXPANDED) {
withSpringResult1 = closure_9;
} else {
tmp7 = closure_0;
tmp8 = closure_2;
obj4 = closure_0(closure_2[8]);
tmp9 = closure_4;
tmp10 = closure_8;
withSpringResult1 = obj4.withSpring(closure_4.get(), closure_8);
}
obj1.borderBottomRightRadius = withSpringResult1;
if (obj.get() === tmp.EXPANDED) {
tmp13 = questDockWrapperSpecs;
tmp14 = closure_11;
num = 2;
width = questDockWrapperSpecs.get().width - 2 * closure_11;
} else {
tmp12 = questDockWrapperSpecs;
width = questDockWrapperSpecs.get().width;
}
obj1.width = width;
tmp15 = closure_0;
tmp16 = closure_2;
obj5 = closure_0(closure_2[8]);
num2 = 0;
if (obj.get() === tmp.EXPANDED) {
num2 = closure_11;
}
obj9 = { translateX: obj5.withSpring(num2, closure_8) };
tmp17 = closure_8;
items = [, ];
items[0] = obj9;
tmp15Result = tmp15(tmp16[8]);
num3 = 0;
if (obj.get() === tmp.EXPANDED) {
num3 = closure_11;
}
obj10 = { translateY: tmp15Result.withSpring(num3, tmp17) };
items[1] = obj10;
obj1.transform = items;
return obj1;
}
}
obj28.accessibilityLabel = obj29.string(tmp(1115).t.PdRCRg);
obj28.onPress = onSubmenuPress;
obj28.style = tmp17.tertiaryContent;
const obj30 = { color: tmp7(576).colors.INTERACTIVE_TEXT_ACTIVE };
obj28.children = tmp22(tmp(8059).MoreHorizontalIcon, obj30);
items8[2] = tmp22(tmp(5210).PressableOpacity, obj28);
obj21.children = items8;
obj20.children = tmp18(tmp7(7187), obj21);
items3[1] = tmp22(tmp7Result3, obj20);
obj17.children = items3;
items1[2] = tmp18(closure_6, obj17);
obj14.children = items1;
return tmp18(tmp19, obj14);
}
tmp22 = closure_12;
tmp23 = closure_12(tmp7(15273), { animatedStyle: animatedStyle5, animatedLayout: tmp20 });
});