decord/source/modules/launchpad/native/LaunchPadContainer.tsx

122 lines
5.6 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 16178
// Function ID: 16179
2026-07-20 16:05:17 +00:00
// Name: LaunchPadContainer
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 10665, 21, 4661, 10666, 16179, 16181, 11155, 4115, 4744, 4235, 15274, 6377, 16182, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 16178 (LaunchPadContainer)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import LAUNCH_PAD_SPRING_CONFIG from "LAUNCH_PAD_SPRING_CONFIG";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
let StyleSheet;
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ View: c3, StyleSheet } = get_ActivityIndicator);
({ LAUNCH_PAD_SPRING_CONFIG: c4, LaunchPadTypes: c5 } = LAUNCH_PAD_SPRING_CONFIG);
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { wrapper: null, container: null };
createCacheKey = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(StyleSheet.absoluteFillObject);
2026-07-29 08:29:29 +00:00
createCacheKey.backgroundColor = "transparent";
createCacheKey[0] = createCacheKey;
2026-07-23 10:11:24 +00:00
let obj1 = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(StyleSheet.absoluteFillObject);
2026-07-29 08:29:29 +00:00
obj1.overflow = "hidden";
createCacheKey[1] = obj1;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
let closure_9 = { code: "function LaunchPadContainerTsx1(){const{windowDimensions}=this.__closure;return windowDimensions.get().height;}" };
let closure_10 = { code: "function LaunchPadContainerTsx2(height,lastHeight){const{updaters}=this.__closure;if(lastHeight==null)return;if(lastHeight<=height)return;updaters.onWindowHeightChange();}" };
let closure_11 = { code: "function LaunchPadContainerTsx3(){const{interpolate,launchPadSharedState,withSpring,windowDimensions,LAUNCH_PAD_SPRING_CONFIG}=this.__closure;return{borderRadius:interpolate(launchPadSharedState.get(),[0,1],[0,16]),transform:[{scale:withSpring(interpolate(launchPadSharedState.get(),[0,1],[1,(windowDimensions.get().width-16*3)/windowDimensions.get().width]),LAUNCH_PAD_SPRING_CONFIG,'animate-always')},{translateY:withSpring(interpolate(launchPadSharedState.get(),[0,1],[0,-4]),LAUNCH_PAD_SPRING_CONFIG,'animate-always')}]};}" };
2026-07-23 10:11:24 +00:00
const result = require("LAUNCH_PAD_SPRING_CONFIG").fileFinishedImporting("modules/launchpad/native/LaunchPadContainer.tsx");
2026-07-20 16:05:17 +00:00
export default function LaunchPadContainer(children) {
let gesture;
let gestureRef;
let gestureState;
let launchPadPullTabState;
let launchPadShown;
let updaters;
2026-07-29 08:29:29 +00:00
let launchPadSharedState;
updaters = undefined;
let dependencyMap;
const tmp = createCacheKey();
2026-08-15 05:55:55 +00:00
const tmp4 = updaters(10666)();
const tmp5 = updaters(16179)();
2026-07-29 08:29:29 +00:00
launchPadSharedState = tmp5.launchPadSharedState;
({ launchPadPullTabState, launchPadShown, gestureState, updaters } = tmp5);
2026-08-15 05:55:55 +00:00
({ gesture, gestureRef } = updaters(16181)({ launchPadType: tmp4, launchPadSharedState, launchPadPullTabState, launchPadShown, gestureState, updaters }));
const tmp7 = updaters(11155)();
2026-07-29 08:29:29 +00:00
dependencyMap = tmp7;
2026-08-15 05:55:55 +00:00
let obj = launchPadSharedState(4115);
2026-07-20 16:05:17 +00:00
const fn = function o() {
2026-07-29 08:29:29 +00:00
return _undefined.get().height;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
fn.__closure = { windowDimensions: tmp7 };
2026-07-20 16:05:17 +00:00
fn.__workletHash = 9985296176902;
fn.__initData = closure_9;
const fn2 = function l(arg0, arg1) {
if (null != arg1) {
if (arg1 > arg0) {
updaters.onWindowHeightChange();
}
}
};
fn2.__closure = { updaters };
fn2.__workletHash = 418963589215;
fn2.__initData = closure_10;
const animatedReaction = obj.useAnimatedReaction(fn, fn2);
2026-08-15 05:55:55 +00:00
let obj1 = launchPadSharedState(4115);
2026-07-20 16:05:17 +00:00
const fn3 = function v() {
2026-07-29 08:29:29 +00:00
let obj = { borderRadius: null, transform: null };
obj[0] = launchPadSharedState(_undefined[9]).interpolate(launchPadSharedState.get(), [0, 1], [0, 16]);
obj = { scale: null };
const obj2 = launchPadSharedState(_undefined[9]);
const obj4 = launchPadSharedState(_undefined[10]);
2026-07-20 16:05:17 +00:00
const value = launchPadSharedState.get();
2026-07-29 08:29:29 +00:00
const diff = _undefined.get().width - 48;
const items = [1, diff / _undefined.get().width];
obj[0] = obj4.withSpring(launchPadSharedState(_undefined[9]).interpolate(value, [0, 1], items), outer1_4, "animate-always");
2026-07-20 16:05:17 +00:00
const items1 = [obj, ];
2026-07-29 08:29:29 +00:00
obj = { translateY: null };
const obj5 = launchPadSharedState(_undefined[9]);
const obj7 = launchPadSharedState(_undefined[10]);
obj[0] = obj7.withSpring(launchPadSharedState(_undefined[9]).interpolate(launchPadSharedState.get(), [0, 1], [0, -4]), outer1_4, "animate-always");
2026-07-20 16:05:17 +00:00
items1[1] = obj;
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-20 16:05:17 +00:00
return obj;
};
2026-08-15 05:55:55 +00:00
obj = { interpolate: launchPadSharedState(4115).interpolate, launchPadSharedState, withSpring: launchPadSharedState(4744).withSpring, windowDimensions: tmp7, LAUNCH_PAD_SPRING_CONFIG: closure_4 };
2026-07-20 16:05:17 +00:00
fn3.__closure = obj;
fn3.__workletHash = 13886247172712;
fn3.__initData = closure_11;
const animatedStyle = obj1.useAnimatedStyle(fn3);
2026-08-15 05:55:55 +00:00
const MobileHomeDrawerExperiment = launchPadSharedState(4235).MobileHomeDrawerExperiment;
2026-07-29 08:29:29 +00:00
obj = { value: gestureRef, children: null };
obj1 = { gesture, children: null };
let obj2 = { style: tmp.wrapper, children: null };
2026-07-23 10:11:24 +00:00
let items = [tmp.container, animatedStyle];
2026-08-15 05:55:55 +00:00
let items1 = [callback(updaters(4115).View, { style: items, children: children.children }), ];
2026-07-29 08:29:29 +00:00
if (tmp4 !== constants.DISABLED) {
const obj3 = { launchPadType: null, gestureState: null, launchPadShown: null, launchPadSharedState: null, launchPadPullTabState: null, updaters: null };
obj3[0] = tmp4;
obj3[1] = gestureState;
obj3[2] = launchPadShown;
obj3[3] = launchPadSharedState;
obj3[4] = launchPadPullTabState;
obj3[5] = updaters;
2026-08-15 05:55:55 +00:00
const tmp10Result = tmp10(updaters(16182), obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items1[1] = tmp10Result;
obj2[1] = items1;
obj1[1] = closure_7(closure_3, obj2);
2026-08-15 05:55:55 +00:00
obj[1] = callback(launchPadSharedState(6377).GestureDetector, obj1);
return callback(updaters(15274).Provider, obj);
2026-07-20 16:05:17 +00:00
};