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

110 lines
5.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16307
// Function ID: 16308
2026-07-20 16:05:17 +00:00
// Name: LaunchPadContainer
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 10512, 21, 4380, 10513, 16308, 16310, 11554, 4120, 4814, 4240, 15368, 5533, 16311, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 16307 (LaunchPadContainer)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import LAUNCH_PAD_SPRING_CONFIG from "LAUNCH_PAD_SPRING_CONFIG" /* 10512 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
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;
2026-08-24 06:08:38 +00:00
let closure_8 = 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-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/launchpad/native/LaunchPadContainer.tsx");
2026-07-20 16:05:17 +00:00
export default function LaunchPadContainer(children) {
2026-07-29 08:29:29 +00:00
let launchPadSharedState;
updaters = undefined;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
const tmp = callback2();
2026-08-25 06:04:03 +00:00
const tmp4 = updaters(10513)();
const tmp5 = updaters(16308)();
2026-07-29 08:29:29 +00:00
launchPadSharedState = tmp5.launchPadSharedState;
({ launchPadPullTabState, launchPadShown, gestureState, updaters } = tmp5);
2026-08-25 06:04:03 +00:00
({ gesture, gestureRef } = updaters(16310)({ launchPadType: tmp4, launchPadSharedState, launchPadPullTabState, launchPadShown, gestureState, updaters }));
const tmp7 = updaters(11554)();
2026-07-29 08:29:29 +00:00
dependencyMap = tmp7;
2026-08-25 06:04:03 +00:00
let obj = launchPadSharedState(4120);
2026-07-20 16:05:17 +00:00
const fn = function o() {
2026-08-24 06:08:38 +00:00
return store.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-25 06:04:03 +00:00
obj1 = launchPadSharedState(4120);
2026-07-20 16:05:17 +00:00
const fn3 = function v() {
2026-08-24 06:08:38 +00:00
let obj = { borderRadius: launchPadSharedState(store[9]).interpolate(launchPadSharedState.get(), [0, 1], [0, 16]), transform: null };
2026-07-29 08:29:29 +00:00
obj = { scale: null };
2026-08-24 06:08:38 +00:00
const obj2 = launchPadSharedState(store[9]);
const obj4 = launchPadSharedState(store[10]);
2026-07-20 16:05:17 +00:00
const value = launchPadSharedState.get();
2026-08-24 06:08:38 +00:00
const diff = store.get().width - 48;
const items = [1, diff / store.get().width];
obj[0] = obj4.withSpring(launchPadSharedState(store[9]).interpolate(value, [0, 1], items), closure_1_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 };
2026-08-24 06:08:38 +00:00
const obj5 = launchPadSharedState(store[9]);
const obj7 = launchPadSharedState(store[10]);
obj[0] = obj7.withSpring(launchPadSharedState(store[9]).interpolate(launchPadSharedState.get(), [0, 1], [0, -4]), closure_1_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-25 06:04:03 +00:00
obj = { interpolate: launchPadSharedState(4120).interpolate, launchPadSharedState, withSpring: launchPadSharedState(4814).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-25 06:04:03 +00:00
const MobileHomeDrawerExperiment = launchPadSharedState(4240).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-25 06:04:03 +00:00
let items1 = [callback(updaters(4120).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-25 06:04:03 +00:00
const tmp10Result = tmp10(updaters(16311), 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-25 06:04:03 +00:00
obj[1] = callback(launchPadSharedState(5533).GestureDetector, obj1);
return callback(updaters(15368).Provider, obj);
2026-07-20 16:05:17 +00:00
};