Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,771 @@
|
||||
/* Metro module 13651; source: modules/quests/native/QuestDock/QuestDock.tsx; dependencies: [5, 57, 31, 27, 13570, 6528, 13572, 661, 7553, 482, 33, 4501, 697, 13650, 13573, 13576, 13569, 4559, 4017, 8621, 1585, 5176, 3860, 13652, 4577, 13571, 4581, 4556, 13653, 8141, 1244, 13654, 13661, 13664, 13665, 4562, 9483, 6531, 13666, 566, 9479, 13568, 7701, 683, 4826, 4831, 7120, 9484, 10183, 3868, 2] */
|
||||
function _fun104239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6, offset: 0x0228b863, size: 979 bytes, params: 8, frame: 33
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const closure = QuestDockWithEntranceAnimation;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value2.View;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_7 = value2.Pressable;
|
||||
const env0_8 = value2.Image;
|
||||
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
|
||||
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_10 = questConstantsModule.QuestDockMode;
|
||||
const env0_11 = questConstantsModule.QuestsExperimentLocations;
|
||||
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
|
||||
const env0_12 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
const env0_13 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
|
||||
const env0_14 = questDockConstantsModule.QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
const env0_15 = questDockConstantsModule.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
const env0_16 = questDockConstantsModule.QUEST_DOCK_COLLAPSED_HEIGHT;
|
||||
const env0_17 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_18 = (require(7553) /* metro dependency 7553: YouBarConstants */).useYouBarTotalHeight;
|
||||
const env0_19 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
const value5 = require(33) /* metro dependency 33 */;
|
||||
const env0_20 = value5.jsx;
|
||||
const env0_21 = value5.jsxs;
|
||||
const env0_22 = value5.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {wrapper: {'position': 'absolute', 'left': '50%', 'bottom': 0, 'zIndex': 1}};
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
|
||||
object7['zIndex'] = 1;
|
||||
object3.accessibilityWrapper = object7;
|
||||
const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS;
|
||||
object3.questDockWrapper = {'position': 'absolute', 'bottom': 0, 'left': '50%', 'overflow': 'hidden',
|
||||
'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null, 'zIndex': 1,
|
||||
borderRadius: QUEST_DOCK_BORDER_RADIUS};
|
||||
const object8 = {};
|
||||
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
|
||||
object8['justifyContent'] = 'flex-end';
|
||||
object8['zIndex'] = 4;
|
||||
object3.questDockContentWrapper = object8;
|
||||
const object9 = {};
|
||||
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
|
||||
object9['bottom'] = undefined;
|
||||
object9['right'] = undefined;
|
||||
object9['borderWidth'] = 1;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object9['borderColor'] = BORDER_MUTED;
|
||||
object9['zIndex'] = 5;
|
||||
object3.questDockHeaderBorder = object9;
|
||||
const object10 = {};
|
||||
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
|
||||
object10['zIndex'] = 6;
|
||||
object3.nestedPressable = object10;
|
||||
const env0_23 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
object3 = {code: 'function QuestDockTsx1(){const{restingQuestDockMode,QuestDockMode}=this.__closure;return restingQuestDockMode.get()===QuestDockMode.EXPANDED;}'};
|
||||
object3 = {code: 'function QuestDockTsx2(){const{appThemedBackgroundColor,withSpring,activeQuestDockMode,QuestDockMode,youBarEnabled,questDockBorderRadius,bottomBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_MODE_CHANGE_PHYSICS,roundToNearestPixel}=this.__closure;return{backgroundColor:appThemedBackgroundColor,borderBottomRightRadius:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED&&!youBarEnabled?questDockBorderRadius:bottomBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),borderBottomLeftRadius:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED&&!youBarEnabled?questDockBorderRadius:bottomBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:questDockWrapperSpecs.get().height,width:questDockWrapperSpecs.get().width,opacity:withSpring(1,QUEST_DOCK_MODE_CHANGE_PHYSICS),transform:[{translateX:withSpring(questDockWrapperSpecs.get().x+roundToNearestPixel(questDockWrapperSpecs.get().width/2)*-1,QUEST_DOCK_MODE_CHANGE_PHYSICS)},{translateY:withSpring(questDockWrapperSpecs.get().y,QUEST_DOCK_MODE_CHANGE_PHYSICS)}]};}'};
|
||||
object3 = {code: 'function QuestDockTsx3(){const{withSpring,interpolate,isPressed,activeQuestDockMode,QuestDockMode,youBarEnabled,springStandard}=this.__closure;return{transform:[{scale:withSpring(interpolate(isPressed.get(),[1,0],[activeQuestDockMode.get()===QuestDockMode.EXPANDED||youBarEnabled?1:0.98,1]),springStandard)}]};}'};
|
||||
object3 = {code: 'function QuestDockTsx4(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,windowDimensions}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS),height:windowDimensions.get().height};}'};
|
||||
object3 = {code: "function QuestDockTsx5(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}"};
|
||||
object3 = {code: 'function QuestDockTsx6(){const{questDockWrapperSpecs,windowDimensions,safeAreaTop}=this.__closure;const specs=questDockWrapperSpecs.get();const windowHeight=windowDimensions.get().height;return windowHeight-safeAreaTop-specs.height;}'};
|
||||
object3 = {code: 'function QuestDockTsx7(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.CLOSED||activeQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
|
||||
object3 = {code: 'function QuestDockTsx8(){const{isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,bottomBorderRadius,withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_COLLAPSED_HEIGHT,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?bottomBorderRadius.get():questDockBorderRadius,borderBottomRightRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?bottomBorderRadius.get():questDockBorderRadius,opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:activeQuestDockMode.get()===QuestDockMode.EXPANDED?isEnrolled?questDockWrapperSpecs.get().height:QUEST_DOCK_COLLAPSED_HEIGHT:questDockWrapperSpecs.get().height,width:activeQuestDockMode.get()===QuestDockMode.EXPANDED&&!isEnrolled?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:isEnrolled?0:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:isEnrolled?0:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}],borderBottomWidth:youBarEnabled?bottomBorderRadius.get()>0?1:0:1};}'};
|
||||
const env0_32 = createStylesModule.createStyles(function() {
|
||||
return {wrapperAnimated: {'position': 'absolute', 'bottom': 0, 'padding': 0, 'width': '100%'}};
|
||||
});
|
||||
object3 = {};
|
||||
const SUBTLE_SPRING = (require(4581) /* metro dependency 4581: springPresets */).SUBTLE_SPRING;
|
||||
copyDataProperties(object3, SUBTLE_SPRING, undefined);
|
||||
object3['overshootClamping'] = true;
|
||||
object3['damping'] = 54;
|
||||
object3 = {code: "function QuestDockTsx9(){const{withSpring,isRendered,ENTRANCE_ANIMATION_SPING_CONFIG,componentDimensions}=this.__closure;return{opacity:withSpring(isRendered?1:0,ENTRANCE_ANIMATION_SPING_CONFIG,'animate-always'),transform:[{translateY:withSpring(isRendered?0:componentDimensions.height,ENTRANCE_ANIMATION_SPING_CONFIG)}]};}"};
|
||||
value = value.memo(QuestDockWithQuestContext);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDock.tsx');
|
||||
exports.default = value;
|
||||
exports.QuestDockWithEntranceAnimation = closure;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimation({appThemedBackgroundColor}) { // fn#104240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:5687, offset: 0x0228bc36, size: 2445 bytes, params: 2, frame: 50
|
||||
var object2;
|
||||
let binding = env0_5;
|
||||
let useContext = binding.useContext;
|
||||
const quest = Reflect.apply(useContext, binding,
|
||||
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
|
||||
const styles = useStyles();
|
||||
binding = env0_5;
|
||||
useContext = binding.useContext;
|
||||
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
|
||||
const {questDockWrapperSpecs, activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding,
|
||||
[QuestDockGestureContext]);
|
||||
binding = env0_5;
|
||||
useContext = binding.useContext;
|
||||
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
|
||||
const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, binding,
|
||||
[QuestDockExternalCoordinationContext]);
|
||||
var env0_5 = setRestingQuestDockMode;
|
||||
const value5 = env0_5.useId();
|
||||
const value6 = env0_5.useCallback(function() {
|
||||
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
|
||||
}, [setRestingQuestDockMode]);
|
||||
(require(13569) /* metro dependency 13569: QuestDockHooks */).useQuestDockModeAnimatedReaction();
|
||||
(require(13569) /* metro dependency 13569: QuestDockHooks */).useQuestDockDismissalReset();
|
||||
const value7 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useDerivedValue = reanimatedRexportModule.useDerivedValue;
|
||||
let closure = QuestDockWithGestureAnimationK;
|
||||
closure.__closure = {restingQuestDockMode: restingQuestDockMode, QuestDockMode: QuestDockMode};
|
||||
closure.__workletHash = 2415817673061;
|
||||
closure.__initData = env0_24;
|
||||
const value9 = (importDefault(8621) /* metro dependency 8621: useStateFromSharedValue */)(Reflect.apply(useDerivedValue,
|
||||
reanimatedRexportModule, [closure]));
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const value10 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDock');
|
||||
const value11 = useYouBarTotalHeight();
|
||||
const userStatus = quest.userStatus;
|
||||
const value12 = userStatus?.enrolledAt != null;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS;
|
||||
const value13 = Reflect.apply(useToken, useTokenModule, [QUEST_DOCK_BORDER_RADIUS]);
|
||||
const value14 = (importDefault(13652) /* metro dependency 13652: useQuestDockAnimatedBorderRadius */)(value13);
|
||||
const moduleValue7 = reanimatedRexportModule;
|
||||
let useAnimatedStyle = moduleValue7.useAnimatedStyle;
|
||||
closure = QuestDockWithGestureAnimationW;
|
||||
object2 = {appThemedBackgroundColor: appThemedBackgroundColor};
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.activeQuestDockMode = activeQuestDockMode;
|
||||
object2.QuestDockMode = QuestDockMode;
|
||||
object2.youBarEnabled = value10;
|
||||
object2.questDockBorderRadius = value13;
|
||||
object2.bottomBorderRadius = value14;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
|
||||
object2.questDockWrapperSpecs = questDockWrapperSpecs;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
object2.roundToNearestPixel = (require(13571) /* metro dependency 13571: QuestDockUtils */).roundToNearestPixel;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 8564067641719;
|
||||
closure.__initData = env0_25;
|
||||
const value15 = Reflect.apply(useAnimatedStyle, moduleValue7, [closure]);
|
||||
const value16 = reanimatedRexportModule.useSharedValue(0);
|
||||
const moduleValue9 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue9.useAnimatedStyle;
|
||||
closure = QuestDockWithGestureAnimationX;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
interpolate: reanimatedRexportModule.interpolate, isPressed: value16, activeQuestDockMode: activeQuestDockMode,
|
||||
QuestDockMode: QuestDockMode, youBarEnabled: value10,
|
||||
springStandard: (require(4581) /* metro dependency 4581: springPresets */).springStandard};
|
||||
closure.__workletHash = 13804511468631;
|
||||
closure.__initData = env0_26;
|
||||
const value17 = Reflect.apply(useAnimatedStyle, moduleValue9, [closure]);
|
||||
const value18 = env0_5.useCallback(function() {
|
||||
setRestingQuestDockMode(QuestDockMode.EXPANDED);
|
||||
}, [setRestingQuestDockMode]);
|
||||
const value19 = env0_5.useCallback(_fun104246, [value16]);
|
||||
const value20 = env0_5.useCallback(_fun104247, [value16]);
|
||||
const moduleValue10 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue10.useAnimatedStyle;
|
||||
closure = function() {
|
||||
var object = {};
|
||||
var moduleValue = require(dependencyMap[24]);
|
||||
object.opacity = moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : 1,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS);
|
||||
object.height = windowDimensions.get().height;
|
||||
return object;
|
||||
};
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS, windowDimensions: windowDimensions};
|
||||
closure.__workletHash = 6178969276321;
|
||||
closure.__initData = env0_27;
|
||||
const value21 = Reflect.apply(useAnimatedStyle, moduleValue10, [closure]);
|
||||
const moduleValue11 = reanimatedRexportModule;
|
||||
const useAnimatedProps = moduleValue11.useAnimatedProps;
|
||||
closure = QuestDockWithGestureAnimationF;
|
||||
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode};
|
||||
closure.__workletHash = 5416180055289;
|
||||
closure.__initData = env0_28;
|
||||
const value22 = Reflect.apply(useAnimatedProps, moduleValue11, [closure]);
|
||||
const moduleValue12 = reanimatedRexportModule;
|
||||
useDerivedValue = moduleValue12.useDerivedValue;
|
||||
closure = QuestDockWithGestureAnimationV;
|
||||
closure.__closure = {questDockWrapperSpecs: questDockWrapperSpecs, windowDimensions: windowDimensions,
|
||||
safeAreaTop: top};
|
||||
closure.__workletHash = 8073454569923;
|
||||
closure.__initData = env0_29;
|
||||
const value24 = (importDefault(8621) /* metro dependency 8621: useStateFromSharedValue */)(Reflect.apply(useDerivedValue,
|
||||
moduleValue12, [closure]));
|
||||
const moduleValue13 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue13.useAnimatedStyle;
|
||||
closure = function() {
|
||||
var moduleValue = require(dependencyMap[24]);
|
||||
return {opacity: moduleValue.withSpring(activeQuestDockMode.get() === QuestDockMode.CLOSED ? 0 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 1 : 0,
|
||||
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS)};
|
||||
};
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS};
|
||||
closure.__workletHash = 6468803634518;
|
||||
closure.__initData = env0_30;
|
||||
const value25 = Reflect.apply(useAnimatedStyle, moduleValue13, [closure]);
|
||||
const moduleValue14 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue14.useAnimatedStyle;
|
||||
closure = QuestDockWithGestureAnimationZ;
|
||||
object2 = {isEnrolled: value12, activeQuestDockMode: activeQuestDockMode};
|
||||
object2.QuestDockMode = QuestDockMode;
|
||||
object2.QUEST_DOCK_CONTENT_BORDER_RADII = QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
object2.questDockBorderRadius = value13;
|
||||
object2.youBarEnabled = value10;
|
||||
object2.bottomBorderRadius = value14;
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
|
||||
object2.questDockWrapperSpecs = questDockWrapperSpecs;
|
||||
object2.QUEST_DOCK_COLLAPSED_HEIGHT = QUEST_DOCK_COLLAPSED_HEIGHT;
|
||||
object2.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 14482794021030;
|
||||
closure.__initData = env0_31;
|
||||
const value26 = Reflect.apply(useAnimatedStyle, moduleValue14, [closure]);
|
||||
const jsxRuntimeEnv0_22Binding = jsxRuntimeEnv0_22;
|
||||
const value27 = 'auto';
|
||||
const AccessibilityViewAnimated = (require(4556) /* metro dependency 4556: AccessibilityViewNative */).AccessibilityViewAnimated;
|
||||
const r5 = value7 ? value9 : !!value7;
|
||||
const QuestDockGestureDetector = importDefault(13653) /* metro dependency 13653: QuestDockGestureDetector */;
|
||||
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
|
||||
const defaultImport3 = ReanimatedNativeView;
|
||||
const defaultImport3Props = {style: [styles.questDockWrapper, {bottom: value11 - 1}, value15],
|
||||
layout: (require(13571) /* metro dependency 13571: QuestDockUtils */).dimensionsLayoutTransition};
|
||||
const pressableBindingProps = {style: styles.nestedPressable, onPressIn: value19, onPressOut: value20,
|
||||
onPress: value18, pointerEvents: value9 ? 'none' : value27, accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
pressableBindingProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rjVPdM);
|
||||
pressableBindingProps.accessibilityHint = value9 ? '' : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.n0MlOB);
|
||||
const items2 = [<Pressable {...pressableBindingProps} />];
|
||||
items2[1] = <ReanimatedNativeView style={[styles.questDockHeaderBorder,
|
||||
value26]} layout={(require(13571) /* metro dependency 13571: QuestDockUtils */).dimensionsLayoutTransition} pointerEvents="none" />;
|
||||
items2[2] = <ReanimatedNativeView style={[styles.questDockContentWrapper,
|
||||
value25]}><View style={styles.questDockContentWrapper}>{((Component) => <Component hideOnExpand={value12} />)(importDefault(13654) /* metro dependency 13654: QuestDockContentCollapsed */)}{((Component) => <Component />)(importDefault(13661) /* metro dependency 13661: QuestDockContentExpanded */)}</View>{!value12 && ((Component) => <Component />)(importDefault(13664) /* metro dependency 13664: QuestDockUnenrolledBackground */)}</ReanimatedNativeView>;
|
||||
items2[3] = ((Component) => <Component isExpanded={value9} />)(importDefault(13665) /* metro dependency 13665: QuestDockDragHandle */);
|
||||
const view = <View style={styles.wrapper} pointerEvents={value27}><AccessibilityViewAnimated nativeID={value5} style={styles.accessibilityWrapper} accessibilityViewIsModal={r5} onAccessibilityEscape={value6} pointerEvents="box-none"><QuestDockGestureDetector><ReanimatedNativeView style={value17}>{((Component) => <Component {...defaultImport3Props}>{items2}</Component>)(defaultImport3)}</ReanimatedNativeView></QuestDockGestureDetector></AccessibilityViewAnimated></View>;
|
||||
const defaultImport10 = ReanimatedNativeView;
|
||||
const Backdrop = (require(4562) /* metro dependency 4562: BackdropNative */).Backdrop;
|
||||
return (
|
||||
<>
|
||||
{view}
|
||||
{((Component) => <Component style={value21} animatedProps={value22}><Backdrop onDismiss={value6} accessibleDismissStyle={{height: value24}} /></Component>)(defaultImport10)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestDockModeChangeTracker({mode, questId}) { // fn#104253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:11130, offset: 0x0228ccf8, size: 120 bytes, params: 2, frame: 17
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useQuestBarOrDockModeChangeTracking = questHooksModule.useQuestBarOrDockModeChangeTracking;
|
||||
const object2 = {mode: mode};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.questContent = QUEST_BAR_MOBILE;
|
||||
object2.questId = questId;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(useQuestBarOrDockModeChangeTracking, questHooksModule, [object2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function QuestBarRenderedTriggerPointWrapper() { // fn#104254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:11381, offset: 0x0228cd70, size: 35 bytes, params: 1, frame: 13
|
||||
env0_5.useEffect(function() {
|
||||
var QuestBarRenderedTriggerPoint = require(dependencyMap[38]).QuestBarRenderedTriggerPoint;
|
||||
QuestBarRenderedTriggerPoint.trigger();
|
||||
}, []);
|
||||
return null;
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimation() { // fn#104256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:12018, offset: 0x0228cdbe, size: 969 bytes, params: 1, frame: 30
|
||||
var r0;
|
||||
var View;
|
||||
var QuestContentImpressionTrackerNative;
|
||||
var object;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
var QUEST_BAR_MOBILE;
|
||||
let binding = env0_5;
|
||||
const value2 = undefined;
|
||||
const {isRendered, isVisibleToUser,
|
||||
quest} = binding.useContext(importDefault(13650) /* metro dependency 13650: QuestDockContext */);
|
||||
let env0_2 = env0_4(env0_5.useState(function() {
|
||||
return global.performance.now();
|
||||
}), 1)[0];
|
||||
const env0_3 = env0_5.useRef(false);
|
||||
const styles = useStyles();
|
||||
const value7 = env0_4(env0_5.useState({'width': 0, 'height': 0}), 2);
|
||||
var property = value7[0];
|
||||
var env0_4 = property;
|
||||
var env0_5 = value7[1];
|
||||
const env0_6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestDockStore], function() {
|
||||
return QuestDockStore.prevRestingQuestDockMode;
|
||||
});
|
||||
const isEligibleForQuests = (require(9479) /* metro dependency 9479: QuestsEligibility */).getIsEligibleForQuests();
|
||||
const value9 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestBarImpressionSurvey(quest);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = QuestDockWithEntranceAnimationC;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
isRendered: isRendered, ENTRANCE_ANIMATION_SPING_CONFIG: env0_33, componentDimensions: property};
|
||||
closure.__workletHash = 15545726338295;
|
||||
closure.__initData = env0_34;
|
||||
const value10 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
binding = env0_5;
|
||||
const value11 = null;
|
||||
var [property, env0_8] = env0_4(binding.useState(value11), 2);
|
||||
const questHooksNativeModule = require(13568) /* metro dependency 13568: QuestHooksNative */;
|
||||
const useQuestDockHeroAsset = questHooksNativeModule.useQuestDockHeroAsset;
|
||||
const staticUrl = Reflect.apply(useQuestDockHeroAsset, questHooksNativeModule, [quest]).staticUrl;
|
||||
const value14 = questHooksNativeModule.useQuestGameLogotypeAssetUrl(quest);
|
||||
const userStatus = quest.userStatus;
|
||||
const result = value11 != (value11 == userStatus ? value2 : userStatus.enrolledAt);
|
||||
const value15 = (require(7701) /* metro dependency 7701: ClientThemesOverrides */).useGradientBottom();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
const value16 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_SURFACE_HIGH]);
|
||||
const backgroundColor = value11 == value15 ? value2 : value15.backgroundColor;
|
||||
const env0_12 = value11 == backgroundColor ? value16 : backgroundColor;
|
||||
env0_5.useEffect(function() {
|
||||
var env0_0 = _fun104261;
|
||||
var env0_1 = _fun104262;
|
||||
var env0_2 = _fun104265;
|
||||
_fun104269();
|
||||
}, [staticUrl, value14, quest.id]);
|
||||
env0_5.useEffect(_fun104270, [property, quest.id]);
|
||||
let r2 = value11 == quest || !isEligibleForQuests;
|
||||
r2 = !r2 ? !property : r2;
|
||||
env0_5.useEffect(_fun104271, [r2]);
|
||||
if (r2) {
|
||||
r0 = value11;
|
||||
} else {
|
||||
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var viewProps = {pointerEvents: 'box-none', style: [styles.wrapperAnimated, value10],
|
||||
onLayout: onLayout_104273};
|
||||
QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
object = {overrideVisibility: isVisibleToUser};
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object.questContent = QUEST_BAR_MOBILE;
|
||||
object.questOrQuests = quest;
|
||||
object.onImpression = value9;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
r0 = <View {...viewProps}><QuestContentImpressionTrackerNative {...object}>{children_104274}</QuestContentImpressionTrackerNative></View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function QuestDockWithQuestContext() { // fn#104276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:15188, offset: 0x0228d75e, size: 166 bytes, params: 1, frame: 19
|
||||
const value2 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useMobileQuestDock();
|
||||
const value3 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useIsMobileQuestDockRenderedBase(value2);
|
||||
const value4 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useIsMobileQuestDockVisibleToUser(value2,
|
||||
value3);
|
||||
const value5 = null;
|
||||
if (value5 == value2) {
|
||||
return value5;
|
||||
} else {
|
||||
const Provider = (importDefault(13650) /* metro dependency 13650: QuestDockContext */).Provider;
|
||||
return (
|
||||
<Provider value={{isRendered: value3, isVisibleToUser: value4, quest: value2}}>
|
||||
<QuestDockWithEntranceAnimation />
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationK() { // fn#104242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6263, owner: QuestDockWithGestureAnimation.K, offset: 0x0228c5e0, size: 35 bytes, params: 1, frame: 9
|
||||
const value = restingQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
return value === EXPANDED;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationW() { // fn#104243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6644, owner: QuestDockWithGestureAnimation.W, offset: 0x0228c603, size: 446 bytes, params: 1, frame: 24
|
||||
const object2 = {};
|
||||
object2.backgroundColor = appThemedBackgroundColor;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
let withSpring = springModule.withSpring;
|
||||
const activeQuestDockModeBinding = activeQuestDockMode;
|
||||
let get = activeQuestDockModeBinding.get;
|
||||
const value3 = Reflect.apply(get, activeQuestDockModeBinding, []);
|
||||
let COLLAPSED = QuestDockMode.COLLAPSED;
|
||||
object2.borderBottomRightRadius = Reflect.apply(withSpring, springModule,
|
||||
[value3 !== COLLAPSED || env0_7 ? env0_10.get() : env0_9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]);
|
||||
const moduleValue2 = springModule;
|
||||
withSpring = moduleValue2.withSpring;
|
||||
const value5 = activeQuestDockMode.get();
|
||||
COLLAPSED = QuestDockMode.COLLAPSED;
|
||||
object2.borderBottomLeftRadius = Reflect.apply(withSpring, moduleValue2,
|
||||
[value5 !== COLLAPSED || env0_7 ? env0_10.get() : env0_9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]);
|
||||
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
object2.height = Reflect.apply(get, questDockWrapperSpecsBinding, []).height;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
object2.width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
|
||||
object2.opacity = springModule.withSpring(1, QUEST_DOCK_MODE_CHANGE_PHYSICS);
|
||||
let value = springModule;
|
||||
withSpring = value.withSpring;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
const x = Reflect.apply(get, questDockWrapperSpecsBinding, []).x;
|
||||
const questDockUtilsModule = require(13571) /* metro dependency 13571: QuestDockUtils */;
|
||||
const roundToNearestPixel = questDockUtilsModule.roundToNearestPixel;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
const items2 = [{translateX: Reflect.apply(withSpring, value, [x + -1 * Reflect.apply(roundToNearestPixel,
|
||||
questDockUtilsModule, [Reflect.apply(get, questDockWrapperSpecsBinding,
|
||||
[]).width / 2]), QUEST_DOCK_MODE_CHANGE_PHYSICS])}];
|
||||
value = springModule;
|
||||
withSpring = value.withSpring;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
items2[1] = {translateY: Reflect.apply(withSpring, value, [Reflect.apply(get, questDockWrapperSpecsBinding, []).y,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS])};
|
||||
object2.transform = items2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationX() { // fn#104244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7499, owner: QuestDockWithGestureAnimation.X, offset: 0x0228c7c1, size: 198 bytes, params: 1, frame: 22
|
||||
const object = {};
|
||||
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 value3 = env0_11.get();
|
||||
const value4 = activeQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
object.scale = Reflect.apply(withSpring, springModule, [Reflect.apply(interpolate, reanimatedRexportModule, [value3,
|
||||
[1, 0], [value4 === EXPANDED || env0_7 ? 1 : 0.98, 1]]),
|
||||
(require(4581) /* metro dependency 4581: springPresets */).springStandard]);
|
||||
return {transform: [object]};
|
||||
}
|
||||
|
||||
function _fun104246() { // fn#104246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7939, offset: 0x0228c8a4, size: 24 bytes, params: 1, frame: 11
|
||||
env0_11.set(1);
|
||||
}
|
||||
|
||||
function _fun104247() { // fn#104247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7980, offset: 0x0228c8bc, size: 23 bytes, params: 1, frame: 11
|
||||
env0_11.set(0);
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationF() { // fn#104249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:8338, owner: QuestDockWithGestureAnimation.F, offset: 0x0228c93c, size: 50 bytes, params: 1, frame: 11
|
||||
const value = activeQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
return {pointerEvents: value !== EXPANDED ? 'none' : 'auto'};
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationV() { // fn#104250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:8527, owner: QuestDockWithGestureAnimation.V, offset: 0x0228c96e, size: 53 bytes, params: 1, frame: 11
|
||||
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
|
||||
let get = questDockWrapperSpecsBinding.get;
|
||||
const value2 = Reflect.apply(get, questDockWrapperSpecsBinding, []);
|
||||
const windowDimensionsBinding = windowDimensions;
|
||||
get = windowDimensionsBinding.get;
|
||||
return Reflect.apply(get, windowDimensionsBinding, []).height - top - value2.height;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationZ() { // fn#104252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:9043, owner: QuestDockWithGestureAnimation.z, offset: 0x0228ca11, size: 743 bytes, params: 1, frame: 23
|
||||
var r1;
|
||||
var r6;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value9;
|
||||
var value10;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
const object2 = {};
|
||||
if (result) {
|
||||
r1 = env0_9;
|
||||
} else {
|
||||
value2 = activeQuestDockMode.get();
|
||||
value3 = environment.__proto__;
|
||||
r1 = value2 !== QuestDockMode.EXPANDED ? env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderTopLeftRadius = r1;
|
||||
if (result) {
|
||||
r1 = env0_9;
|
||||
} else {
|
||||
value4 = activeQuestDockMode.get();
|
||||
value5 = environment.__proto__;
|
||||
r1 = value4 !== QuestDockMode.EXPANDED ? env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderTopRightRadius = r1;
|
||||
if (result) {
|
||||
r1 = env0_7 ? env0_10.get() : env0_9;
|
||||
} else {
|
||||
value6 = activeQuestDockMode.get();
|
||||
value7 = environment.__proto__;
|
||||
r1 = value6 !== QuestDockMode.EXPANDED ? env0_7 ? env0_10.get() : env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderBottomLeftRadius = r1;
|
||||
if (result) {
|
||||
r1 = env0_7 ? env0_10.get() : env0_9;
|
||||
} else {
|
||||
value9 = activeQuestDockMode.get();
|
||||
value10 = environment.__proto__;
|
||||
r1 = value9 !== QuestDockMode.EXPANDED ? env0_7 ? env0_10.get() : env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderBottomRightRadius = r1;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const value13 = activeQuestDockMode.get();
|
||||
let EXPANDED = QuestDockMode.EXPANDED;
|
||||
const value14 = 1;
|
||||
object2.opacity = Reflect.apply(withSpring, springModule, [value13 !== EXPANDED ? value14 : 0,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]);
|
||||
const value16 = activeQuestDockMode.get();
|
||||
EXPANDED = QuestDockMode.EXPANDED;
|
||||
object2.height = value16 === EXPANDED ? result ? questDockWrapperSpecs.get().height : QUEST_DOCK_COLLAPSED_HEIGHT : questDockWrapperSpecs.get().height;
|
||||
const value17 = activeQuestDockMode.get();
|
||||
EXPANDED = QuestDockMode.EXPANDED;
|
||||
object2.width = value17 !== EXPANDED || result ? questDockWrapperSpecs.get().width : questDockWrapperSpecs.get().width - 2 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
resultBinding = result;
|
||||
const value19 = 0;
|
||||
if (resultBinding) {
|
||||
r1 = value19;
|
||||
} else {
|
||||
moduleValue2 = springModule;
|
||||
r1 = moduleValue2.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? value19 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
|
||||
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
|
||||
}
|
||||
const items2 = [{translateX: r1}];
|
||||
if (result) {
|
||||
r6 = value19;
|
||||
} else {
|
||||
moduleValue3 = springModule;
|
||||
r6 = moduleValue3.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? value19 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
|
||||
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
|
||||
}
|
||||
items2[1] = {translateY: r6};
|
||||
object2.transform = items2;
|
||||
object2.borderBottomWidth = env0_7 ? env0_10.get() > value19 ? value14 : value19 : value14;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimationC() { // fn#104259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:12445, owner: QuestDockWithEntranceAnimation.c, offset: 0x0228d196, size: 139 bytes, params: 1, frame: 21
|
||||
const object2 = {};
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const isRenderedBinding = isRendered;
|
||||
const value3 = 0;
|
||||
object2.opacity = Reflect.apply(withSpring, springModule, [isRenderedBinding ? 1 : value3, env1_33,
|
||||
'animate-always']);
|
||||
const moduleValue2 = springModule;
|
||||
object2.transform = [{translateY: moduleValue2.withSpring(isRendered ? value3 : env0_4.height, env1_33)}];
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun104260() { // fn#104260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13068, offset: 0x0228d221, size: 53 bytes, params: 1, frame: 9
|
||||
const prefetchWithErrorReporting = function(a0) {
|
||||
return _prefetchWithErrorReporting.apply(this, arguments);
|
||||
};
|
||||
(function() {
|
||||
return _preloadQuestDockAssets.apply(this, arguments);
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun104270() { // fn#104270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13818, offset: 0x0228d408, size: 219 bytes, params: 1, frame: 19
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var increment;
|
||||
var object2;
|
||||
var items2;
|
||||
var value;
|
||||
if (env0_7 === false) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
increment = defaultImport.increment;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_CONTENT_RENDERING_FAILURE;
|
||||
value = 'quest_id:' + quest.id;
|
||||
items2 = [value];
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
value = value.getQuestContentName((require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_BAR_MOBILE);
|
||||
items2[1] = 'quest_content:' + value;
|
||||
items2[2] = 'reason:asset_loading_error';
|
||||
object2.tags = items2;
|
||||
Reflect.apply(increment, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104271() { // fn#104271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14109, offset: 0x0228d4e3, size: 64 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).updateQuestDockVisibilityEligibility({isEligibleToBeVisible: !env0_13});
|
||||
return _fun104272;
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimationOnLayout(a0) { // fn#104273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14361, owner: QuestDockWithEntranceAnimation.onLayout, offset: 0x0228d552, size: 277 bytes, params: 2, frame: 19
|
||||
var Math;
|
||||
var value4;
|
||||
var value5;
|
||||
var defaultImport;
|
||||
var distribution;
|
||||
const binding = env0_5;
|
||||
let object2 = {};
|
||||
object2.height = a0.nativeEvent.layout.height;
|
||||
object2.width = a0.nativeEvent.layout.width;
|
||||
binding(object2);
|
||||
if (!env0_3.current) {
|
||||
env0_3.current = true;
|
||||
Math = global.Math;
|
||||
if (Math.random() < 0.1) {
|
||||
Math = global.Math;
|
||||
value4 = Math.round(global.performance.now() - env0_2);
|
||||
value5 = environment.__proto__;
|
||||
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
distribution = defaultImport.distribution;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_BAR_MOBILE_TIME_TO_FIRST_PAINT;
|
||||
object2.tags = ['quest_id:' + quest.id];
|
||||
Reflect.apply(distribution, defaultImport, [object2, value4]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimationChildren() { // fn#104274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14871, owner: QuestDockWithEntranceAnimation.children, offset: 0x0228d667, size: 224 bytes, params: 1, frame: 24
|
||||
const jsxRuntimeEnv1_22Binding = jsxRuntimeEnv1_22;
|
||||
const id = quest.id;
|
||||
const prevRestingQuestDockModeBinding = prevRestingQuestDockMode;
|
||||
const value3 = undefined;
|
||||
const items2 = [<QuestDockModeChangeTracker questId={id} mode={prevRestingQuestDockModeBinding} />];
|
||||
items2[1] = <QuestBarRenderedTriggerPointWrapper />;
|
||||
const QuestDockGestureContextProvider = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContextProvider;
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
const DARK = result ? value3 : ThemeTypes.DARK;
|
||||
items2[2] = <QuestDockGestureContextProvider><ThemeContextProvider theme={DARK}><QuestDockWithGestureAnimation appThemedBackgroundColor={env0_12} /></ThemeContextProvider></QuestDockGestureContextProvider>;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _prefetchWithErrorReporting() { // fn#104262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13169, offset: 0x0228d256, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun104264).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _preloadQuestDockAssets() { // fn#104265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13439, offset: 0x0228d328, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun104267).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun104272() { // fn#104272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14188, offset: 0x0228d523, size: 47 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).updateQuestDockVisibilityEligibility({isEligibleToBeVisible: false});
|
||||
}
|
||||
|
||||
function* _fun104264(a0) { // fn#104264, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13246, offset: 0x0228d296, size: 146 bytes, params: 2, frame: 16
|
||||
var binding;
|
||||
var prefetch;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var error;
|
||||
var value6;
|
||||
var track;
|
||||
var QUEST_ASSET_LOADING_FAILURE;
|
||||
var QUESTS_BAR_MOBILE;
|
||||
var id;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env4_8;
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
prefetch = binding.prefetch;
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(prefetch, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
yield value3;
|
||||
try {
|
||||
value4 = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
if (value5) {
|
||||
return value4;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function* _fun104267() { // fn#104267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13508, offset: 0x0228d368, size: 160 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var push;
|
||||
var value3;
|
||||
var value4;
|
||||
if (true) {
|
||||
var items2 = [];
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
if (QuestDockStore != null) {
|
||||
push = items2.push;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
Reflect.apply(push, items2, [isRendered(QuestDockStore)]);
|
||||
}
|
||||
if (QuestDockMode != null) {
|
||||
push = items2.push;
|
||||
value4 = environment.__proto__.__proto__;
|
||||
Reflect.apply(push, items2, [isRendered(QuestDockMode)]);
|
||||
}
|
||||
var Promise = global.Promise;
|
||||
yield Promise.all(items2);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
Image(value5.every(function(a0) {
|
||||
return a0 === true;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user