Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,112 @@
|
||||
/* Metro module 15318; source: modules/launchpad/native/useLaunchPadAnimatedStyles.native.tsx; dependencies: [11324, 477, 4501, 15319, 14283, 1585, 4017, 4577, 2] */
|
||||
function _fun117107(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15515:6, offset: 0x024a41ec, size: 264 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(11324) /* metro dependency 11324: LaunchPadConstants */).LAUNCH_PAD_SPRING_CONFIG;
|
||||
const env0_4 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({launchPad: {'position': 'absolute',
|
||||
'top': 0, 'left': 0, 'width': '100%', 'zIndex': 1}, launchPadCover: {'position': 'absolute', 'top': 0,
|
||||
'left': 0, 'right': 0, 'bottom': 0, 'backgroundColor': '#000'}});
|
||||
object = {code: "function useLaunchPadAnimatedStylesNativeTsx1(){const{withSpring,interpolate,launchPadSharedState,windowDimensions,LAUNCH_PAD_SPRING_CONFIG,gestureState,launchPadShown,IS_ANDROID,height}=this.__closure;return{transform:[{translateX:withSpring(interpolate(launchPadSharedState.get(),[0,1],[windowDimensions.get().width-16,0]),LAUNCH_PAD_SPRING_CONFIG,'animate-always',function(finished){'worklet';if(!finished||gestureState.get().active)return;if(launchPadSharedState.get()===1||launchPadSharedState.get()===0){launchPadShown.set(launchPadSharedState.get()===1);}})}],bottom:IS_ANDROID?0:height.get()};}"};
|
||||
object = {code: 'function useLaunchPadAnimatedStylesNativeTsx2(finished){const{gestureState,launchPadSharedState,launchPadShown}=this.__closure;if(!finished||gestureState.get().active)return;if(launchPadSharedState.get()===1||launchPadSharedState.get()===0){launchPadShown.set(launchPadSharedState.get()===1);}}'};
|
||||
object = {code: "function useLaunchPadAnimatedStylesNativeTsx3(){const{withSpring,interpolate,launchPadSharedState,LAUNCH_PAD_SPRING_CONFIG}=this.__closure;return{opacity:withSpring(interpolate(launchPadSharedState.get(),[0,1],[0,0.6]),LAUNCH_PAD_SPRING_CONFIG,'animate-always')};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/launchpad/native/useLaunchPadAnimatedStyles.native.tsx');
|
||||
exports.default = useLaunchpadAnimatedStyles;
|
||||
}
|
||||
|
||||
function useLaunchpadAnimatedStyles({launchPadSharedState, gestureState, launchPadShown}) { // fn#117108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15515:1638, offset: 0x024a42f4, size: 438 bytes, params: 2, frame: 27
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(15319) /* metro dependency 15319: useAnimatedKeyboardHeight */)();
|
||||
const value3 = (importDefault(14283) /* metro dependency 14283: useWindowDimensionsSharedValueNative */)();
|
||||
const env0_4 = value3;
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = useLaunchpadAnimatedStyles_;
|
||||
const object2 = {};
|
||||
const withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.withSpring = withSpring;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
object2.interpolate = interpolate;
|
||||
object2.launchPadSharedState = launchPadSharedState;
|
||||
object2.windowDimensions = value3;
|
||||
object2.LAUNCH_PAD_SPRING_CONFIG = LAUNCH_PAD_SPRING_CONFIG;
|
||||
object2.gestureState = gestureState;
|
||||
object2.launchPadShown = launchPadShown;
|
||||
object2.IS_ANDROID = env0_4;
|
||||
object2.height = value2;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 1628632614770;
|
||||
closure.__initData = env0_6;
|
||||
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue2.useAnimatedStyle;
|
||||
closure = function() {
|
||||
var object = {};
|
||||
object.opacity = require(dependencyMap[7]).withSpring(require(dependencyMap[6]).interpolate(launchPadSharedState.get(),
|
||||
|
||||
[0, 1], [0, 0.6]), LAUNCH_PAD_SPRING_CONFIG, 'animate-always');
|
||||
return object;
|
||||
};
|
||||
closure.__closure = {withSpring: withSpring, interpolate: interpolate, launchPadSharedState: launchPadSharedState,
|
||||
LAUNCH_PAD_SPRING_CONFIG: LAUNCH_PAD_SPRING_CONFIG};
|
||||
closure.__workletHash = 6964438968188;
|
||||
closure.__initData = env0_8;
|
||||
return {launchPadCoverStyles: [styles.launchPadCover, Reflect.apply(useAnimatedStyle, moduleValue2, [closure])],
|
||||
launchPadStyles: [styles.launchPad, value4, {paddingTop: top}]};
|
||||
}
|
||||
|
||||
function useLaunchpadAnimatedStyles_() { // fn#117109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15515:1817, owner: useLaunchpadAnimatedStyles._, offset: 0x024a44aa, size: 253 bytes, params: 1, frame: 24
|
||||
var environment;
|
||||
const object2 = {};
|
||||
const value = environment.__proto__;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const launchPadSharedStateBinding = launchPadSharedState;
|
||||
let get = launchPadSharedStateBinding.get;
|
||||
const value3 = Reflect.apply(get, launchPadSharedStateBinding, []);
|
||||
const binding = env0_4;
|
||||
get = binding.get;
|
||||
const value5 = 0;
|
||||
const value6 = Reflect.apply(interpolate, reanimatedRexportModule, [value3, [0, 1], [Reflect.apply(get, binding,
|
||||
[]).width - 16, value5]]);
|
||||
const closure = _H;
|
||||
closure.__closure = {gestureState: gestureState, launchPadSharedState: launchPadSharedStateBinding,
|
||||
launchPadShown: launchPadShown};
|
||||
closure.__workletHash = 7028378249389;
|
||||
closure.__initData = env1_7;
|
||||
object2.transform = [{translateX: Reflect.apply(withSpring, springModule, [value6, LAUNCH_PAD_SPRING_CONFIG,
|
||||
'animate-always', closure])}];
|
||||
object2.bottom = env1_4 ? value5 : env0_3.get();
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _H(a0) { // fn#117110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15515:1949, owner: useLaunchpadAnimatedStyles._.h, offset: 0x024a45a7, size: 117 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var gestureStateBinding;
|
||||
var launchPadSharedStateBinding;
|
||||
var launchPadShownBinding;
|
||||
var set;
|
||||
let value = a0;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
gestureStateBinding = gestureState;
|
||||
value = !gestureStateBinding.get().active;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
value = environment.__proto__;
|
||||
if (!(launchPadSharedState.get() !== 1 && launchPadSharedState.get() !== 0)) {
|
||||
launchPadShownBinding = launchPadShown;
|
||||
set = launchPadShownBinding.set;
|
||||
launchPadSharedStateBinding = launchPadSharedState;
|
||||
Reflect.apply(set, launchPadShownBinding, [launchPadSharedStateBinding.get() === 1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user