Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,91 @@
|
||||
/* Metro module 15373; source: modules/activities/panel/native/pip/getActivityContainerPIPStylesSpec.tsx; dependencies: [4237, 8044, 11624, 2] */
|
||||
function _fun117523(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15570:6, offset: 0x024b5c40, size: 211 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const OrientationLockState = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
|
||||
const LANDSCAPE_ACTIVITY_ASPECT_RATIO = (require(8044) /* metro dependency 8044: ActivityPanelConstants */).LANDSCAPE_ACTIVITY_ASPECT_RATIO;
|
||||
const closure = t_117524;
|
||||
closure.__closure = {OrientationLockState: OrientationLockState,
|
||||
LANDSCAPE_ACTIVITY_ASPECT_RATIO: LANDSCAPE_ACTIVITY_ASPECT_RATIO,
|
||||
roundToNearestPixel: importDefault(11624) /* metro dependency 11624: roundToNearestPixel */};
|
||||
closure.__workletHash = 7141745103186;
|
||||
closure.__initData = {code: 'function getActivityContainerPipStylesSpec_getActivityContainerPIPStylesSpecTsx1({pipWidth:pipWidth,pipHeight:pipHeight,pipOrientationLockState:pipOrientationLockState,isLandscape:isLandscape}){const{OrientationLockState,LANDSCAPE_ACTIVITY_ASPECT_RATIO,roundToNearestPixel}=this.__closure;const nonNullPipOrientationLockState=pipOrientationLockState!==null&&pipOrientationLockState!==void 0?pipOrientationLockState:OrientationLockState.UNLOCKED;const shouldUsePortraitAspectRatio=nonNullPipOrientationLockState===OrientationLockState.PORTRAIT||nonNullPipOrientationLockState===OrientationLockState.UNLOCKED&&!isLandscape;let width=pipWidth;let height=pipHeight;let shouldHorizontallyCenter=false;let shouldVerticallyCenter=false;let marginLeft=0;let marginTop=0;if(shouldUsePortraitAspectRatio){width=pipWidth;height=width*LANDSCAPE_ACTIVITY_ASPECT_RATIO;shouldVerticallyCenter=true;marginTop=roundToNearestPixel(height/2)*-1;}else{height=pipHeight;width=height*LANDSCAPE_ACTIVITY_ASPECT_RATIO;shouldHorizontallyCenter=true;marginLeft=roundToNearestPixel(width/2)*-1;}return{width:width,height:height,shouldHorizontallyCenter:shouldHorizontallyCenter,shouldVerticallyCenter:shouldVerticallyCenter,marginLeft:marginLeft,marginTop:marginTop};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/panel/native/pip/getActivityContainerPIPStylesSpec.tsx');
|
||||
exports.default = closure;
|
||||
}
|
||||
|
||||
function t_117524({pipWidth, pipHeight, pipOrientationLockState, isLandscape}) { // fn#117524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15570:1430, offset: 0x024b5d13, size: 229 bytes, params: 2, frame: 20
|
||||
var r1;
|
||||
var r2;
|
||||
var r4;
|
||||
var r5;
|
||||
var r6;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
let r3 = pipOrientationLockState ?? OrientationLockState.UNLOCKED;
|
||||
const PORTRAIT = OrientationLockState.PORTRAIT;
|
||||
if (r3 === PORTRAIT) {
|
||||
value6 = pipWidth * LANDSCAPE_ACTIVITY_ASPECT_RATIO;
|
||||
value = importDefault(11624) /* metro dependency 11624: roundToNearestPixel */;
|
||||
value = value(value6 / 2);
|
||||
value = -1 * value;
|
||||
value7 = false;
|
||||
value8 = true;
|
||||
value9 = 0;
|
||||
r1 = value;
|
||||
r2 = value9;
|
||||
r3 = value8;
|
||||
r4 = value7;
|
||||
r5 = value6;
|
||||
r6 = pipWidth;
|
||||
} else if (r3 !== OrientationLockState.UNLOCKED) {
|
||||
value2 = pipHeight * LANDSCAPE_ACTIVITY_ASPECT_RATIO;
|
||||
value = importDefault(11624) /* metro dependency 11624: roundToNearestPixel */;
|
||||
value = value(value2 / 2);
|
||||
value = -1 * value;
|
||||
value3 = true;
|
||||
value4 = false;
|
||||
r1 = 0;
|
||||
r2 = value;
|
||||
r3 = value4;
|
||||
r4 = value3;
|
||||
r5 = pipHeight;
|
||||
r6 = value2;
|
||||
} else if (isLandscape) {
|
||||
value2 = pipHeight * LANDSCAPE_ACTIVITY_ASPECT_RATIO;
|
||||
value = importDefault(11624) /* metro dependency 11624: roundToNearestPixel */;
|
||||
value = value(value2 / 2);
|
||||
value = -1 * value;
|
||||
value3 = true;
|
||||
value4 = false;
|
||||
r1 = 0;
|
||||
r2 = value;
|
||||
r3 = value4;
|
||||
r4 = value3;
|
||||
r5 = pipHeight;
|
||||
r6 = value2;
|
||||
} else {
|
||||
value6 = pipWidth * LANDSCAPE_ACTIVITY_ASPECT_RATIO;
|
||||
value = importDefault(11624) /* metro dependency 11624: roundToNearestPixel */;
|
||||
value = value(value6 / 2);
|
||||
value = -1 * value;
|
||||
value7 = false;
|
||||
value8 = true;
|
||||
value9 = 0;
|
||||
r1 = value;
|
||||
r2 = value9;
|
||||
r3 = value8;
|
||||
r4 = value7;
|
||||
r5 = value6;
|
||||
r6 = pipWidth;
|
||||
}
|
||||
return {width: r6, height: r5, shouldHorizontallyCenter: r4, shouldVerticallyCenter: r3, marginLeft: r2,
|
||||
marginTop: r1};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/* Metro module 15363; source: modules/activities/panel/native/pip/usePIPAvoidanceSpecs.tsx; dependencies: [4017, 15319, 15364, 7739, 15263, 15365, 11282, 2] */
|
||||
function _fun117444(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15560:6, offset: 0x024b3354, size: 135 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object = {code: 'function usePIPAvoidanceSpecsTsx1(){const{keyboardHeight,safeArea,screenName}=this.__closure;return{keyboardHeight:keyboardHeight.get(),safeAreaBottom:safeArea.bottom,screenName:screenName.get()};}'};
|
||||
object = {code: 'function usePIPAvoidanceSpecsTsx2(props,previous){const{cheapWorkletShallowEqual,getPIPBottomOffsetForPIPMode,getAdjustedBottomOffsets,updateSharedValueIfChanged,pipAvoidanceSpecs}=this.__closure;if(cheapWorkletShallowEqual(props,previous!==null&&previous!==void 0?previous:undefined))return;const{keyboardHeight:keyboardHeight,safeAreaBottom:safeAreaBottom,screenName:screenName}=props;const screenBottomOffset=getPIPBottomOffsetForPIPMode(screenName);const{bottomOffset:bottomOffset}=getAdjustedBottomOffsets({screenBottomOffset:screenBottomOffset,safeAreaBottom:safeAreaBottom,keyboardHeight:keyboardHeight});updateSharedValueIfChanged(pipAvoidanceSpecs,{top:0,bottom:bottomOffset});}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/panel/native/pip/usePIPAvoidanceSpecs.tsx');
|
||||
exports.default = usePIPAvoidanceSpecs;
|
||||
}
|
||||
|
||||
function usePIPAvoidanceSpecs(a0) { // fn#117445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15560:1108, offset: 0x024b33db, size: 301 bytes, params: 2, frame: 23
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue({'top': 0,
|
||||
'bottom': 0});
|
||||
const value3 = (importDefault(15319) /* metro dependency 15319: useAnimatedKeyboardHeight */)();
|
||||
const value4 = (importDefault(15364) /* metro dependency 15364: useScreenNameSharedValue */)();
|
||||
const env0_3 = value4;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
|
||||
const closure = usePIPAvoidanceSpecsF;
|
||||
closure.__closure = {keyboardHeight: value3, safeArea: a0, screenName: value4};
|
||||
closure.__workletHash = 9790941132204;
|
||||
closure.__initData = env0_3;
|
||||
const closure2 = usePIPAvoidanceSpecsN;
|
||||
object2 = {};
|
||||
object2.cheapWorkletShallowEqual = (require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */).cheapWorkletShallowEqual;
|
||||
object2.getPIPBottomOffsetForPIPMode = importDefault(15263) /* metro dependency 15263: getPIPBottomOffsetForPIPMode */;
|
||||
object2.getAdjustedBottomOffsets = importDefault(15365) /* metro dependency 15365: getAdjustedBottomOffsets */;
|
||||
object2.updateSharedValueIfChanged = importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */;
|
||||
object2.pipAvoidanceSpecs = value2;
|
||||
closure2.__closure = object2;
|
||||
closure2.__workletHash = 643938425459;
|
||||
closure2.__initData = env0_4;
|
||||
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function usePIPAvoidanceSpecsF() { // fn#117446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15560:1255, owner: usePIPAvoidanceSpecs.f, offset: 0x024b3508, size: 57 bytes, params: 1, frame: 11
|
||||
const object2 = {};
|
||||
object2.keyboardHeight = env0_2.get();
|
||||
object2.safeAreaBottom = env0_0.bottom;
|
||||
object2.screenName = env0_3.get();
|
||||
return object2;
|
||||
}
|
||||
|
||||
function usePIPAvoidanceSpecsN(a0, a1) { // fn#117447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15560:1435, owner: usePIPAvoidanceSpecs.n, offset: 0x024b3541, size: 182 bytes, params: 3, frame: 17
|
||||
var keyboardHeight;
|
||||
var safeAreaBottom;
|
||||
var bottomOffset;
|
||||
let value = a1;
|
||||
const value3 = undefined;
|
||||
const cheapWorkletShallowEqualModule = require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */;
|
||||
if (!cheapWorkletShallowEqualModule.cheapWorkletShallowEqual(a0, value ?? value3)) {
|
||||
keyboardHeight = a0.keyboardHeight;
|
||||
safeAreaBottom = a0.safeAreaBottom;
|
||||
value = (importDefault(15263) /* metro dependency 15263: getPIPBottomOffsetForPIPMode */)(a0.screenName);
|
||||
bottomOffset = (importDefault(15365) /* metro dependency 15365: getAdjustedBottomOffsets */)({screenBottomOffset: value,
|
||||
|
||||
safeAreaBottom: safeAreaBottom, keyboardHeight: keyboardHeight}).bottomOffset;
|
||||
value = importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */;
|
||||
value(env0_1, {top: 0, bottom: bottomOffset});
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user