This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -1,29 +1,34 @@
/* Metro module 13631; source: modules/quests/native/QuestDock/QuestDockBlurredContentBackground.tsx; dependencies: [31, 27, 33, 4563, 2] */
import VisualEffectViewAnimated from '../../../visual_effect_view/native/VisualEffectViewAnimated.tsx'; /* Metro dependency 4563 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun104099(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13828:6, offset: 0x022857f3, size: 170 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).StyleSheet;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(QuestDockBlurredContentBackground);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockBlurredContentBackground.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockBlurredContentBackground.tsx');
exports.default = value;
function QuestDockBlurredContentBackground({animatedStyle, animatedLayout, blurTheme}) { // fn#104100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13828:155, offset: 0x0228589d, size: 187 bytes, params: 2, frame: 19
const r9 = blurTheme === undefined ? 'dark' : blurTheme;
const binding = env0_2;
return ((Component) => <Component nativeID="quest-dock-blurred-background" blurTintRgba={binding.useMemo(_fun104102,
[r9])} blurAmount={0.5} blurTheme="dark" android_fallbackColor={binding.useMemo(_fun104101,
[r9])} style={[StyleSheet.absoluteFillObject,
animatedStyle]} layout={animatedLayout} />)(VisualEffectViewAnimated);
function _fun104101() { // fn#104101, offset: 0x02285958, size: 29 bytes, params: 1, frame: 3
return env0_0 !== 'dark' ? 'rgba(255, 255, 255, 0.1)' : 'rgba(38, 39, 50, 0.65)';
}
function _fun104102() { // fn#104102, offset: 0x02285975, size: 29 bytes, params: 1, frame: 3
return env0_0 !== 'dark' ? 'rgba(255, 255, 255, 0.1)' : 'rgba(38, 39, 50, 0.1)';
}
}
}
function QuestDockBlurredContentBackground({animatedStyle, animatedLayout, blurTheme}) { // fn#104100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13828:155, offset: 0x0228589d, size: 187 bytes, params: 2, frame: 19
const r9 = blurTheme === undefined ? 'dark' : blurTheme;
const binding = env0_2;
return ((Component) => <Component nativeID="quest-dock-blurred-background" blurTintRgba={binding.useMemo(_fun104102,
[r9])} blurAmount={0.5} blurTheme="dark" android_fallbackColor={binding.useMemo(_fun104101,
[r9])} style={[StyleSheet.absoluteFillObject,
animatedStyle]} layout={animatedLayout} />)(importDefault(4563) /* metro dependency 4563: VisualEffectViewAnimated */);
}
function _fun104101() { // fn#104101, offset: 0x02285958, size: 29 bytes, params: 1, frame: 3
return env0_0 !== 'dark' ? 'rgba(255, 255, 255, 0.1)' : 'rgba(38, 39, 50, 0.65)';
}
function _fun104102() { // fn#104102, offset: 0x02285975, size: 29 bytes, params: 1, frame: 3
return env0_0 !== 'dark' ? 'rgba(255, 255, 255, 0.1)' : 'rgba(38, 39, 50, 0.1)';
}
global.__d(_fun104099, 13631, [31, 27, 33, 4563, 2]) /* metro module 13631, dependencies: [31, 27, 33, 4563, 2] */;
@@ -1,85 +1,88 @@
/* Metro module 13656; source: modules/quests/native/QuestDock/QuestDockBlurredHeaderPlaceholder.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13573, 13657, 4017, 2] */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
function _fun104309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:6, offset: 0x022902c3, size: 373 bytes, params: 8, frame: 25
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const StyleSheet = value2.StyleSheet;
const env0_4 = value2.View;
const env0_5 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
let value = ReactModule;
const StyleSheet = ReactNativeModule.StyleSheet;
const {QUEST_DOCK_EXPANDED_HEIGHT,
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED} = require(13572) /* metro dependency 13572: QuestDockConstants */;
const value4 = require(33) /* metro dependency 33 */;
const env0_7 = value4.jsx;
const env0_8 = value4.Fragment;
const env0_9 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object5 = {};
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
object5['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object5['top'] = -QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
object4.image = object5;
const object6 = {};
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
object6['backgroundColor'] = 'rgba(38, 39, 50, 0.3)';
object6['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object4.overlay = object6;
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object4]);
object4 = {code: 'function QuestDockBlurredHeaderPlaceholderTsx1(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,questDockWrapperSpecs}=this.__closure;return{left:activeQuestDockMode.get()===QuestDockMode.EXPANDED?-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,width:questDockWrapperSpecs.get().width+QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED};}'};
value = value.memo(QuestDockBlurredContentBackground_104310);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockBlurredHeaderPlaceholder.tsx');
exports.default = value;
}
function QuestDockBlurredContentBackground_104310({animatedLayout, animatedStyle, placeholder}) { // fn#104310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:843, offset: 0x02290438, size: 341 bytes, params: 2, frame: 23
const binding = env0_3;
const useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const {questDockWrapperSpecs, activeQuestDockMode} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
const value3 = binding.useMemo(_fun104311, [placeholder]);
const styles = useStyles();
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = function() {
var object = {};
object.left = activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : -QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
object.width = questDockWrapperSpecs.get().width + QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
return object;
};
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
questDockWrapperSpecs: questDockWrapperSpecs};
closure.__workletHash = 11176778421725;
closure.__initData = env0_11;
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const Image = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).Image;
return (
<>
<Image
source={value3}
style={[styles.image, animatedStyle, value4]}
layout={animatedLayout}
/>
<View style={styles.overlay} />
</>
);
}
function _fun104311() { // fn#104311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:1059, offset: 0x0229058d, size: 90 bytes, params: 1, frame: 17
var environment;
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED} = QuestDockConstantsModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {};
let value = environment.__proto__;
value = require(13657) /* metro dependency 13657 */;
const thumbHashToDataURL = value.thumbHashToDataURL;
const Uint8Array = global.Uint8Array;
object2.uri = Reflect.apply(thumbHashToDataURL, value, [Uint8Array.from(global.atob(placeholder), function(a0) {
return a0.charCodeAt(0);
})]);
return object2;
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
object2['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object2['top'] = -QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
object.image = object2;
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['backgroundColor'] = 'rgba(38, 39, 50, 0.3)';
object3['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object.overlay = object3;
const env0_10 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function QuestDockBlurredHeaderPlaceholderTsx1(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,questDockWrapperSpecs}=this.__closure;return{left:activeQuestDockMode.get()===QuestDockMode.EXPANDED?-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,width:questDockWrapperSpecs.get().width+QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED};}'};
value = value.memo(QuestDockBlurredContentBackground_104310);
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockBlurredHeaderPlaceholder.tsx');
exports.default = value;
function QuestDockBlurredContentBackground_104310({animatedLayout, animatedStyle, placeholder}) { // fn#104310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:843, offset: 0x02290438, size: 341 bytes, params: 2, frame: 23
const binding = env0_3;
const useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const {questDockWrapperSpecs, activeQuestDockMode} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
const value3 = binding.useMemo(_fun104311, [placeholder]);
const styles = useStyles();
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const closure = function() {
var object = {};
object.left = activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : -QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
object.width = questDockWrapperSpecs.get().width + QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
return object;
};
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
questDockWrapperSpecs: questDockWrapperSpecs};
closure.__workletHash = 11176778421725;
closure.__initData = env0_11;
const value4 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const Image = (ReanimatedRexport).Image;
return (
<>
<Image
source={value3}
style={[styles.image, animatedStyle, value4]}
layout={animatedLayout}
/>
<View style={styles.overlay} />
</>
);
function _fun104311() { // fn#104311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:1059, offset: 0x0229058d, size: 90 bytes, params: 1, frame: 17
var environment;
const object = {};
let value = environment.__proto__;
value = require(13657) /* metro dependency 13657 */;
const thumbHashToDataURL = value.thumbHashToDataURL;
const Uint8Array = global.Uint8Array;
object.uri = Reflect.apply(thumbHashToDataURL, value, [Uint8Array.from(global.atob(placeholder), function(a0) {
return a0.charCodeAt(0);
})]);
return object;
}
}
}
global.__d(_fun104309, 13656, [31, 27, 6528, 13572, 33, 4501, 13573, 13657, 4017,
2]) /* metro module 13656, dependencies: [31, 27, 6528, 13572, 33, 4501, 13573, 13657, 4017, 2] */;
@@ -1,17 +1,19 @@
/* Metro module 13572; source: modules/quests/native/QuestDock/QuestDockConstants.tsx; dependencies: [697, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun103169(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13762:6, offset: 0x0225ac14, size: 450 bytes, params: 8, frame: 22
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3 = {'mass': 0.5, 'damping': 80, 'stiffness': 320};
const object4 = {};
copyDataProperties(object4, object3, undefined);
object4['overshootClamping'] = true;
const lg = (importDefault(697) /* metro dependency 697: native */).radii.lg;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockConstants.tsx');
const PX_16 = (Native).space.PX_16;
const PX_12 = (Native).space.PX_12;
const PX_8 = (Native).space.PX_8;
object = {'mass': 0.5, 'damping': 80, 'stiffness': 320};
const object2 = {};
copyDataProperties(object2, object, undefined);
object2['overshootClamping'] = true;
const lg = (Native).radii.lg;
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockConstants.tsx');
exports.QUEST_DOCK_COLLAPSED_HEIGHT = 56;
exports.QUEST_DOCK_CLOSED_HEIGHT = 22;
exports.QUEST_DOCK_EXPANDED_HEIGHT = 400;
@@ -40,8 +42,9 @@ function _fun103169(global, require, importDefault, importAll, module, exports,
exports.QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED_WITH_YOU_BAR = 56;
exports.QUEST_DOCK_EXTERNAL_OFFSET_CLOSED = 22;
exports.QUEST_DOCK_EXPANDED_CONTENT_PADDING_VERTICAL = 16;
exports.QUEST_DOCK_MODE_CHANGE_PHYSICS = object3;
exports.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = object4;
exports.QUEST_DOCK_MODE_CHANGE_PHYSICS = object;
exports.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = object2;
exports.QUEST_DOCK_CONTENT_BORDER_RADII = lg;
}
global.__d(_fun103169, 13572, [697, 2]) /* metro module 13572, dependencies: [697, 2] */;
@@ -1,80 +1,85 @@
/* Metro module 13654; source: modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13655, 13660, 2] */
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SpringModule from '../../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
function _fun104291(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:6, offset: 0x0228ecdb, size: 321 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const env0_5 = (require(13572) /* metro dependency 13572: QuestDockConstants */).QUEST_DOCK_MODE_CHANGE_PHYSICS;
const value2 = require(33) /* metro dependency 33 */;
const env0_6 = value2.jsx;
const env0_7 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['bottom'] = undefined;
object3['zIndex'] = 2;
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{questDockContentCollapsed: object3}]);
let value = ReactModule;
const StyleSheet = (ReactNativeModule).StyleSheet;
const createStyles = CreateStylesModule.createStyles;
const object2 = {};
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
object2['bottom'] = undefined;
object2['zIndex'] = 2;
const env0_8 = Reflect.apply(createStyles, CreateStylesModule, [{questDockContentCollapsed: object2}]);
object = {code: 'function QuestDockContentCollapsedTsx1(){const{withSpring,activeQuestDockMode,QuestDockMode,hideOnExpand,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
object = {code: "function QuestDockContentCollapsedTsx2(){const{activeQuestDockMode,QuestDockMode,hideOnExpand}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?'auto':'none'};}"};
value = value.memo(QuestDockContentCollapsed);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx');
exports.default = value;
function QuestDockContentCollapsed({hideOnExpand}) { // fn#104292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:855, offset: 0x0228ee1c, size: 492 bytes, params: 2, frame: 25
const r10 = hideOnExpand === undefined || hideOnExpand;
let binding = env0_3;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[QuestDockContext]).quest;
const styles = useStyles();
const userStatus = quest.userStatus;
const value4 = userStatus?.enrolledAt != null;
binding = env0_3;
useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const activeQuestDockMode = Reflect.apply(useContext, binding, [QuestDockGestureContext]).activeQuestDockMode;
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
let closure = QuestDockContentCollapsedP;
const object = {};
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.activeQuestDockMode = activeQuestDockMode;
object.QuestDockMode = QuestDockMode;
object.hideOnExpand = r10;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
closure.__closure = object;
closure.__workletHash = 13361221764426;
closure.__initData = env0_9;
const value5 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const useAnimatedProps = ReanimatedRexportModule.useAnimatedProps;
closure = QuestDockContentCollapsedS;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, hideOnExpand: r10};
closure.__workletHash = 14339269503421;
closure.__initData = env0_10;
return ((Component) => <Component style={[styles.questDockContentCollapsed,
value5]} animatedProps={Reflect.apply(useAnimatedProps, ReanimatedRexportModule,
[closure])}>{!value4 && ((Component) => <Component />)(importDefault(13655) /* metro dependency 13655: QuestDockUnenrolledHeader */)}{value4 && ((Component) => <Component />)(importDefault(13660) /* metro dependency 13660: QuestDockEnrolledHeader */)}</Component>)(importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */);
function QuestDockContentCollapsedP() { // fn#104293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:1124, owner: QuestDockContentCollapsed.p, offset: 0x0228f008, size: 96 bytes, params: 1, frame: 18
const withSpring = SpringModule.withSpring;
const value3 = activeQuestDockMode.get();
const COLLAPSED = QuestDockMode.COLLAPSED;
const value4 = 1;
return {opacity: Reflect.apply(withSpring, SpringModule, [value3 === COLLAPSED ? value4 : env0_0 ? 0 : value4,
QUEST_DOCK_MODE_CHANGE_PHYSICS])};
}
function QuestDockContentCollapsedS() { // fn#104294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:1400, owner: QuestDockContentCollapsed.S, offset: 0x0228f068, size: 63 bytes, params: 1, frame: 13
const value2 = activeQuestDockMode.get();
const COLLAPSED = QuestDockMode.COLLAPSED;
const value4 = 'auto';
return {pointerEvents: value2 === COLLAPSED ? value4 : env0_0 ? 'none' : value4};
}
}
}
function QuestDockContentCollapsed({hideOnExpand}) { // fn#104292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:855, offset: 0x0228ee1c, size: 492 bytes, params: 2, frame: 25
const r10 = hideOnExpand === undefined || hideOnExpand;
let binding = env0_3;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
const styles = useStyles();
const userStatus = quest.userStatus;
const value4 = userStatus?.enrolledAt != null;
binding = env0_3;
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const activeQuestDockMode = Reflect.apply(useContext, binding, [QuestDockGestureContext]).activeQuestDockMode;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = QuestDockContentCollapsedP;
const object2 = {};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.activeQuestDockMode = activeQuestDockMode;
object2.QuestDockMode = QuestDockMode;
object2.hideOnExpand = r10;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
closure.__closure = object2;
closure.__workletHash = 13361221764426;
closure.__initData = env0_9;
const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const moduleValue2 = reanimatedRexportModule;
const useAnimatedProps = moduleValue2.useAnimatedProps;
closure = QuestDockContentCollapsedS;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, hideOnExpand: r10};
closure.__workletHash = 14339269503421;
closure.__initData = env0_10;
return ((Component) => <Component style={[styles.questDockContentCollapsed,
value5]} animatedProps={Reflect.apply(useAnimatedProps, moduleValue2,
[closure])}>{!value4 && ((Component) => <Component />)(importDefault(13655) /* metro dependency 13655: QuestDockUnenrolledHeader */)}{value4 && ((Component) => <Component />)(importDefault(13660) /* metro dependency 13660: QuestDockEnrolledHeader */)}</Component>)(importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */);
}
function QuestDockContentCollapsedP() { // fn#104293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:1124, owner: QuestDockContentCollapsed.p, offset: 0x0228f008, size: 96 bytes, params: 1, frame: 18
const springModule = require(4577) /* metro dependency 4577: spring */;
const withSpring = springModule.withSpring;
const value3 = activeQuestDockMode.get();
const COLLAPSED = QuestDockMode.COLLAPSED;
const value4 = 1;
return {opacity: Reflect.apply(withSpring, springModule, [value3 === COLLAPSED ? value4 : env0_0 ? 0 : value4,
QUEST_DOCK_MODE_CHANGE_PHYSICS])};
}
function QuestDockContentCollapsedS() { // fn#104294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:1400, owner: QuestDockContentCollapsed.S, offset: 0x0228f068, size: 63 bytes, params: 1, frame: 13
const value2 = activeQuestDockMode.get();
const COLLAPSED = QuestDockMode.COLLAPSED;
const value4 = 'auto';
return {pointerEvents: value2 === COLLAPSED ? value4 : env0_0 ? 'none' : value4};
}
global.__d(_fun104291, 13654, [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13655, 13660,
2]) /* metro module 13654, dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13655, 13660, 2] */;
@@ -1,102 +1,105 @@
/* Metro module 13661; source: modules/quests/native/QuestDock/QuestDockContentExpanded.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13662, 13663, 2] */
import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SpringModule from '../../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
function _fun104327(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:6, offset: 0x02291c5a, size: 328 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
const env0_5 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS;
const env0_6 = questDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT;
const value3 = require(33) /* metro dependency 33 */;
const env0_7 = value3.jsx;
const env0_8 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['bottom'] = undefined;
object3['display'] = 'flex';
object3['zIndex'] = 1;
const env0_9 = Reflect.apply(createStyles, createStylesModule, [{wrapper: object3}]);
let value = ReactModule;
const StyleSheet = (ReactNativeModule).StyleSheet;
const createStyles = CreateStylesModule.createStyles;
const object2 = {};
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
object2['bottom'] = undefined;
object2['display'] = 'flex';
object2['zIndex'] = 1;
const env0_9 = Reflect.apply(createStyles, CreateStylesModule, [{wrapper: object2}]);
object = {code: 'function QuestDockContentExpandedTsx1(){const{isEnrolled,QUEST_DOCK_EXPANDED_HEIGHT,windowDimensions,withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,questDockWrapperSpecs}=this.__closure;return{height:isEnrolled?undefined:QUEST_DOCK_EXPANDED_HEIGHT,width:windowDimensions.get().width,opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS),transform:[{translateX:withSpring((questDockWrapperSpecs.get().width-windowDimensions.get().width)/2,QUEST_DOCK_MODE_CHANGE_PHYSICS)}]};}'};
value = value.memo(QuestDockContentExpanded);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentExpanded.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentExpanded.tsx');
exports.default = value;
}
function QuestDockContentExpanded() { // fn#104328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:933, offset: 0x02291da2, size: 436 bytes, params: 1, frame: 24
var r5;
var value;
const binding = env0_3;
let useContext = binding.useContext;
const value2 = undefined;
const quest = Reflect.apply(useContext, binding,
[QuestDockContext]).quest;
const styles = useStyles();
useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const {activeQuestDockMode, questDockWrapperSpecs, windowDimensions} = Reflect.apply(useContext, binding,
[QuestDockGestureContext]);
const userStatus = quest.userStatus;
const value4 = (userStatus == null ? value2 : userStatus.enrolledAt) != null;
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
const QuestDockContentExpandedN2 = QuestDockContentExpandedN;
const object = {isEnrolled: value4};
object.QUEST_DOCK_EXPANDED_HEIGHT = QUEST_DOCK_EXPANDED_HEIGHT;
object.windowDimensions = windowDimensions;
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.activeQuestDockMode = activeQuestDockMode;
object.QuestDockMode = QuestDockMode;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
object.questDockWrapperSpecs = questDockWrapperSpecs;
QuestDockContentExpandedN2.__closure = object;
QuestDockContentExpandedN2.__workletHash = 17161265612101;
QuestDockContentExpandedN2.__initData = env0_10;
const value5 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [QuestDockContentExpandedN2]);
const items2 = [styles.wrapper, value5];
const r7 = !value4 && ((Component) => <Component />)(importDefault(13662) /* metro dependency 13662: QuestDockUnenrolledBody */);
if (value4) {
value = importDefault(13663) /* metro dependency 13663: QuestDockEnrolledBody */;
value = ((Component) => <Component quest={quest} />)(value);
r5 = value;
} else {
r5 = value4;
}
return (
<ReanimatedNativeView style={items2}>
{r7}
{r5}
</ReanimatedNativeView>
);
function QuestDockContentExpandedN() { // fn#104329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:1216, owner: QuestDockContentExpanded.n, offset: 0x02291f56, size: 219 bytes, params: 1, frame: 19
const object = {};
const QUEST_DOCK_EXPANDED_HEIGHT2 = result ? undefined : QUEST_DOCK_EXPANDED_HEIGHT;
object.height = QUEST_DOCK_EXPANDED_HEIGHT2;
let windowDimensionsBinding = windowDimensions;
let get = windowDimensionsBinding.get;
let width = Reflect.apply(get, windowDimensionsBinding, []).width;
object.width = width;
let withSpring = SpringModule.withSpring;
const value5 = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
object.opacity = Reflect.apply(withSpring, SpringModule, [value5 !== EXPANDED ? 0 : 1,
QUEST_DOCK_MODE_CHANGE_PHYSICS]);
withSpring = SpringModule.withSpring;
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
get = questDockWrapperSpecsBinding.get;
width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
object.transform = [{translateX: Reflect.apply(withSpring, SpringModule, [(width - Reflect.apply(get,
windowDimensionsBinding, []).width) / 2, QUEST_DOCK_MODE_CHANGE_PHYSICS])}];
return object;
}
function QuestDockContentExpanded() { // fn#104328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:933, offset: 0x02291da2, size: 436 bytes, params: 1, frame: 24
var r5;
var value;
const binding = env0_3;
let useContext = binding.useContext;
const value2 = undefined;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
const styles = useStyles();
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const {activeQuestDockMode, questDockWrapperSpecs, windowDimensions} = Reflect.apply(useContext, binding,
[QuestDockGestureContext]);
const userStatus = quest.userStatus;
const value4 = (userStatus == null ? value2 : userStatus.enrolledAt) != null;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
const closure = QuestDockContentExpandedN;
const object2 = {isEnrolled: value4};
object2.QUEST_DOCK_EXPANDED_HEIGHT = QUEST_DOCK_EXPANDED_HEIGHT;
object2.windowDimensions = windowDimensions;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.activeQuestDockMode = activeQuestDockMode;
object2.QuestDockMode = QuestDockMode;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
object2.questDockWrapperSpecs = questDockWrapperSpecs;
closure.__closure = object2;
closure.__workletHash = 17161265612101;
closure.__initData = env0_10;
const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
const items2 = [styles.wrapper, value5];
const r7 = !value4 && ((Component) => <Component />)(importDefault(13662) /* metro dependency 13662: QuestDockUnenrolledBody */);
if (value4) {
value = importDefault(13663) /* metro dependency 13663: QuestDockEnrolledBody */;
value = ((Component) => <Component quest={quest} />)(value);
r5 = value;
} else {
r5 = value4;
}
return (
<ReanimatedNativeView style={items2}>
{r7}
{r5}
</ReanimatedNativeView>
);
}
function QuestDockContentExpandedN() { // fn#104329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:1216, owner: QuestDockContentExpanded.n, offset: 0x02291f56, size: 219 bytes, params: 1, frame: 19
const object2 = {};
const QUEST_DOCK_EXPANDED_HEIGHT2 = result ? undefined : QUEST_DOCK_EXPANDED_HEIGHT;
object2.height = QUEST_DOCK_EXPANDED_HEIGHT2;
let windowDimensionsBinding = windowDimensions;
let get = windowDimensionsBinding.get;
let width = Reflect.apply(get, windowDimensionsBinding, []).width;
object2.width = width;
const springModule = require(4577) /* metro dependency 4577: spring */;
let withSpring = springModule.withSpring;
const value5 = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
object2.opacity = Reflect.apply(withSpring, springModule, [value5 !== EXPANDED ? 0 : 1,
QUEST_DOCK_MODE_CHANGE_PHYSICS]);
const moduleValue2 = springModule;
withSpring = moduleValue2.withSpring;
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
get = questDockWrapperSpecsBinding.get;
width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
object2.transform = [{translateX: Reflect.apply(withSpring, moduleValue2, [(width - Reflect.apply(get,
windowDimensionsBinding, []).width) / 2, QUEST_DOCK_MODE_CHANGE_PHYSICS])}];
return object2;
}
global.__d(_fun104327, 13661, [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13662, 13663,
2]) /* metro module 13661, dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13662, 13663, 2] */;
@@ -1,10 +1,14 @@
/* Metro module 13650; source: modules/quests/native/QuestDock/QuestDockContext.tsx; dependencies: [31, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun104238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13847:6, offset: 0x0228b7e7, size: 124 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
let value = ReactModule;
value = value.createContext({'quest': null, 'isRendered': false, 'isVisibleToUser': false, quest: undefined});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContext.tsx');
exports.default = value;
}
global.__d(_fun104238, 13650, [31, 2]) /* metro module 13650, dependencies: [31, 2] */;
@@ -1,377 +1,415 @@
/* Metro module 13577; source: modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx; dependencies: [5, 31, 661, 33, 7114, 9483, 9505, 6805, 6807, 10638, 7972, 9520, 6531, 7120, 4080, 4060, 1244, 13578, 9519, 9517, 9518, 7121, 7110, 9480, 10139, 13580, 5312, 9484, 13583, 8653, 13584, 13586, 13588, 8999, 7007, 6797, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import QuestDisclosureModalActionCreators from '../QuestDisclosureModal/QuestDisclosureModalActionCreators.tsx'; /* Metro dependency 13580 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as XSmallIconModule from '../../../../design/components/Icon/native/redesign/generated/XSmallIcon.tsx'; /* Metro dependency 5312 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as ClipboardUtilsNativeModule from '../../../../utils/ClipboardUtils.native.tsx'; /* Metro dependency 6797 */
import * as ActionSheetNativeModule from '../../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as OpenUserSettingsModule from '../../../user_settings/core/native/openUserSettings.tsx'; /* Metro dependency 7007 */
import * as QuestUtilsModule from '../../utils/QuestUtils.tsx'; /* Metro dependency 7114 */
import * as AnalyticsTypesModule from '../../lib/analytics/AnalyticsTypes.tsx'; /* Metro dependency 7120 */
import * as AdCreativeTypeModule from '../../../../external/discord_common/js/shared/shared-constants/AdCreativeType.tsx'; /* Metro dependency 7121 */
import * as NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as EyeIconModule from '../../../../design/components/Icon/native/redesign/generated/EyeIcon.tsx'; /* Metro dependency 8999 */
import * as QuestUtilsNativeModule from '../QuestUtils.native.tsx'; /* Metro dependency 9480 */
import * as QuestHooksModule from '../../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
import * as QuestActionCreatorsModule from '../../QuestActionCreators.tsx'; /* Metro dependency 9484 */
import * as QuestCopyUtilsModule from '../../utils/QuestCopyUtils.tsx'; /* Metro dependency 9505 */
import * as AdAnalyticsInterfaceExperimentModule from '../../experiments/AdAnalyticsInterfaceExperiment.tsx'; /* Metro dependency 9519 */
import * as QuestPlatformUtilsModule from '../../utils/QuestPlatformUtils.tsx'; /* Metro dependency 9520 */
import * as CircleQuestionIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleQuestionIcon.tsx'; /* Metro dependency 10139 */
import * as LinkExternalMediumIconModule from '../../../../design/components/Icon/native/redesign/generated/LinkExternalMediumIcon.tsx'; /* Metro dependency 10638 */
function _fun103202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:6, offset: 0x0225bf63, size: 185 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx');
exports.default = QuestDockContextMenuActionSheet;
}
function QuestDockContextMenuActionSheet({quest}) { // fn#103203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:180, offset: 0x0225c01c, size: 2479 bytes, params: 2, frame: 35
var r8;
var r5;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object19;
var object;
var items4;
var object2;
var object4;
var object5;
var object6;
const EyeIcon = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon;
var object7;
var object8;
var value;
const questUtilsModule = require(7114) /* metro dependency 7114: QuestUtils */;
const isShareableQuest2 = questUtilsModule.isShareableQuest(quest.config);
const value2 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestPreviewActions(quest.id);
const env0_1 = value2.handleComplete;
const env0_2 = value2.handleProgress;
const env0_3 = value2.handleResetDismissibilityClick;
const env0_4 = value2.handleResetStatusClick;
const externalCtaLabel = (require(9505) /* metro dependency 9505: QuestCopyUtils */).getExternalCtaLabel(quest);
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
let Group = ActionSheetRow.Group;
const object9 = {};
const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
let Icon = ActionSheetRow2.Icon;
const LinkExternalMediumIcon = (require(10638) /* metro dependency 10638: LinkExternalMediumIcon */).LinkExternalMediumIcon;
object9.icon = <Icon IconComponent={LinkExternalMediumIcon} />;
const FormLabel = (require(7972) /* metro dependency 7972: native */).FormLabel;
object9.label = <FormLabel text={externalCtaLabel} />;
object9.onPress = onPress_103204;
const actionSheetRow = <ActionSheetRow {...object9} />;
if (isShareableQuest2) {
r8 = <ActionSheetRow icon={((Icon) => <Icon IconComponent={(require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} label={<FormLabel text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WqhZss)} />} onPress={onPress_103205} />;
} else {
r8 = isShareableQuest2;
}
const items2 = [<Group hasIcons>{actionSheetRow}{r8}</Group>];
Group = ActionSheetRow.Group;
const object11 = {};
const ActionSheetRow4 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
Icon = ActionSheetRow4.Icon;
object11.icon = <Icon IconComponent={importDefault(13578) /* metro dependency 13578: WreathIcon */} />;
let string = intl.string;
const LLLLPD = (require(1244) /* metro dependency 1244: indexNative */).t.LLLLPD;
object11.label = <FormLabel text={Reflect.apply(string, intl, [LLLLPD])} />;
object11.onPress = onPress_103206;
const items3 = [<ActionSheetRow {...object11} />];
const object12 = {};
const ActionSheetRow5 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
Icon = ActionSheetRow5.Icon;
const CircleQuestionIcon = (require(10139) /* metro dependency 10139: CircleQuestionIcon */).CircleQuestionIcon;
object12.icon = <Icon IconComponent={CircleQuestionIcon} />;
string = intl.string;
const GcsZKJ = (require(1244) /* metro dependency 1244: indexNative */).t.GcsZKJ;
object12.label = <FormLabel text={Reflect.apply(string, intl, [GcsZKJ])} />;
object12.onPress = onPress_103207;
items3[1] = <ActionSheetRow {...object12} />;
const object14 = {};
const ActionSheetRow6 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
Icon = ActionSheetRow6.Icon;
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
object14.icon = <Icon IconComponent={XSmallIcon} />;
string = intl.string;
const NN79E9 = (require(1244) /* metro dependency 1244: indexNative */).t.NN79E9;
object14.label = <FormLabel text={Reflect.apply(string, intl, [NN79E9])} />;
string = intl.string;
const V6htN5 = (require(1244) /* metro dependency 1244: indexNative */).t.V6htN5;
object14.subLabel = Reflect.apply(string, intl, [V6htN5]);
object14.onPress = env0_3(_fun103209);
items3[2] = <ActionSheetRow {...object14} />;
items2[1] = <Group hasIcons>{items3}</Group>;
const preview = quest.preview;
if (preview) {
Group = ActionSheetRow.Group;
var groupProps = {title: intl.string(t['Ape+mm']), hasIcons: true};
object = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object.icon = <Icon IconComponent={(require(8653) /* metro dependency 8653: TrophyIcon */).TrophyIcon} />;
string = intl.string;
object.label = <FormLabel text={Reflect.apply(string, intl, [t.jQEfRT])} />;
object.onPress = onPress_103210;
value = <ActionSheetRow {...object} />;
items4 = [value];
object2 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object2.icon = <Icon IconComponent={(require(13584) /* metro dependency 13584: RedoIcon */).RedoIcon} />;
string = intl.string;
object2.label = <FormLabel text={Reflect.apply(string, intl, [t.cKSLr4])} />;
object2.onPress = onPress_103211;
items4[1] = <ActionSheetRow {...object2} />;
object4 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object4.icon = <Icon IconComponent={(require(13586) /* metro dependency 13586: UndoIcon */).UndoIcon} />;
string = intl.string;
object4.label = <FormLabel text={Reflect.apply(string, intl, [t.taqkwK])} />;
object4.onPress = onPress_103212;
items4[2] = <ActionSheetRow {...object4} />;
object5 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object5.icon = <Icon IconComponent={(require(13588) /* metro dependency 13588: UnsendIcon */).UnsendIcon} />;
string = intl.string;
object5.label = <FormLabel text={Reflect.apply(string, intl, [t.JF6W66])} />;
object5.onPress = onPress_103213;
items4[3] = <ActionSheetRow {...object5} />;
object6 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object6.icon = <Icon IconComponent={EyeIcon} />;
string = intl.string;
object6.label = <FormLabel text={Reflect.apply(string, intl, [t['lL6/zF']])} />;
object6.onPress = onPress_103214;
items4[4] = <ActionSheetRow {...object6} />;
object7 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object7.icon = <Icon IconComponent={EyeIcon} />;
string = intl.string;
object7.label = <FormLabel text={Reflect.apply(string, intl, [t.tx5Ax5])} />;
object7.onPress = onPress_103215;
items4[5] = <ActionSheetRow {...object7} />;
object8 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object8.icon = <Icon IconComponent={(require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon} />;
string = intl.string;
object8.label = <FormLabel text={Reflect.apply(string, intl, [t.oisrFi])} />;
object8.onPress = onPress_103216;
items4[6] = <ActionSheetRow {...object8} />;
value = <Group {...groupProps}>{items4}</Group>;
r5 = value;
} else {
r5 = preview;
}
items2[2] = r5;
return (
<ActionSheet>
{items2}
</ActionSheet>
);
}
function QuestDockContextMenuActionSheetOnPress() { // fn#103204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:693, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225c9cb, size: 157 bytes, params: 1, frame: 19
const value = environment.__proto__;
const questPlatformUtilsModule = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
const openGameLinkDirectly = questPlatformUtilsModule.openGameLinkDirectly;
const questBinding = quest;
const object2 = {};
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
const CONTEXT_MENU_OPEN_GAME_LINK = QuestContentCTA.CONTEXT_MENU_OPEN_GAME_LINK;
object2.ctaContent = CONTEXT_MENU_OPEN_GAME_LINK;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(openGameLinkDirectly, questPlatformUtilsModule, [questBinding, object2]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103205() { // fn#103205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:1114, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225ca68, size: 162 bytes, params: 1, frame: 19
const value = environment.__proto__;
const questCopyUtilsModule = require(9505) /* metro dependency 9505: QuestCopyUtils */;
const copyShareLink = questCopyUtilsModule.copyShareLink;
const id = quest.id;
const object2 = {};
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
const CONTEXT_MENU_COPY_LINK = QuestContentCTA.CONTEXT_MENU_COPY_LINK;
object2.ctaContent = CONTEXT_MENU_COPY_LINK;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(copyShareLink, questCopyUtilsModule, [id, object2]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103206() { // fn#103206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:1570, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cb0a, size: 499 bytes, params: 1, frame: 18
var moduleValue2;
var trackQuestContentClicked;
var object2;
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
var QUEST_BAR_MOBILE;
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
var moduleValue3;
var captureAdUserAction;
const value = environment.__proto__;
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
[STEP_2_CLICKED_INTERNAL, 'quest_dock_context_menu'])) {
moduleValue3 = require(9517) /* metro dependency 9517: captureAdUserAction */;
captureAdUserAction = moduleValue3.captureAdUserAction;
object2 = {};
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
object2.adCreativeId = quest.id;
object2.questContentCTA = QuestContentCTA.CONTEXT_MENU_LEARN_MORE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.surfaceId = QUEST_BAR_MOBILE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(captureAdUserAction, moduleValue3, [object2]);
} else {
moduleValue2 = require(7110) /* metro dependency 7110: AnalyticsActions */;
trackQuestContentClicked = moduleValue2.trackQuestContentClicked;
object2 = {};
object2.questId = quest.id;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.questContent = QUEST_BAR_MOBILE;
object2.questContentCTA = QuestContentCTA.CONTEXT_MENU_LEARN_MORE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(trackQuestContentClicked, moduleValue2, [object2]);
}
const questUtilsNativeModule = require(9480) /* metro dependency 9480: QuestUtilsNative */;
const openQuestHome = questUtilsNativeModule.openQuestHome;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
Reflect.apply(openQuestHome, questUtilsNativeModule, [{scrollToQuestId: quest.id, fromContent: QUEST_BAR_MOBILE}]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103207() { // fn#103207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:2570, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225ccfd, size: 175 bytes, params: 1, frame: 18
const value = environment.__proto__;
const defaultImport = importDefault(13580) /* metro dependency 13580: QuestDisclosureModalActionCreators */;
const showModal = defaultImport.showModal;
const object3 = {};
object3.quest = quest;
object3.isTargetedDisclosure = true;
const object4 = {};
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object4.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE;
object4.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object4.sourceQuestContent = QUEST_BAR_MOBILE;
object3.trackingCtx = object4;
Reflect.apply(showModal, defaultImport, [object3]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function* _fun103209() { // fn#103209, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:3076, offset: 0x0225cdb7, size: 525 bytes, params: 1, frame: 21
var value8;
var trackQuestContentClicked;
var object2;
var value9;
var captureAdUserAction;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
var value3 = binding(binding2[27]);
var dismissQuestContent = value3.dismissQuestContent;
var id = require.id;
var QuestContent = binding(binding2[12]).QuestContent;
var QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
var value5 = Reflect.apply(dismissQuestContent, value3, [id, QUEST_BAR_MOBILE]);
env2_1(binding2[14]).hideActionSheet();
var value7 = binding(binding2[18]);
var shouldMigrateToAdAnalyticsInterface = value7.shouldMigrateToAdAnalyticsInterface;
var AdAnalyticsInterfaceExperimentStep = binding(binding2[18]).AdAnalyticsInterfaceExperimentStep;
var STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
var shouldMigrateToAdAnalyticsInterface2 = Reflect.apply(shouldMigrateToAdAnalyticsInterface, value7,
[STEP_2_CLICKED_INTERNAL, 'quest_dock_context_menu']);
binding = env2_0;
var binding4 = env2_2;
if (shouldMigrateToAdAnalyticsInterface2) {
value9 = binding(binding4[19]);
captureAdUserAction = value9.captureAdUserAction;
object2 = {};
object2.type = binding(binding4[20]).AdUserActionType.CLICK_INTERNAL;
object2.adCreativeType = binding(binding4[21]).AdCreativeType.QUEST;
object2.adCreativeId = require.id;
object2.questContentCTA = binding(binding4[13]).QuestContentCTA.CONTEXT_MENU_HIDE_CONTENT;
QuestContent = binding(binding4[12]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.surfaceId = QUEST_BAR_MOBILE;
QuestContent = binding(binding4[12]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(captureAdUserAction, value9, [object2]);
function QuestDockContextMenuActionSheet({quest}) { // fn#103203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:180, offset: 0x0225c01c, size: 2479 bytes, params: 2, frame: 35
var r8;
var r5;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object;
var object3;
var items4;
var object10;
var object13;
var object16;
var object17;
const EyeIcon = (EyeIconModule).EyeIcon;
var object18;
var object19;
var value;
const isShareableQuest2 = QuestUtilsModule.isShareableQuest(quest.config);
const value2 = (QuestHooksModule).useQuestPreviewActions(quest.id);
const env0_1 = value2.handleComplete;
const env0_2 = value2.handleProgress;
const handleResetDismissibilityClick = value2.handleResetDismissibilityClick;
const env0_4 = value2.handleResetStatusClick;
const externalCtaLabel = (QuestCopyUtilsModule).getExternalCtaLabel(quest);
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
let Group = ActionSheetRow.Group;
const object20 = {};
const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
let Icon = ActionSheetRow2.Icon;
const LinkExternalMediumIcon = (LinkExternalMediumIconModule).LinkExternalMediumIcon;
object20.icon = <Icon IconComponent={LinkExternalMediumIcon} />;
const FormLabel = (NativeModule).FormLabel;
object20.label = <FormLabel text={externalCtaLabel} />;
object20.onPress = onPress_103204;
const actionSheetRow = <ActionSheetRow {...object20} />;
if (isShareableQuest2) {
r8 = (
<ActionSheetRow
icon={((Icon) => <Icon IconComponent={(require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)}
label={<FormLabel text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WqhZss)} />}
onPress={onPress_103205}
/>
);
} else {
value8 = binding(binding4[22]);
trackQuestContentClicked = value8.trackQuestContentClicked;
object2 = {};
object2.questId = require.id;
QuestContent = binding(binding4[12]).QuestContent;
r8 = isShareableQuest2;
}
const items2 = [
<Group hasIcons>
{actionSheetRow}
{r8}
</Group>,
];
Group = ActionSheetRow.Group;
const object21 = {};
const ActionSheetRow4 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
Icon = ActionSheetRow4.Icon;
object21.icon = <Icon IconComponent={importDefault(13578) /* metro dependency 13578: WreathIcon */} />;
let string = intl.string;
const LLLLPD = (require(1244) /* metro dependency 1244: indexNative */).t.LLLLPD;
object21.label = <FormLabel text={Reflect.apply(string, intl, [LLLLPD])} />;
object21.onPress = onPress_103206;
const items3 = [
<ActionSheetRow {...object21} />,
];
const object22 = {};
const ActionSheetRow5 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
Icon = ActionSheetRow5.Icon;
const CircleQuestionIcon = (CircleQuestionIconModule).CircleQuestionIcon;
object22.icon = <Icon IconComponent={CircleQuestionIcon} />;
string = intl.string;
const GcsZKJ = (require(1244) /* metro dependency 1244: indexNative */).t.GcsZKJ;
object22.label = <FormLabel text={Reflect.apply(string, intl, [GcsZKJ])} />;
object22.onPress = onPress_103207;
items3[1] = <ActionSheetRow {...object22} />;
const object23 = {};
const ActionSheetRow6 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
Icon = ActionSheetRow6.Icon;
const XSmallIcon = (XSmallIconModule).XSmallIcon;
object23.icon = <Icon IconComponent={XSmallIcon} />;
string = intl.string;
const NN79E9 = (require(1244) /* metro dependency 1244: indexNative */).t.NN79E9;
object23.label = <FormLabel text={Reflect.apply(string, intl, [NN79E9])} />;
string = intl.string;
const V6htN5 = (require(1244) /* metro dependency 1244: indexNative */).t.V6htN5;
object23.subLabel = Reflect.apply(string, intl, [V6htN5]);
object23.onPress = handleResetDismissibilityClick(_fun103209);
items3[2] = <ActionSheetRow {...object23} />;
items2[1] = (
<Group hasIcons>
{items3}
</Group>
);
const preview = quest.preview;
if (preview) {
Group = ActionSheetRow.Group;
var groupProps = {title: intl.string(t['Ape+mm']), hasIcons: true};
object3 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object3.icon = <Icon IconComponent={(require(8653) /* metro dependency 8653: TrophyIcon */).TrophyIcon} />;
string = intl.string;
object3.label = <FormLabel text={Reflect.apply(string, intl, [t.jQEfRT])} />;
object3.onPress = onPress_103210;
value = <ActionSheetRow {...object3} />;
items4 = [value];
object10 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object10.icon = <Icon IconComponent={(require(13584) /* metro dependency 13584: RedoIcon */).RedoIcon} />;
string = intl.string;
object10.label = <FormLabel text={Reflect.apply(string, intl, [t.cKSLr4])} />;
object10.onPress = onPress_103211;
items4[1] = <ActionSheetRow {...object10} />;
object13 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object13.icon = <Icon IconComponent={(require(13586) /* metro dependency 13586: UndoIcon */).UndoIcon} />;
string = intl.string;
object13.label = <FormLabel text={Reflect.apply(string, intl, [t.taqkwK])} />;
object13.onPress = onPress_103212;
items4[2] = <ActionSheetRow {...object13} />;
object16 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object16.icon = <Icon IconComponent={(require(13588) /* metro dependency 13588: UnsendIcon */).UnsendIcon} />;
string = intl.string;
object16.label = <FormLabel text={Reflect.apply(string, intl, [t.JF6W66])} />;
object16.onPress = onPress_103213;
items4[3] = <ActionSheetRow {...object16} />;
object17 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object17.icon = <Icon IconComponent={EyeIcon} />;
string = intl.string;
object17.label = <FormLabel text={Reflect.apply(string, intl, [t['lL6/zF']])} />;
object17.onPress = onPress_103214;
items4[4] = <ActionSheetRow {...object17} />;
object18 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object18.icon = <Icon IconComponent={EyeIcon} />;
string = intl.string;
object18.label = <FormLabel text={Reflect.apply(string, intl, [t.tx5Ax5])} />;
object18.onPress = onPress_103215;
items4[5] = <ActionSheetRow {...object18} />;
object19 = {};
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
object19.icon = <Icon IconComponent={(require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon} />;
string = intl.string;
object19.label = <FormLabel text={Reflect.apply(string, intl, [t.oisrFi])} />;
object19.onPress = onPress_103216;
items4[6] = <ActionSheetRow {...object19} />;
value = (
<Group {...groupProps}>
{items4}
</Group>
);
r5 = value;
} else {
r5 = preview;
}
items2[2] = r5;
return (
<ActionSheet>
{items2}
</ActionSheet>
);
function QuestDockContextMenuActionSheetOnPress() { // fn#103204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:693, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225c9cb, size: 157 bytes, params: 1, frame: 19
const value = environment.__proto__;
const openGameLinkDirectly = QuestPlatformUtilsModule.openGameLinkDirectly;
const questBinding = quest;
const object = {};
const QuestContent = (QuestTypesModule).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
const CONTEXT_MENU_OPEN_GAME_LINK = QuestContentCTA.CONTEXT_MENU_OPEN_GAME_LINK;
object.ctaContent = CONTEXT_MENU_OPEN_GAME_LINK;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.questContent = QUEST_BAR_MOBILE;
object2.questContentCTA = binding(binding4[13]).QuestContentCTA.CONTEXT_MENU_HIDE_CONTENT;
QuestContent = binding(binding4[12]).QuestContent;
object.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(openGameLinkDirectly, QuestPlatformUtilsModule, [questBinding, object]);
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103205() { // fn#103205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:1114, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225ca68, size: 162 bytes, params: 1, frame: 19
const value = environment.__proto__;
const copyShareLink = QuestCopyUtilsModule.copyShareLink;
const id = quest.id;
const object = {};
const QuestContent = (QuestTypesModule).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
const CONTEXT_MENU_COPY_LINK = QuestContentCTA.CONTEXT_MENU_COPY_LINK;
object.ctaContent = CONTEXT_MENU_COPY_LINK;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(copyShareLink, QuestCopyUtilsModule, [id, object]);
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103206() { // fn#103206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:1570, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cb0a, size: 499 bytes, params: 1, frame: 18
var moduleValue2;
var trackQuestContentClicked;
var object;
const QuestContent = (QuestTypesModule).QuestContent;
var QUEST_BAR_MOBILE;
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
var moduleValue3;
var captureAdUserAction;
const value = environment.__proto__;
const shouldMigrateToAdAnalyticsInterface = AdAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
const AdAnalyticsInterfaceExperimentStep = AdAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, AdAnalyticsInterfaceExperimentModule,
[STEP_2_CLICKED_INTERNAL, 'quest_dock_context_menu'])) {
moduleValue3 = require(9517) /* metro dependency 9517: captureAdUserAction */;
captureAdUserAction = moduleValue3.captureAdUserAction;
object = {};
object.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
object.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
object.adCreativeId = quest.id;
object.questContentCTA = QuestContentCTA.CONTEXT_MENU_LEARN_MORE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.surfaceId = QUEST_BAR_MOBILE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(captureAdUserAction, moduleValue3, [object]);
} else {
moduleValue2 = require(7110) /* metro dependency 7110: AnalyticsActions */;
trackQuestContentClicked = moduleValue2.trackQuestContentClicked;
object = {};
object.questId = quest.id;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.questContent = QUEST_BAR_MOBILE;
object.questContentCTA = QuestContentCTA.CONTEXT_MENU_LEARN_MORE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(trackQuestContentClicked, moduleValue2, [object]);
}
const openQuestHome = QuestUtilsNativeModule.openQuestHome;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
Reflect.apply(openQuestHome, QuestUtilsNativeModule, [{scrollToQuestId: quest.id, fromContent: QUEST_BAR_MOBILE}]);
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103207() { // fn#103207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:2570, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225ccfd, size: 175 bytes, params: 1, frame: 18
const value = environment.__proto__;
const defaultImport = QuestDisclosureModalActionCreators;
const showModal = defaultImport.showModal;
const object = {};
object.quest = quest;
object.isTargetedDisclosure = true;
const object2 = {};
const QuestContent = (QuestTypesModule).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE;
object2.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(trackQuestContentClicked, value8, [object2]);
object.trackingCtx = object2;
Reflect.apply(showModal, defaultImport, [object]);
(ActionSheetActionCreators).hideActionSheet();
}
yield value5;
if (false) {
return undefined;
function* _fun103209() { // fn#103209, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:3076, offset: 0x0225cdb7, size: 525 bytes, params: 1, frame: 21
var value8;
var trackQuestContentClicked;
var object;
var value9;
var captureAdUserAction;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
var value3 = binding(binding2[27]);
var dismissQuestContent = value3.dismissQuestContent;
var id = require.id;
var QuestContent = binding(binding2[12]).QuestContent;
var QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
var value5 = Reflect.apply(dismissQuestContent, value3, [id, QUEST_BAR_MOBILE]);
env2_1(binding2[14]).hideActionSheet();
var value7 = binding(binding2[18]);
var shouldMigrateToAdAnalyticsInterface = value7.shouldMigrateToAdAnalyticsInterface;
var AdAnalyticsInterfaceExperimentStep = binding(binding2[18]).AdAnalyticsInterfaceExperimentStep;
var STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
var shouldMigrateToAdAnalyticsInterface2 = Reflect.apply(shouldMigrateToAdAnalyticsInterface, value7,
[STEP_2_CLICKED_INTERNAL, 'quest_dock_context_menu']);
binding = env2_0;
var binding4 = env2_2;
if (shouldMigrateToAdAnalyticsInterface2) {
value9 = binding(binding4[19]);
captureAdUserAction = value9.captureAdUserAction;
object = {};
object.type = binding(binding4[20]).AdUserActionType.CLICK_INTERNAL;
object.adCreativeType = binding(binding4[21]).AdCreativeType.QUEST;
object.adCreativeId = require.id;
object.questContentCTA = binding(binding4[13]).QuestContentCTA.CONTEXT_MENU_HIDE_CONTENT;
QuestContent = binding(binding4[12]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.surfaceId = QUEST_BAR_MOBILE;
QuestContent = binding(binding4[12]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(captureAdUserAction, value9, [object]);
} else {
value8 = binding(binding4[22]);
trackQuestContentClicked = value8.trackQuestContentClicked;
object = {};
object.questId = require.id;
QuestContent = binding(binding4[12]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.questContent = QUEST_BAR_MOBILE;
object.questContentCTA = binding(binding4[13]).QuestContentCTA.CONTEXT_MENU_HIDE_CONTENT;
QuestContent = binding(binding4[12]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
Reflect.apply(trackQuestContentClicked, value8, [object]);
}
yield value5;
if (false) {
return undefined;
}
env2_0(env2_2[28]).displayQuestDismissalToast();
}
}
env2_0(env2_2[28]).displayQuestDismissalToast();
function QuestDockContextMenuActionSheetOnPress_103210() { // fn#103210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4226, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cfc4, size: 48 bytes, params: 1, frame: 12
handleComplete();
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103211() { // fn#103211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4444, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cff4, size: 95 bytes, params: 1, frame: 12
const handleProgressBinding = handleProgress;
const Math = global.Math;
handleProgressBinding(0.9 * Math.random() + 0.03);
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103212() { // fn#103212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4682, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d053, size: 48 bytes, params: 1, frame: 12
handleResetStatusClick();
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103213() { // fn#103213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4902, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d083, size: 48 bytes, params: 1, frame: 12
handleResetDismissibilityClick();
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103214() { // fn#103214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5122, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d0b3, size: 109 bytes, params: 1, frame: 17
const value = environment.__proto__;
const markAdContentUnseen = QuestActionCreatorsModule.markAdContentUnseen;
const AdCreativeType = (AdCreativeTypeModule).AdCreativeType;
const QUEST = AdCreativeType.QUEST;
Reflect.apply(markAdContentUnseen, QuestActionCreatorsModule, [QUEST, [quest.id]]);
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103215() { // fn#103215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5402, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d120, size: 105 bytes, params: 1, frame: 16
const value = environment.__proto__;
const openUserSettings = OpenUserSettingsModule.openUserSettings;
const QUEST_PREVIEW_TOOL_2 = UserSettingsSections.QUEST_PREVIEW_TOOL_2;
Reflect.apply(openUserSettings, OpenUserSettingsModule, [{screen: QUEST_PREVIEW_TOOL_2,
params: {questId: quest.id}}]);
(ActionSheetActionCreators).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103216() { // fn#103216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5697, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d189, size: 76 bytes, params: 1, frame: 14
const value = environment.__proto__;
ClipboardUtilsNativeModule.copy(quest.id);
(ActionSheetActionCreators).hideActionSheet();
}
}
}
function QuestDockContextMenuActionSheetOnPress_103210() { // fn#103210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4226, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cfc4, size: 48 bytes, params: 1, frame: 12
handleComplete();
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103211() { // fn#103211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4444, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cff4, size: 95 bytes, params: 1, frame: 12
const handleProgressBinding = handleProgress;
const Math = global.Math;
handleProgressBinding(0.9 * Math.random() + 0.03);
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103212() { // fn#103212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4682, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d053, size: 48 bytes, params: 1, frame: 12
handleResetStatusClick();
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103213() { // fn#103213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4902, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d083, size: 48 bytes, params: 1, frame: 12
handleResetDismissibilityClick();
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103214() { // fn#103214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5122, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d0b3, size: 109 bytes, params: 1, frame: 17
const value = environment.__proto__;
const questActionCreatorsModule = require(9484) /* metro dependency 9484: QuestActionCreators */;
const markAdContentUnseen = questActionCreatorsModule.markAdContentUnseen;
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
const QUEST = AdCreativeType.QUEST;
Reflect.apply(markAdContentUnseen, questActionCreatorsModule, [QUEST, [quest.id]]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103215() { // fn#103215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5402, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d120, size: 105 bytes, params: 1, frame: 16
const value = environment.__proto__;
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
const openUserSettings = openUserSettingsModule.openUserSettings;
const QUEST_PREVIEW_TOOL_2 = UserSettingsSections.QUEST_PREVIEW_TOOL_2;
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: QUEST_PREVIEW_TOOL_2,
params: {questId: quest.id}}]);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function QuestDockContextMenuActionSheetOnPress_103216() { // fn#103216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5697, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d189, size: 76 bytes, params: 1, frame: 14
const value = environment.__proto__;
const clipboardUtilsNativeModule = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
clipboardUtilsNativeModule.copy(quest.id);
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
global.__d(_fun103202, 13577, [5, 31, 661, 33, 7114, 9483, 9505, 6805, 6807, 10638, 7972, 9520, 6531, 7120, 4080,
4060, 1244, 13578, 9519, 9517, 9518, 7121, 7110, 9480, 10139, 13580, 5312, 9484, 13583, 8653, 13584, 13586,
13588, 8999, 7007, 6797,
2]) /* metro module 13577, dependencies: [5, 31, 661, 33, 7114, 9483, 9505, 6805, 6807, 10638, 7972, 9520, 6531, 7120, 4080, 4060, 1244, 13578, 9519, 9517, 9518, 7121, 7110, 9480, 10139, 13580, 5312, 9484, 13583, 8653, 13584, 13586, 13588, 8999, 7007, 6797, 2] */;
@@ -1,146 +1,149 @@
/* Metro module 13665; source: modules/quests/native/QuestDock/QuestDockDragHandle.tsx; dependencies: [31, 27, 6528, 13572, 7553, 33, 4501, 13650, 13573, 5176, 4017, 4577, 8141, 13571, 6515, 1244, 2] */
import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */
import * as ActionSheetHeaderBarNativeModule from '../../../../design/components/Sheet/native/ActionSheetHeaderBar.native.tsx'; /* Metro dependency 6515 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as YouBarConstantsModule from '../../../main_tabs_v2/native/YouBarConstants.tsx'; /* Metro dependency 7553 */
import * as QuestDockUtilsModule from './QuestDockUtils.tsx'; /* Metro dependency 13571 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
function _fun104360(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:6, offset: 0x02293cfa, size: 460 bytes, params: 8, frame: 24
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
const env0_5 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS;
const env0_6 = questDockConstantsModule.QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
const env0_7 = questDockConstantsModule.QUEST_DOCK_COLLAPSED_MAX_WIDTH;
const env0_8 = (require(7553) /* metro dependency 7553: YouBarConstants */).useYouBarHorizontalMargin;
const value3 = require(33) /* metro dependency 33 */;
const env0_9 = value3.jsx;
const env0_10 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object4 = {};
const object5 = {};
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
object5['bottom'] = undefined;
object5['right'] = undefined;
object5['zIndex'] = 4;
object4.dragHandleWrapper = object5;
const object6 = {};
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
object6['bottom'] = undefined;
object4.dragHandleOverlay = object6;
const env0_11 = Reflect.apply(createStyles, createStylesModule, [object4]);
object4 = {code: 'function getDragHandleOffsetLeft_QuestDockDragHandleTsx1(activeQuestDockMode,horizontalEdgeGutter,withYouBar){const{QuestDockMode}=this.__closure;if(withYouBar){switch(activeQuestDockMode){case QuestDockMode.EXPANDED:return 0;default:return horizontalEdgeGutter*-1;}}else{switch(activeQuestDockMode){case QuestDockMode.COLLAPSED:return horizontalEdgeGutter*-1;default:return 0;}}}'};
const env0_13 = _fun104361();
object4 = {code: 'function QuestDockDragHandleTsx2(){const{windowDimensions,QUEST_DOCK_COLLAPSED_MAX_WIDTH}=this.__closure;return{width:Math.min(windowDimensions.get().width,QUEST_DOCK_COLLAPSED_MAX_WIDTH)};}'};
object4 = {code: 'function QuestDockDragHandleTsx3(){const{getDragHandleOffsetLeft,activeQuestDockMode,questDockHorizontalGutterCollapsed,youBarEnabled}=this.__closure;return{left:getDragHandleOffsetLeft(activeQuestDockMode.get(),questDockHorizontalGutterCollapsed,youBarEnabled)};}'};
object4 = {code: 'function QuestDockDragHandleTsx4(){const{withSpring,isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(isEnrolled||activeQuestDockMode.get()===QuestDockMode.CLOSED||activeQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
object4 = {code: 'function QuestDockDragHandleTsx5(){const{withSpring,isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(!isEnrolled&&activeQuestDockMode.get()!==QuestDockMode.CLOSED&&activeQuestDockMode.get()!==QuestDockMode.SOFT_DISMISSED?0.5:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
value = value.memo(QuestDockDragHandle);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockDragHandle.tsx');
exports.default = value;
}
function _fun104361() { // fn#104361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:900, offset: 0x02293ec6, size: 57 bytes, params: 1, frame: 4
const closure = getDragHandleOffsetLeft;
closure.__closure = {QuestDockMode: QuestDockMode};
closure.__workletHash = 3634410156103;
closure.__initData = env0_12;
return closure;
}
function QuestDockDragHandle({isExpanded}) { // fn#104363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:2358, offset: 0x02293f45, size: 973 bytes, params: 2, frame: 31
var object2;
const binding = env0_3;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
const styles = useStyles();
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const {activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
const userStatus = quest.userStatus;
const value4 = userStatus?.enrolledAt != null;
const value5 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDockDragHandle');
const r15 = value5 ? useYouBarHorizontalMargin() : QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = function() {
var object = {};
var Math = global.Math;
object.width = Math.min(windowDimensions.get().width, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
return object;
};
closure.__closure = {windowDimensions: windowDimensions,
QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 13640576219747;
closure.__initData = env0_14;
const value7 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const moduleValue3 = reanimatedRexportModule;
useAnimatedStyle = moduleValue3.useAnimatedStyle;
closure = QuestDockDragHandleH;
closure.__closure = {getDragHandleOffsetLeft: env0_13, activeQuestDockMode: activeQuestDockMode,
questDockHorizontalGutterCollapsed: r15, youBarEnabled: value5};
closure.__workletHash = 14041713732815;
closure.__initData = env0_15;
const value8 = Reflect.apply(useAnimatedStyle, moduleValue3, [closure]);
const moduleValue4 = reanimatedRexportModule;
useAnimatedStyle = moduleValue4.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[11]);
return {opacity: moduleValue.withSpring(result || activeQuestDockMode.get() === QuestDockMode.CLOSED ? 1 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 0 : 1,
QUEST_DOCK_MODE_CHANGE_PHYSICS)};
};
object2 = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isEnrolled: value4,
activeQuestDockMode: activeQuestDockMode};
object2.QuestDockMode = QuestDockMode;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
closure.__closure = object2;
closure.__workletHash = 12299455640931;
closure.__initData = env0_16;
const value9 = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
const moduleValue5 = reanimatedRexportModule;
useAnimatedStyle = moduleValue5.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[11]);
return {opacity: moduleValue.withSpring(result || activeQuestDockMode.get() === QuestDockMode.CLOSED ? 0 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 0.5 : 0,
QUEST_DOCK_MODE_CHANGE_PHYSICS)};
};
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isEnrolled: value4,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS};
closure.__workletHash = 9632835517209;
closure.__initData = env0_17;
const value10 = Reflect.apply(useAnimatedStyle, moduleValue5, [closure]);
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
const items3 = [styles.dragHandleWrapper, value7];
const defaultImport2 = ReanimatedNativeView;
const dimensionsLayoutTransition = (require(13571) /* metro dependency 13571: QuestDockUtils */).dimensionsLayoutTransition;
const defaultImport3 = ReanimatedNativeView;
const items2 = [styles.dragHandleOverlay, value10];
const ActionSheetHeaderBar = (require(6515) /* metro dependency 6515: ActionSheetHeaderBarNative */).ActionSheetHeaderBar;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return (
<ReanimatedNativeView style={items3}>
{((Component) => <Component style={value8} layout={dimensionsLayoutTransition}>{((Component) => <Component style={items2}><ActionSheetHeaderBar variant="overlay" accessibilityLabel={isExpanded ? Reflect.apply(string,
intl, [t['GQ+4bk']]) : Reflect.apply(string, intl,
[t.Yplnt6])} /></Component>)(defaultImport3)}<ReanimatedNativeView style={[styles.dragHandleOverlay,
value9]} pointerEvents="none" accessibilityElementsHidden importantForAccessibility="no-hide-descendants"><ActionSheetHeaderBar variant="default" /></ReanimatedNativeView></Component>)(defaultImport2)}
</ReanimatedNativeView>
);
}
function getDragHandleOffsetLeft(a0, a1, a2) { // fn#104362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:939, offset: 0x02293eff, size: 70 bytes, params: 4, frame: 5
const value = environment.__proto__;
return a2 ? a0 === QuestDockMode.EXPANDED ? 0 : -1 * a1 : a0 !== QuestDockMode.COLLAPSED ? 0 : -1 * a1;
}
function QuestDockDragHandleH() { // fn#104365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:2883, owner: QuestDockDragHandle.H, offset: 0x02294349, size: 48 bytes, params: 1, frame: 16
let value = ReactModule;
const StyleSheet = (ReactNativeModule).StyleSheet;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {};
object2.left = env1_13(activeQuestDockMode.get(), env0_4, env0_3);
return object2;
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
object2['bottom'] = undefined;
object2['right'] = undefined;
object2['zIndex'] = 4;
object.dragHandleWrapper = object2;
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['bottom'] = undefined;
object.dragHandleOverlay = object3;
const env0_11 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function getDragHandleOffsetLeft_QuestDockDragHandleTsx1(activeQuestDockMode,horizontalEdgeGutter,withYouBar){const{QuestDockMode}=this.__closure;if(withYouBar){switch(activeQuestDockMode){case QuestDockMode.EXPANDED:return 0;default:return horizontalEdgeGutter*-1;}}else{switch(activeQuestDockMode){case QuestDockMode.COLLAPSED:return horizontalEdgeGutter*-1;default:return 0;}}}'};
const env0_13 = _fun104361();
object = {code: 'function QuestDockDragHandleTsx2(){const{windowDimensions,QUEST_DOCK_COLLAPSED_MAX_WIDTH}=this.__closure;return{width:Math.min(windowDimensions.get().width,QUEST_DOCK_COLLAPSED_MAX_WIDTH)};}'};
object = {code: 'function QuestDockDragHandleTsx3(){const{getDragHandleOffsetLeft,activeQuestDockMode,questDockHorizontalGutterCollapsed,youBarEnabled}=this.__closure;return{left:getDragHandleOffsetLeft(activeQuestDockMode.get(),questDockHorizontalGutterCollapsed,youBarEnabled)};}'};
object = {code: 'function QuestDockDragHandleTsx4(){const{withSpring,isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(isEnrolled||activeQuestDockMode.get()===QuestDockMode.CLOSED||activeQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
object = {code: 'function QuestDockDragHandleTsx5(){const{withSpring,isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(!isEnrolled&&activeQuestDockMode.get()!==QuestDockMode.CLOSED&&activeQuestDockMode.get()!==QuestDockMode.SOFT_DISMISSED?0.5:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
value = value.memo(QuestDockDragHandle);
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockDragHandle.tsx');
exports.default = value;
function _fun104361() { // fn#104361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:900, offset: 0x02293ec6, size: 57 bytes, params: 1, frame: 4
const getDragHandleOffsetLeft2 = getDragHandleOffsetLeft;
getDragHandleOffsetLeft2.__closure = {QuestDockMode: QuestDockMode};
getDragHandleOffsetLeft2.__workletHash = 3634410156103;
getDragHandleOffsetLeft2.__initData = env0_12;
return getDragHandleOffsetLeft2;
function getDragHandleOffsetLeft(a0, a1, a2) { // fn#104362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:939, offset: 0x02293eff, size: 70 bytes, params: 4, frame: 5
const value = environment.__proto__;
return a2 ? a0 === QuestDockMode.EXPANDED ? 0 : -1 * a1 : a0 !== QuestDockMode.COLLAPSED ? 0 : -1 * a1;
}
}
function QuestDockDragHandle({isExpanded}) { // fn#104363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:2358, offset: 0x02293f45, size: 973 bytes, params: 2, frame: 31
const binding = env0_3;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[QuestDockContext]).quest;
const styles = useStyles();
useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const {activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
const userStatus = quest.userStatus;
const value4 = userStatus?.enrolledAt != null;
const value5 = (YouBarExperimentModule).useYouBarEnabled('QuestDockDragHandle');
const r15 = value5 ? useYouBarHorizontalMargin() : QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
let closure = function() {
var object = {};
var Math = global.Math;
object.width = Math.min(windowDimensions.get().width, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
return object;
};
closure.__closure = {windowDimensions: windowDimensions,
QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 13640576219747;
closure.__initData = env0_14;
const value7 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockDragHandleH;
closure.__closure = {getDragHandleOffsetLeft: env0_13, activeQuestDockMode: activeQuestDockMode,
questDockHorizontalGutterCollapsed: r15, youBarEnabled: value5};
closure.__workletHash = 14041713732815;
closure.__initData = env0_15;
const value8 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[11]);
return {opacity: moduleValue.withSpring(result || activeQuestDockMode.get() === QuestDockMode.CLOSED ? 1 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 0 : 1,
QUEST_DOCK_MODE_CHANGE_PHYSICS)};
};
object = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isEnrolled: value4,
activeQuestDockMode: activeQuestDockMode};
object.QuestDockMode = QuestDockMode;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
closure.__closure = object;
closure.__workletHash = 12299455640931;
closure.__initData = env0_16;
const value9 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[11]);
return {opacity: moduleValue.withSpring(result || activeQuestDockMode.get() === QuestDockMode.CLOSED ? 0 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 0.5 : 0,
QUEST_DOCK_MODE_CHANGE_PHYSICS)};
};
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isEnrolled: value4,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS};
closure.__workletHash = 9632835517209;
closure.__initData = env0_17;
const value10 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const items3 = [styles.dragHandleWrapper, value7];
const defaultImport2 = ReanimatedNativeView;
const dimensionsLayoutTransition = (QuestDockUtilsModule).dimensionsLayoutTransition;
const defaultImport3 = ReanimatedNativeView;
const items2 = [styles.dragHandleOverlay, value10];
const ActionSheetHeaderBar = (ActionSheetHeaderBarNativeModule).ActionSheetHeaderBar;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
return (
<ReanimatedNativeView style={items3}>
{((Component) => <Component style={value8} layout={dimensionsLayoutTransition}>{((Component) => <Component style={items2}><ActionSheetHeaderBar variant="overlay" accessibilityLabel={isExpanded ? Reflect.apply(string,
intl, [t['GQ+4bk']]) : Reflect.apply(string, intl,
[t.Yplnt6])} /></Component>)(defaultImport3)}<ReanimatedNativeView style={[styles.dragHandleOverlay,
value9]} pointerEvents="none" accessibilityElementsHidden importantForAccessibility="no-hide-descendants"><ActionSheetHeaderBar variant="default" /></ReanimatedNativeView></Component>)(defaultImport2)}
</ReanimatedNativeView>
);
function QuestDockDragHandleH() { // fn#104365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13862:2883, owner: QuestDockDragHandle.H, offset: 0x02294349, size: 48 bytes, params: 1, frame: 16
const object = {};
object.left = env1_13(activeQuestDockMode.get(), QuestConstantsModule.QuestDockMode, env0_3);
return object;
}
}
}
global.__d(_fun104360, 13665, [31, 27, 6528, 13572, 7553, 33, 4501, 13650, 13573, 5176, 4017, 4577, 8141, 13571,
6515, 1244,
2]) /* metro module 13665, dependencies: [31, 27, 6528, 13572, 7553, 33, 4501, 13650, 13573, 5176, 4017, 4577, 8141, 13571, 6515, 1244, 2] */;
@@ -1,202 +1,267 @@
/* Metro module 13663; source: modules/quests/native/QuestDock/QuestDockEnrolledBody.tsx; dependencies: [5, 31, 27, 13570, 6528, 13572, 33, 4501, 697, 13576, 13573, 8621, 13568, 13595, 6531, 13592, 13591, 13593, 1585, 5176, 7116, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseStateFromSharedValue from '../../../reanimated/native/useStateFromSharedValue.tsx'; /* Metro dependency 8621 */
import QuestDockStore from './QuestDockStore.tsx'; /* Metro dependency 13570 */
import QuestBottomSheetHeader from '../QuestBottomSheet/QuestBottomSheetHeader.tsx'; /* Metro dependency 13592 */
import QuestBottomSheetFooter from '../QuestBottomSheet/QuestBottomSheetFooter.tsx'; /* Metro dependency 13593 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as QuestHooksNativeModule from '../QuestHooks.native.tsx'; /* Metro dependency 13568 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
import * as QuestDockExternalCoordinationContextModule from './QuestDockExternalCoordinationContext.tsx'; /* Metro dependency 13576 */
import * as QuestBottomSheetModule from '../QuestBottomSheet/QuestBottomSheet.tsx'; /* Metro dependency 13591 */
function _fun104337(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:6, offset: 0x022929cd, size: 517 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
const env0_7 = questConstantsModule.QuestDockMode;
const env0_8 = questConstantsModule.QuestsExperimentLocations;
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
const QUEST_DOCK_EXPANDED_ENROLLED_PADDING_TOP = questDockConstantsModule.QUEST_DOCK_EXPANDED_ENROLLED_PADDING_TOP;
const env0_9 = questDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT;
const QUEST_DOCK_EXPANDED_PADDING_BOTTOM = questDockConstantsModule.QUEST_DOCK_EXPANDED_PADDING_BOTTOM;
const QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL = questDockConstantsModule.QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.Fragment;
const env0_13 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
object2.wrapper = {'flexGrow': 0, 'flexShrink': 0, paddingBottom: QUEST_DOCK_EXPANDED_PADDING_BOTTOM,
let value = ReactModule;
const QUEST_DOCK_EXPANDED_ENROLLED_PADDING_TOP = QuestDockConstantsModule.QUEST_DOCK_EXPANDED_ENROLLED_PADDING_TOP;
const QUEST_DOCK_EXPANDED_PADDING_BOTTOM = QuestDockConstantsModule.QUEST_DOCK_EXPANDED_PADDING_BOTTOM;
const QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL = QuestDockConstantsModule.QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL;
const createStyles = CreateStylesModule.createStyles;
object = {};
object.wrapper = {'flexGrow': 0, 'flexShrink': 0, paddingBottom: QUEST_DOCK_EXPANDED_PADDING_BOTTOM,
paddingTop: QUEST_DOCK_EXPANDED_ENROLLED_PADDING_TOP, paddingHorizontal: QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.headerWrapper = {marginBottom: PX_16};
object.headerWrapper = {marginBottom: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.contentWrapper = {'display': 'flex', 'gap': null, 'flexGrow': 0, 'flexShrink': 0, gap: PX_16};
object.contentWrapper = {'display': 'flex', 'gap': null, 'flexGrow': 0, 'flexShrink': 0, gap: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.footer = {marginTop: PX_16};
object2.footerWrapper = {marginLeft: -1 * QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL,
object.footer = {marginTop: PX_16};
object.footerWrapper = {marginLeft: -1 * QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL,
marginRight: -1 * QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL};
const env0_14 = Reflect.apply(createStyles, createStylesModule, [object2]);
const env0_14 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(QuestDockEnrolledBody);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockEnrolledBody.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockEnrolledBody.tsx');
exports.default = value;
}
function EnrolledBodyWatchTask({quest}) { // fn#104338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:733, offset: 0x02292bd2, size: 643 bytes, params: 2, frame: 29
const styles = useStyles();
let binding = env0_4;
let useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]);
binding = env0_4;
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const questDockWrapperSpecs = Reflect.apply(useContext, binding, [QuestDockGestureContext]).questDockWrapperSpecs;
const value3 = (importDefault(8621) /* metro dependency 8621: useStateFromSharedValue */)(restingQuestDockMode);
const value4 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
var env0_4 = value4;
env0_4.useEffect(_fun104339, [value3, questDockWrapperSpecs, quest.id, setRestingQuestDockMode, value4]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
const QuestBottomSheetHeader = importDefault(13592) /* metro dependency 13592: QuestBottomSheetHeader */;
const QuestBottomSheetStep = (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetStep;
let TASK_STATUS = QuestBottomSheetStep.TASK_STATUS;
let QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
const items2 = [<View style={styles.headerWrapper}><QuestBottomSheetHeader quest={quest} step={TASK_STATUS} withActionSheet location={QUESTS_BAR_MOBILE} /></View>];
const QuestBottomSheetContent = (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetContent;
QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
TASK_STATUS = QuestBottomSheetStep.TASK_STATUS;
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[1] = <View style={styles.contentWrapper}><QuestBottomSheetContent quest={quest} location={QUESTS_BAR_MOBILE} step={TASK_STATUS} sourceQuestContent={QUEST_BAR_MOBILE} /></View>;
const questBottomSheetFooter = importDefault(13593) /* metro dependency 13593: QuestBottomSheetFooter */;
TASK_STATUS = QuestBottomSheetStep.TASK_STATUS;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[2] = <View style={styles.footerWrapper}>{((Component) => <Component quest={quest} step={TASK_STATUS} style={styles.footer} withSafeArea={false} sourceQuestContent={QUEST_BAR_MOBILE} />)(questBottomSheetFooter)}</View>;
return (
<>
{items2}
</>
);
}
function EnrolledBodyPlayStreamTask({quest}) { // fn#104344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:2070, offset: 0x02292f93, size: 532 bytes, params: 2, frame: 33
const styles = useStyles();
const questBottomSheetModule = require(13591) /* metro dependency 13591: QuestBottomSheet */;
const useEnrolledQuestContentProps = questBottomSheetModule.useEnrolledQuestContentProps;
const object2 = {quest: quest};
let QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
object2.location = QUESTS_BAR_MOBILE;
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
const {step, defibrillator, stepActions, handleTaskSelect,
showMicrophone} = Reflect.apply(useEnrolledQuestContentProps, questBottomSheetModule, [object2]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
const QuestBottomSheetHeader = importDefault(13592) /* metro dependency 13592: QuestBottomSheetHeader */;
QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
const items2 = [<View style={styles.headerWrapper}><QuestBottomSheetHeader quest={quest} step={step} withActionSheet location={QUESTS_BAR_MOBILE} /></View>];
const QuestBottomSheetContent = questBottomSheetModule.QuestBottomSheetContent;
QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[1] = <View style={styles.contentWrapper}><QuestBottomSheetContent defibrillator={defibrillator} quest={quest} handleTaskSelect={handleTaskSelect} location={QUESTS_BAR_MOBILE} showMicrophone={showMicrophone} step={step} sourceQuestContent={QUEST_BAR_MOBILE} /></View>;
const questBottomSheetFooter = importDefault(13593) /* metro dependency 13593: QuestBottomSheetFooter */;
const isActive = defibrillator.isActive;
const onBack = stepActions.onBack;
const start = defibrillator.start;
const onNext = stepActions.onNext;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[2] = <View style={styles.footerWrapper}>{((Component) => <Component quest={quest} step={step} isDefibrilating={isActive} onBack={onBack} onDefib={start} onConnectConsoleNext={onNext} style={styles.footer} withSafeArea={false} sourceQuestContent={QUEST_BAR_MOBILE} />)(questBottomSheetFooter)}</View>;
return (
<>
{items2}
</>
);
}
function QuestDockEnrolledBody({quest}) { // fn#104345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:2980, offset: 0x022931a7, size: 350 bytes, params: 2, frame: 23
const styles = useStyles();
const binding = env0_4;
const useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const minExpandedContentHeight = Reflect.apply(useContext, binding,
[QuestDockGestureContext]).minExpandedContentHeight;
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value2 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDockEnrolledBody');
const value3 = env0_4.useCallback(function(a0) {
var height = a0.nativeEvent.layout.height;
if (minExpandedContentHeight.get() !== height) {
minExpandedContentHeight.set(height);
}
}, [minExpandedContentHeight]);
env0_4.useEffect(function() {
return _fun104348;
}, [minExpandedContentHeight]);
return (
<View
style={[styles.wrapper, value2 ? {paddingBottom: global.Math.max(bottom,
QUEST_DOCK_EXPANDED_PADDING_BOTTOM)} : null]}
onLayout={value3}
>
{(require(7116) /* metro dependency 7116: QuestTaskUtils */).hasWatchVideoTasks(quest) ? <EnrolledBodyWatchTask quest={quest} /> : <EnrolledBodyPlayStreamTask quest={quest} />}
</View>
);
}
function _fun104339() { // fn#104339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:1057, offset: 0x02292e55, size: 40 bytes, params: 1, frame: 9
if (env0_4) {
(function() {
return _maybeOpenVideoQuestModal.apply(this, arguments);
})();
}
}
function _fun104347() { // fn#104347, offset: 0x0229333f, size: 11 bytes, params: 1, frame: 1
return function() {
if (minExpandedContentHeight.get() !== QUEST_DOCK_EXPANDED_HEIGHT) {
minExpandedContentHeight.set(QUEST_DOCK_EXPANDED_HEIGHT);
}
};
}
function _maybeOpenVideoQuestModal() { // fn#104340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:1062, offset: 0x02292e7d, size: 53 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__;
return env2_3(_fun104342).apply(this, arguments);
}
function* _fun104342() { // fn#104342, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:1135, offset: 0x02292ebd, size: 214 bytes, params: 1, frame: 17
var r1;
var binding;
var value4;
var value8;
var binding2;
var value9;
var object2;
if (true) {
value = environment.__proto__.__proto__.__proto__;
var get = dependencyMap.get;
var value3 = Reflect.apply(get, dependencyMap, []).prevDeltaY < 0;
if (value3) {
binding = env3_3;
value4 = environment.__proto__.__proto__.__proto__.__proto__;
r1 = binding === env4_7.RESET_TO_PREVIOUS;
} else {
r1 = value3;
}
r1 = r1 && env4_6.prevRestingQuestDockMode === env4_7.EXPANDED;
if (r1) {
value8 = environment.__proto__.__proto__.__proto__.__proto__;
binding = env4_1;
binding2 = env4_2;
value9 = binding(binding2[13]);
object2 = {};
object2.questId = require.id;
binding = env4_0;
object2.sourceQuestContent = binding(binding2[14]).QuestContent.QUEST_BAR_MOBILE;
yield value9(object2);
if (false) {
return undefined;
function EnrolledBodyWatchTask({quest}) { // fn#104338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:733, offset: 0x02292bd2, size: 643 bytes, params: 2, frame: 29
const styles = useStyles();
let binding = env0_4;
let useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext;
const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]);
binding = env0_4;
useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const questDockWrapperSpecs = Reflect.apply(useContext, binding, [QuestDockGestureContext]).questDockWrapperSpecs;
const value3 = (UseStateFromSharedValue)(restingQuestDockMode);
const value4 = (QuestHooksNativeModule).useHasWatchVideoOnMobileTasks(quest.config);
var env0_4 = value4;
env0_4.useEffect(_fun104339, [value3, questDockWrapperSpecs, quest.id, setRestingQuestDockMode, value4]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
const QuestBottomSheetStep = (QuestBottomSheetModule).QuestBottomSheetStep;
let TASK_STATUS = QuestBottomSheetStep.TASK_STATUS;
let QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
const items2 = [
<View style={styles.headerWrapper}>
<QuestBottomSheetHeader
quest={quest}
step={TASK_STATUS}
withActionSheet
location={QUESTS_BAR_MOBILE}
/>
</View>,
];
const QuestBottomSheetContent = (QuestBottomSheetModule).QuestBottomSheetContent;
QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
TASK_STATUS = QuestBottomSheetStep.TASK_STATUS;
const QuestContent = (QuestTypesModule).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[1] = (
<View style={styles.contentWrapper}>
<QuestBottomSheetContent
quest={quest}
location={QUESTS_BAR_MOBILE}
step={TASK_STATUS}
sourceQuestContent={QUEST_BAR_MOBILE}
/>
</View>
);
TASK_STATUS = QuestBottomSheetStep.TASK_STATUS;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[2] = (
<View style={styles.footerWrapper}>
{((Component) => <Component quest={quest} step={TASK_STATUS} style={styles.footer} withSafeArea={false} sourceQuestContent={QUEST_BAR_MOBILE} />)(QuestBottomSheetFooter)}
</View>
);
return (
<>
{items2}
</>
);
function _fun104339() { // fn#104339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:1057, offset: 0x02292e55, size: 40 bytes, params: 1, frame: 9
if (env0_4) {
(function() {
return _maybeOpenVideoQuestModal.apply(this, arguments);
})();
}
importDefault(env4_7.COLLAPSED);
function _maybeOpenVideoQuestModal() { // fn#104340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:1062, offset: 0x02292e7d, size: 53 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__;
return env2_3(_fun104342).apply(this, arguments);
function* _fun104342() { // fn#104342, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:1135, offset: 0x02292ebd, size: 214 bytes, params: 1, frame: 17
var r1;
var binding;
var value4;
var value8;
var binding2;
var value9;
var object;
if (true) {
value = environment.__proto__.__proto__.__proto__;
var get = dependencyMap.get;
var value3 = Reflect.apply(get, dependencyMap, []).prevDeltaY < 0;
if (value3) {
binding = env3_3;
value4 = environment.__proto__.__proto__.__proto__.__proto__;
r1 = binding === env4_7.RESET_TO_PREVIOUS;
} else {
r1 = value3;
}
r1 = r1 && env4_6.prevRestingQuestDockMode === env4_7.EXPANDED;
if (r1) {
value8 = environment.__proto__.__proto__.__proto__.__proto__;
binding = env4_1;
binding2 = env4_2;
value9 = binding(binding2[13]);
object = {};
object.questId = require.id;
binding = env4_0;
object.sourceQuestContent = binding(binding2[14]).QuestContent.QUEST_BAR_MOBILE;
yield value9(object);
if (false) {
return undefined;
}
importDefault(env4_7.COLLAPSED);
}
}
}
}
}
}
function EnrolledBodyPlayStreamTask({quest}) { // fn#104344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:2070, offset: 0x02292f93, size: 532 bytes, params: 2, frame: 33
const styles = useStyles();
const useEnrolledQuestContentProps = QuestBottomSheetModule.useEnrolledQuestContentProps;
const object = {quest: quest};
let QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
object.location = QUESTS_BAR_MOBILE;
const QuestContent = (QuestTypesModule).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
const {step, defibrillator, stepActions, handleTaskSelect,
showMicrophone} = Reflect.apply(useEnrolledQuestContentProps, QuestBottomSheetModule, [object]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
const items2 = [
<View style={styles.headerWrapper}>
<QuestBottomSheetHeader
quest={quest}
step={step}
withActionSheet
location={QUESTS_BAR_MOBILE}
/>
</View>,
];
const QuestBottomSheetContent = QuestBottomSheetModule.QuestBottomSheetContent;
QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[1] = (
<View style={styles.contentWrapper}>
<QuestBottomSheetContent
defibrillator={defibrillator}
quest={quest}
handleTaskSelect={handleTaskSelect}
location={QUESTS_BAR_MOBILE}
showMicrophone={showMicrophone}
step={step}
sourceQuestContent={QUEST_BAR_MOBILE}
/>
</View>
);
const isActive = defibrillator.isActive;
const onBack = stepActions.onBack;
const start = defibrillator.start;
const onNext = stepActions.onNext;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
items2[2] = (
<View style={styles.footerWrapper}>
{((Component) => <Component quest={quest} step={step} isDefibrilating={isActive} onBack={onBack} onDefib={start} onConnectConsoleNext={onNext} style={styles.footer} withSafeArea={false} sourceQuestContent={QUEST_BAR_MOBILE} />)(QuestBottomSheetFooter)}
</View>
);
return (
<>
{items2}
</>
);
}
function QuestDockEnrolledBody({quest}) { // fn#104345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:2980, offset: 0x022931a7, size: 350 bytes, params: 2, frame: 23
const styles = useStyles();
const binding = env0_4;
const useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const minExpandedContentHeight = Reflect.apply(useContext, binding,
[QuestDockGestureContext]).minExpandedContentHeight;
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value2 = (YouBarExperimentModule).useYouBarEnabled('QuestDockEnrolledBody');
const value3 = env0_4.useCallback(function(a0) {
var height = a0.nativeEvent.layout.height;
if (minExpandedContentHeight.get() !== height) {
minExpandedContentHeight.set(height);
}
}, [minExpandedContentHeight]);
env0_4.useEffect(function() {
return _fun104348;
}, [minExpandedContentHeight]);
return (
<View
style={[styles.wrapper, value2 ? {paddingBottom: global.Math.max(bottom,
QUEST_DOCK_EXPANDED_PADDING_BOTTOM)} : null]}
onLayout={value3}
>
{
(require(7116) /* metro dependency 7116: QuestTaskUtils */).hasWatchVideoTasks(quest)
? (
<EnrolledBodyWatchTask quest={quest} />
)
: (
<EnrolledBodyPlayStreamTask quest={quest} />
)
}
</View>
);
function _fun104347() { // fn#104347, offset: 0x0229333f, size: 11 bytes, params: 1, frame: 1
return function() {
if (minExpandedContentHeight.get() !== QUEST_DOCK_EXPANDED_HEIGHT) {
minExpandedContentHeight.set(QUEST_DOCK_EXPANDED_HEIGHT);
}
};
function _fun104348() { // fn#104348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13860:3287, offset: 0x0229334a, size: 49 bytes, params: 1, frame: 12
if (minExpandedContentHeight.get() !== QUEST_DOCK_EXPANDED_HEIGHT) {
minExpandedContentHeight.set(QUEST_DOCK_EXPANDED_HEIGHT);
}
}
}
}
}
global.__d(_fun104337, 13663, [5, 31, 27, 13570, 6528, 13572, 33, 4501, 697, 13576, 13573, 8621, 13568, 13595, 6531,
13592, 13591, 13593, 1585, 5176, 7116,
2]) /* metro module 13663, dependencies: [5, 31, 27, 13570, 6528, 13572, 33, 4501, 697, 13576, 13573, 8621, 13568, 13595, 6531, 13592, 13591, 13593, 1585, 5176, 7116, 2] */;
@@ -1,49 +1,71 @@
/* Metro module 13660; source: modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx; dependencies: [57, 31, 27, 33, 4501, 13650, 9483, 9950, 6531, 13620, 4573, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import QuestProgressIndicator from '../QuestProgressIndicator.tsx'; /* Metro dependency 13620 */
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as QuestHooksModule from '../../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
import * as QuestCopyHooksModule from '../../hooks/QuestCopyHooks.tsx'; /* Metro dependency 9950 */
function _fun104325(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13857:6, offset: 0x0229198a, size: 275 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_6 = value2.jsx;
const env0_7 = value2.jsxs;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({wrapper: {'alignItems': 'center',
let value = ReactModule;
const env0_8 = (CreateStylesModule).createStyles({wrapper: {'alignItems': 'center',
'display': 'flex', 'flexDirection': 'row', 'flexGrow': 1, 'flexShrink': 1, 'gap': 8, 'justifyContent': 'center',
'padding': 8}, progressIndicatorWrapper: {'flexGrow': 0, 'flexShrink': 0}, copy: {'flexGrow': 1,
'flexShrink': 1}});
value = value.memo(QuestDockEnrolledHeader);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx');
exports.default = value;
function QuestDockEnrolledHeader() { // fn#104326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13857:409, offset: 0x02291a9d, size: 445 bytes, params: 1, frame: 24
const binding = env0_4;
const useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[QuestDockContext]).quest;
const styles = useStyles();
const value2 = (QuestHooksModule).useQuestTaskDetails(quest);
const property = Module00057((QuestHooksModule).useTaskPlatformScreen(quest,
value2), 1)[0];
const value5 = (QuestCopyHooksModule).useQuestBarTitle(quest);
const useQuestBarSubtitle = QuestCopyHooksModule.useQuestBarSubtitle;
const object = {quest: quest, isExpanded: false, activeScreen: property};
const QuestContent = (QuestTypesModule).QuestContent;
const QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
const value6 = Reflect.apply(useQuestBarSubtitle, QuestCopyHooksModule, [object]);
let value = QuestProgressIndicator;
value = (
<View style={styles.progressIndicatorWrapper}>
{((Component) => <Component quest={quest} size="x-sm" progress={value2.percentComplete} loading={false} hasConfetti />)(value)}
</View>
);
const items2 = [value];
const Text = (TextModule).Text;
items2[1] = (
<View style={styles.copy}>
<Text variant="heading-md/semibold" color="mobile-text-heading-primary">
{value5}
</Text>
<Text variant="text-sm/medium" color="text-muted">
{value6}
</Text>
</View>
);
return (
<View style={styles.wrapper}>
{items2}
</View>
);
}
}
function QuestDockEnrolledHeader() { // fn#104326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13857:409, offset: 0x02291a9d, size: 445 bytes, params: 1, frame: 24
const binding = env0_4;
const useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
const styles = useStyles();
const value2 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
const property = env0_3((require(9483) /* metro dependency 9483: QuestHooks */).useTaskPlatformScreen(quest,
value2), 1)[0];
const value5 = (require(9950) /* metro dependency 9950: QuestCopyHooks */).useQuestBarTitle(quest);
const questCopyHooksModule = require(9950) /* metro dependency 9950: QuestCopyHooks */;
const useQuestBarSubtitle = questCopyHooksModule.useQuestBarSubtitle;
const object2 = {quest: quest, isExpanded: false, activeScreen: property};
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
const QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
const value6 = Reflect.apply(useQuestBarSubtitle, questCopyHooksModule, [object2]);
let value = importDefault(13620) /* metro dependency 13620: QuestProgressIndicator */;
value = <View style={styles.progressIndicatorWrapper}>{((Component) => <Component quest={quest} size="x-sm" progress={value2.percentComplete} loading={false} hasConfetti />)(value)}</View>;
const items2 = [value];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <View style={styles.copy}><Text variant="heading-md/semibold" color="mobile-text-heading-primary">{value5}</Text><Text variant="text-sm/medium" color="text-muted">{value6}</Text></View>;
return (
<View style={styles.wrapper}>
{items2}
</View>
);
}
global.__d(_fun104325, 13660, [57, 31, 27, 33, 4501, 13650, 9483, 9950, 6531, 13620, 4573,
2]) /* metro module 13660, dependencies: [57, 31, 27, 33, 4501, 13650, 9483, 9950, 6531, 13620, 4573, 2] */;
@@ -1,369 +1,378 @@
/* Metro module 13576; source: modules/quests/native/QuestDock/QuestDockExternalCoordinationContext.tsx; dependencies: [31, 13570, 6528, 13572, 33, 672, 8142, 4017, 13571, 9484, 477, 2] */
import Durations from '../../../../utils/Durations.tsx'; /* Metro dependency 672 */
import QuestDockStore from './QuestDockStore.tsx'; /* Metro dependency 13570 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as ReanimatedHelperTypesModule from '../../../reanimated/ReanimatedHelperTypes.tsx'; /* Metro dependency 8142 */
import * as QuestDockUtilsModule from './QuestDockUtils.tsx'; /* Metro dependency 13571 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
function _fun103187(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:6, offset: 0x0225b63c, size: 448 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
const QuestDockMode = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const env0_5 = (require(13572) /* metro dependency 13572: QuestDockConstants */).QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
let value = ReactModule;
const QuestDockMode = (QuestConstantsModule).QuestDockMode;
const Millis = (Durations).Millis;
const SECOND = Millis.SECOND;
const env0_7 = 1 * SECOND;
const createContext = value.createContext;
object2 = {};
const reanimatedHelperTypesModule = require(8142) /* metro dependency 8142: ReanimatedHelperTypes */;
const createFakeSharedValue = reanimatedHelperTypesModule.createFakeSharedValue;
object = {};
const createFakeSharedValue = ReanimatedHelperTypesModule.createFakeSharedValue;
const COLLAPSED = QuestDockMode.COLLAPSED;
object2.restingQuestDockMode = Reflect.apply(createFakeSharedValue, reanimatedHelperTypesModule, [COLLAPSED]);
object2.setRestingQuestDockMode = function() {
object.restingQuestDockMode = Reflect.apply(createFakeSharedValue, ReanimatedHelperTypesModule, [COLLAPSED]);
object.setRestingQuestDockMode = function() {
};
object2.lastScrollEventSourceId = reanimatedHelperTypesModule.createFakeSharedValue(null);
object2.questDockOffset = reanimatedHelperTypesModule.createFakeSharedValue(0);
const context = Reflect.apply(createContext, value, [object2]);
object.lastScrollEventSourceId = ReanimatedHelperTypesModule.createFakeSharedValue(null);
object.questDockOffset = ReanimatedHelperTypesModule.createFakeSharedValue(0);
const context = Reflect.apply(createContext, value, [object]);
value = value.memo(QuestDockExternalCoordinationContextProviderInner);
const env0_9 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
object2 = {code: 'function QuestDockExternalCoordinationContextTsx1(){const{restingQuestDockMode}=this.__closure;return restingQuestDockMode.get();}'};
object2 = {code: 'function QuestDockExternalCoordinationContextTsx2(nextMode,prevMode){const{runOnJS,cancelReopenQuestDock}=this.__closure;if(nextMode!==prevMode){runOnJS(cancelReopenQuestDock)();}}'};
object2 = {code: "function QuestDockExternalCoordinationContextTsx3(contentOffsetY,contentHeight,layoutHeight){const{isScrollHandlerEnabled,restingQuestDockMode,QuestDockMode,lastContentOffsetY,lastScrollEventSourceId,id,runOnJS,cancelReopenQuestDock,IS_ANDROID,scheduleReopenQuestDock,setRestingQuestDockMode,QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD}=this.__closure;if(!isScrollHandlerEnabled.get())return;if(restingQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED||restingQuestDockMode.get()===QuestDockMode.EXPANDED){return;}const lastContentOffsetYValue=lastContentOffsetY.get();lastContentOffsetY.set(contentOffsetY);if(lastContentOffsetYValue===contentOffsetY)return;const lastSourceId=lastScrollEventSourceId.get();if(id!=='guilds'){lastScrollEventSourceId.set(id);}const isFirstScrollEvent=id!=='guilds'&&id!==lastSourceId;if(isFirstScrollEvent)return;const isOverscrollingAtTop=contentOffsetY<0&&lastContentOffsetYValue<0;if(isOverscrollingAtTop){runOnJS(cancelReopenQuestDock)();return;}const hasLayoutData=layoutHeight!=null&&contentHeight!=null;const isOverscrollingAtBottom=hasLayoutData&&contentOffsetY+layoutHeight>=contentHeight;if(isOverscrollingAtBottom)return;const isScrolledToTop=contentOffsetY<=0&&(IS_ANDROID||lastContentOffsetYValue<=0);if(isScrolledToTop&&restingQuestDockMode.get()===QuestDockMode.CLOSED){if(IS_ANDROID){runOnJS(scheduleReopenQuestDock)();}else{runOnJS(setRestingQuestDockMode)(QuestDockMode.COLLAPSED);}return;}const isScrollingDown=contentOffsetY>lastContentOffsetYValue&&contentOffsetY>0&&lastContentOffsetYValue>0;const isScrollingUp=contentOffsetY<lastContentOffsetYValue;const scrollDistance=Math.abs(lastContentOffsetYValue-contentOffsetY);if(isScrollingDown&&restingQuestDockMode.get()===QuestDockMode.COLLAPSED){runOnJS(setRestingQuestDockMode)(QuestDockMode.CLOSED);}else if(isScrollingUp&&restingQuestDockMode.get()===QuestDockMode.CLOSED&&scrollDistance>=QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD){runOnJS(scheduleReopenQuestDock)();}}"};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockExternalCoordinationContext.tsx');
const env0_9 = (PlatformUtilsModule).isAndroid();
object = {code: 'function QuestDockExternalCoordinationContextTsx1(){const{restingQuestDockMode}=this.__closure;return restingQuestDockMode.get();}'};
object = {code: 'function QuestDockExternalCoordinationContextTsx2(nextMode,prevMode){const{runOnJS,cancelReopenQuestDock}=this.__closure;if(nextMode!==prevMode){runOnJS(cancelReopenQuestDock)();}}'};
object = {code: "function QuestDockExternalCoordinationContextTsx3(contentOffsetY,contentHeight,layoutHeight){const{isScrollHandlerEnabled,restingQuestDockMode,QuestDockMode,lastContentOffsetY,lastScrollEventSourceId,id,runOnJS,cancelReopenQuestDock,IS_ANDROID,scheduleReopenQuestDock,setRestingQuestDockMode,QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD}=this.__closure;if(!isScrollHandlerEnabled.get())return;if(restingQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED||restingQuestDockMode.get()===QuestDockMode.EXPANDED){return;}const lastContentOffsetYValue=lastContentOffsetY.get();lastContentOffsetY.set(contentOffsetY);if(lastContentOffsetYValue===contentOffsetY)return;const lastSourceId=lastScrollEventSourceId.get();if(id!=='guilds'){lastScrollEventSourceId.set(id);}const isFirstScrollEvent=id!=='guilds'&&id!==lastSourceId;if(isFirstScrollEvent)return;const isOverscrollingAtTop=contentOffsetY<0&&lastContentOffsetYValue<0;if(isOverscrollingAtTop){runOnJS(cancelReopenQuestDock)();return;}const hasLayoutData=layoutHeight!=null&&contentHeight!=null;const isOverscrollingAtBottom=hasLayoutData&&contentOffsetY+layoutHeight>=contentHeight;if(isOverscrollingAtBottom)return;const isScrolledToTop=contentOffsetY<=0&&(IS_ANDROID||lastContentOffsetYValue<=0);if(isScrolledToTop&&restingQuestDockMode.get()===QuestDockMode.CLOSED){if(IS_ANDROID){runOnJS(scheduleReopenQuestDock)();}else{runOnJS(setRestingQuestDockMode)(QuestDockMode.COLLAPSED);}return;}const isScrollingDown=contentOffsetY>lastContentOffsetYValue&&contentOffsetY>0&&lastContentOffsetYValue>0;const isScrollingUp=contentOffsetY<lastContentOffsetYValue;const scrollDistance=Math.abs(lastContentOffsetYValue-contentOffsetY);if(isScrollingDown&&restingQuestDockMode.get()===QuestDockMode.COLLAPSED){runOnJS(setRestingQuestDockMode)(QuestDockMode.CLOSED);}else if(isScrollingUp&&restingQuestDockMode.get()===QuestDockMode.CLOSED&&scrollDistance>=QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD){runOnJS(scheduleReopenQuestDock)();}}"};
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockExternalCoordinationContext.tsx');
exports.QuestDockExternalCoordinationContext = context;
exports.QuestDockExternalCoordinationContextProvider = value;
exports.useExternalScrollEventHandler = useExternalScrollEventHandler;
}
function QuestDockExternalCoordinationContextProviderInner(a0) { // fn#103189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:472, offset: 0x0225b7fc, size: 264 bytes, params: 2, frame: 19
let useSharedValue = ReanimatedRexportModule.useSharedValue;
const value2 = Reflect.apply(useSharedValue, ReanimatedRexportModule, [null]);
const value3 = ReanimatedRexportModule.useSharedValue(0);
useSharedValue = ReanimatedRexportModule.useSharedValue;
const value4 = Reflect.apply(useSharedValue, ReanimatedRexportModule,
[QuestDockUtilsModule.isSoftDismissed(QuestDockStore.questDockSoftDismissedAt) ? QuestDockMode.SOFT_DISMISSED : QuestDockMode.COLLAPSED]);
const binding = value4;
const value6 = binding.useMemo(_fun103191, [value2, value4, binding.useCallback(_fun103190, [value4, value3]),
value3]);
const Provider = env0_8.Provider;
return (
<Provider value={value6}>
{a0.children}
</Provider>
);
function _fun103190(a0) { // fn#103190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:721, offset: 0x0225b904, size: 107 bytes, params: 2, frame: 13
let binding = env0_1;
binding.set(0);
binding = env0_2;
const get = binding.get;
if (Reflect.apply(get, binding, []) !== a0) {
env0_2.set(a0);
}
const value = environment.__proto__;
const RESET_TO_PREVIOUS = QuestDockMode.RESET_TO_PREVIOUS;
if (a0 !== RESET_TO_PREVIOUS) {
(require(9484) /* metro dependency 9484: QuestActionCreators */).updatePrevRestingQuestDockMode(a0);
}
}
function QuestDockExternalCoordinationContextProviderInner(a0) { // fn#103189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:472, offset: 0x0225b7fc, size: 264 bytes, params: 2, frame: 19
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useSharedValue = reanimatedRexportModule.useSharedValue;
const value2 = Reflect.apply(useSharedValue, reanimatedRexportModule, [null]);
const value3 = reanimatedRexportModule.useSharedValue(0);
const moduleValue3 = reanimatedRexportModule;
useSharedValue = moduleValue3.useSharedValue;
const questDockUtilsModule = require(13571) /* metro dependency 13571: QuestDockUtils */;
const value4 = Reflect.apply(useSharedValue, moduleValue3,
[questDockUtilsModule.isSoftDismissed(QuestDockStore.questDockSoftDismissedAt) ? QuestDockMode.SOFT_DISMISSED : QuestDockMode.COLLAPSED]);
const binding = value4;
const value6 = binding.useMemo(_fun103191, [value2, value4, binding.useCallback(_fun103190, [value4, value3]),
value3]);
const Provider = env0_8.Provider;
return (
<Provider value={value6}>
{a0.children}
</Provider>
);
}
function useExternalScrollEventHandler({id}) { // fn#103192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:3587, offset: 0x0225b99a, size: 548 bytes, params: 2, frame: 28
const binding = env0_2;
const {setRestingQuestDockMode, restingQuestDockMode, lastScrollEventSourceId} = binding.useContext(env0_8);
const env0_4 = binding.useRef(-1);
let useCallback = binding.useCallback;
const value3 = Reflect.apply(useCallback, binding, [_fun103193, [setRestingQuestDockMode, restingQuestDockMode]]);
let closure = _fun103195;
const value4 = binding.useCallback(closure, []);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
closure = function() {
return restingQuestDockMode.get();
};
closure.__closure = {restingQuestDockMode: restingQuestDockMode};
closure.__workletHash = 14040596710288;
closure.__initData = env0_10;
const closure2 = useExternalScrollEventHandlerC;
const runOnJS = reanimatedRexportModule.runOnJS;
closure2.__closure = {runOnJS: runOnJS, cancelReopenQuestDock: value4};
closure2.__workletHash = 1848909508809;
closure2.__initData = env0_11;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
const value5 = reanimatedRexportModule.useSharedValue(0);
const value6 = reanimatedRexportModule.useSharedValue(false);
binding.useEffect(_fun103198, [value6]);
useCallback = binding.useCallback;
closure = useExternalScrollEventHandlerT;
closure.__closure = {isScrollHandlerEnabled: value6, restingQuestDockMode: restingQuestDockMode,
QuestDockMode: QuestDockMode, lastContentOffsetY: value5, lastScrollEventSourceId: lastScrollEventSourceId,
id: id, runOnJS: runOnJS, cancelReopenQuestDock: value4, IS_ANDROID: env0_9, scheduleReopenQuestDock: value3,
setRestingQuestDockMode: setRestingQuestDockMode,
QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD: QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD};
closure.__workletHash = 9824540806898;
closure.__initData = env0_12;
return Reflect.apply(useCallback, binding, [closure, [id, value5, lastScrollEventSourceId, restingQuestDockMode,
value3, setRestingQuestDockMode, value4, value6]]);
}
function _fun103190(a0) { // fn#103190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:721, offset: 0x0225b904, size: 107 bytes, params: 2, frame: 13
let binding = env0_1;
binding.set(0);
binding = env0_2;
const get = binding.get;
if (Reflect.apply(get, binding, []) !== a0) {
env0_2.set(a0);
}
const value = environment.__proto__;
const RESET_TO_PREVIOUS = QuestDockMode.RESET_TO_PREVIOUS;
if (a0 !== RESET_TO_PREVIOUS) {
(require(9484) /* metro dependency 9484: QuestActionCreators */).updatePrevRestingQuestDockMode(a0);
}
}
function _fun103191() { // fn#103191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:845, offset: 0x0225b96f, size: 43 bytes, params: 1, frame: 3
return {lastScrollEventSourceId: env0_0, restingQuestDockMode: env0_2, setRestingQuestDockMode: env0_3,
questDockOffset: env0_1};
}
function _fun103193() { // fn#103193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:3773, offset: 0x0225bbbe, size: 98 bytes, params: 1, frame: 14
var window;
if (env0_4.current !== -1) {
window = global.window;
window.clearTimeout(env0_4.current);
}
env0_4.current = global.window.setTimeout(function() {
if (restingQuestDockMode.get() !== QuestDockMode.EXPANDED) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
function _fun103191() { // fn#103191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:845, offset: 0x0225b96f, size: 43 bytes, params: 1, frame: 3
return {lastScrollEventSourceId: env0_0, restingQuestDockMode: env0_2, setRestingQuestDockMode: env0_3,
questDockOffset: env0_1};
}
}, 500);
}
function _fun103195() { // fn#103195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:3929, offset: 0x0225bc5a, size: 54 bytes, params: 1, frame: 11
var window;
if (env0_4.current !== -1) {
window = global.window;
window.clearTimeout(env0_4.current);
}
}
function useExternalScrollEventHandlerC(a0, a1) { // fn#103197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4119, owner: useExternalScrollEventHandler.c, offset: 0x0225bc90, size: 60 bytes, params: 3, frame: 12
var value;
if (a0 !== a1) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(env0_6)();
}
}
function useExternalScrollEventHandler({id}) { // fn#103192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:3587, offset: 0x0225b99a, size: 548 bytes, params: 2, frame: 28
const binding = env0_2;
const {setRestingQuestDockMode, restingQuestDockMode, lastScrollEventSourceId} = binding.useContext(env0_8);
const env0_4 = binding.useRef(-1);
let useCallback = binding.useCallback;
const value3 = Reflect.apply(useCallback, binding, [_fun103193, [setRestingQuestDockMode, restingQuestDockMode]]);
let closure = _fun103195;
const value4 = binding.useCallback(closure, []);
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
closure = function() {
return restingQuestDockMode.get();
};
closure.__closure = {restingQuestDockMode: restingQuestDockMode};
closure.__workletHash = 14040596710288;
closure.__initData = env0_10;
const useExternalScrollEventHandlerC2 = useExternalScrollEventHandlerC;
const runOnJS = ReanimatedRexportModule.runOnJS;
useExternalScrollEventHandlerC2.__closure = {runOnJS: runOnJS, cancelReopenQuestDock: value4};
useExternalScrollEventHandlerC2.__workletHash = 1848909508809;
useExternalScrollEventHandlerC2.__initData = env0_11;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure, useExternalScrollEventHandlerC2]);
const value5 = ReanimatedRexportModule.useSharedValue(0);
const value6 = ReanimatedRexportModule.useSharedValue(false);
binding.useEffect(_fun103198, [value6]);
useCallback = binding.useCallback;
closure = useExternalScrollEventHandlerT;
closure.__closure = {isScrollHandlerEnabled: value6, restingQuestDockMode: restingQuestDockMode,
QuestDockMode: QuestDockMode, lastContentOffsetY: value5, lastScrollEventSourceId: lastScrollEventSourceId,
id: id, runOnJS: runOnJS, cancelReopenQuestDock: value4, IS_ANDROID: env0_9, scheduleReopenQuestDock: value3,
setRestingQuestDockMode: setRestingQuestDockMode,
QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD: QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD};
closure.__workletHash = 9824540806898;
closure.__initData = env0_12;
return Reflect.apply(useCallback, binding, [closure, [id, value5, lastScrollEventSourceId, restingQuestDockMode,
value3, setRestingQuestDockMode, value4, value6]]);
function _fun103193() { // fn#103193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:3773, offset: 0x0225bbbe, size: 98 bytes, params: 1, frame: 14
var window;
if (env0_4.current !== -1) {
window = global.window;
window.clearTimeout(env0_4.current);
}
env0_4.current = global.window.setTimeout(function() {
if (restingQuestDockMode.get() !== QuestDockMode.EXPANDED) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
}
}, 500);
}
function _fun103198() { // fn#103198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4355, offset: 0x0225bccc, size: 45 bytes, params: 1, frame: 14
const env0_0 = global.setTimeout(_fun103199, env1_7);
return _fun103200;
}
function _fun103195() { // fn#103195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:3929, offset: 0x0225bc5a, size: 54 bytes, params: 1, frame: 11
var window;
if (env0_4.current !== -1) {
window = global.window;
window.clearTimeout(env0_4.current);
}
}
function useExternalScrollEventHandlerT(a0, a1, a2) { // fn#103201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4451, owner: useExternalScrollEventHandler.T, offset: 0x0225bd10, size: 595 bytes, params: 4, frame: 19
var r2;
var restingQuestDockModeBinding;
var value2;
var value3;
var SOFT_DISMISSED;
var value4;
var EXPANDED;
var value5;
var set;
var lastScrollEventSourceIdBinding;
var value6;
var value7;
var CLOSED;
var Math;
var abs;
var value8;
var value9;
var COLLAPSED;
var value10;
var value11;
var value12;
var value13;
var moduleValue;
var runOnJS;
var moduleValue2;
var moduleValue3;
var moduleValue4;
let value = environment;
let binding = env0_8;
let get = binding.get;
reducibleJoin32: while (true) {
if (Reflect.apply(get, binding, [])) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value2 = Reflect.apply(get, restingQuestDockModeBinding, []);
value3 = environment.__proto__;
SOFT_DISMISSED = QuestDockMode.SOFT_DISMISSED;
if (value2 === SOFT_DISMISSED) {
break reducibleJoin32;
function useExternalScrollEventHandlerC(a0, a1) { // fn#103197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4119, owner: useExternalScrollEventHandler.c, offset: 0x0225bc90, size: 60 bytes, params: 3, frame: 12
var value;
if (a0 !== a1) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value.runOnJS(JsxRuntimeModule.jsx)();
}
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value4 = Reflect.apply(get, restingQuestDockModeBinding, []);
EXPANDED = QuestDockMode.EXPANDED;
if (value4 === EXPANDED) {
break reducibleJoin32;
}
function _fun103198() { // fn#103198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4355, offset: 0x0225bccc, size: 45 bytes, params: 1, frame: 14
const env0_0 = global.setTimeout(_fun103199, env1_7);
return _fun103200;
function _fun103199() { // fn#103199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4378, offset: 0x0225bcf9, size: 23 bytes, params: 1, frame: 11
env1_8.set(true);
}
binding = env0_7;
get = binding.get;
value5 = Reflect.apply(get, binding, []);
set = binding.set;
Reflect.apply(set, binding, [a0]);
if (value5 === a0) {
break reducibleJoin32;
function _fun103200() { // fn#103200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4404, offset: 0x00e59c84, size: 24 bytes, params: 1, frame: 11
global.clearTimeout(env0_0);
}
lastScrollEventSourceIdBinding = lastScrollEventSourceId;
get = lastScrollEventSourceIdBinding.get;
value6 = Reflect.apply(get, lastScrollEventSourceIdBinding, []);
reducibleJoin6: while (true) {
if (id === 'guilds') {
break reducibleJoin6;
}
lastScrollEventSourceIdBinding = lastScrollEventSourceId;
set = lastScrollEventSourceIdBinding.set;
Reflect.apply(set, lastScrollEventSourceIdBinding, [id]);
break reducibleJoin6;
}
if (id !== 'guilds') {
if (id !== value6) {
break reducibleJoin32;
}
}
if (a0 < 0) {
if (value5 < 0) {
moduleValue4 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue4.runOnJS;
Reflect.apply(runOnJS, moduleValue4, [env0_6])();
break reducibleJoin32;
}
}
if (a2 != null) {
if (a1 != null) {
if (a0 + a2 >= a1) {
}
function useExternalScrollEventHandlerT(a0, a1, a2) { // fn#103201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4451, owner: useExternalScrollEventHandler.T, offset: 0x0225bd10, size: 595 bytes, params: 4, frame: 19
var r2;
var restingQuestDockModeBinding;
var value2;
var value3;
var SOFT_DISMISSED;
var value4;
var EXPANDED;
var value5;
var set;
var lastScrollEventSourceIdBinding;
var value6;
var value7;
var CLOSED;
var Math;
var abs;
var value8;
var value9;
var COLLAPSED;
var value10;
var value11;
var value12;
var value13;
var moduleValue;
var runOnJS;
var moduleValue2;
var moduleValue3;
var moduleValue4;
let value = environment;
let binding = env0_8;
let get = binding.get;
reducibleJoin32: while (true) {
if (Reflect.apply(get, binding, [])) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value2 = Reflect.apply(get, restingQuestDockModeBinding, []);
value3 = environment.__proto__;
SOFT_DISMISSED = QuestDockMode.SOFT_DISMISSED;
if (value2 === SOFT_DISMISSED) {
break reducibleJoin32;
}
}
}
if (a0 <= 0) {
if (!env1_9) {
if (!(value5 <= 0)) {
Math = global.Math;
value8 = Math.abs(value5 - a0);
if (a0 > value5) {
if (a0 > 0) {
if (value5 > 0) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value9 = Reflect.apply(get, restingQuestDockModeBinding, []);
COLLAPSED = QuestDockMode.COLLAPSED;
if (value9 === COLLAPSED) {
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue2.runOnJS;
value = Reflect.apply(runOnJS, moduleValue2, [setRestingQuestDockMode]);
CLOSED = QuestDockMode.CLOSED;
value(CLOSED);
break reducibleJoin32;
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value4 = Reflect.apply(get, restingQuestDockModeBinding, []);
EXPANDED = QuestDockMode.EXPANDED;
if (value4 === EXPANDED) {
break reducibleJoin32;
}
binding = env0_7;
get = binding.get;
value5 = Reflect.apply(get, binding, []);
set = binding.set;
Reflect.apply(set, binding, [a0]);
if (value5 === a0) {
break reducibleJoin32;
}
lastScrollEventSourceIdBinding = lastScrollEventSourceId;
get = lastScrollEventSourceIdBinding.get;
value6 = Reflect.apply(get, lastScrollEventSourceIdBinding, []);
reducibleJoin6: while (true) {
if (id === 'guilds') {
break reducibleJoin6;
}
lastScrollEventSourceIdBinding = lastScrollEventSourceId;
set = lastScrollEventSourceIdBinding.set;
Reflect.apply(set, lastScrollEventSourceIdBinding, [id]);
break reducibleJoin6;
}
if (id !== 'guilds') {
if (id !== value6) {
break reducibleJoin32;
}
}
if (a0 < 0) {
if (value5 < 0) {
moduleValue4 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue4.runOnJS;
Reflect.apply(runOnJS, moduleValue4, [JsxRuntimeModule.jsx])();
break reducibleJoin32;
}
}
if (a2 != null) {
if (a1 != null) {
if (a0 + a2 >= a1) {
break reducibleJoin32;
}
}
}
if (a0 <= 0) {
if (!env1_9) {
if (!(value5 <= 0)) {
Math = global.Math;
value8 = Math.abs(value5 - a0);
if (a0 > value5) {
if (a0 > 0) {
if (value5 > 0) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value9 = Reflect.apply(get, restingQuestDockModeBinding, []);
COLLAPSED = QuestDockMode.COLLAPSED;
if (value9 === COLLAPSED) {
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue2.runOnJS;
value = Reflect.apply(runOnJS, moduleValue2, [setRestingQuestDockMode]);
CLOSED = QuestDockMode.CLOSED;
value(CLOSED);
break reducibleJoin32;
}
}
}
}
value10 = a0 < value5;
reducibleJoin23: while (true) {
if (value10) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value11 = Reflect.apply(get, restingQuestDockModeBinding, []);
CLOSED = QuestDockMode.CLOSED;
value12 = value11 === CLOSED;
r2 = value12;
break reducibleJoin23;
}
r2 = value10;
break reducibleJoin23;
}
reducibleJoin25: while (true) {
if (r2) {
value13 = value8 >= QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD;
r2 = value13;
break reducibleJoin25;
}
break reducibleJoin25;
}
if (r2) {
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue.runOnJS;
Reflect.apply(runOnJS, moduleValue, [QuestDockConstantsModule.QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD])();
break reducibleJoin32;
}
break reducibleJoin32;
}
}
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value7 = Reflect.apply(get, restingQuestDockModeBinding, []);
CLOSED = QuestDockMode.CLOSED;
if (value7 === CLOSED) {
binding = env1_9;
moduleValue3 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue3.runOnJS;
if (binding) {
Reflect.apply(runOnJS, moduleValue3, [QuestDockConstantsModule.QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD])();
break reducibleJoin32;
}
value = Reflect.apply(runOnJS, moduleValue3, [setRestingQuestDockMode]);
COLLAPSED = QuestDockMode.COLLAPSED;
value(COLLAPSED);
break reducibleJoin32;
}
}
Math = global.Math;
abs = Math.abs;
value8 = Reflect.apply(abs, Math, [value5 - a0]);
if (a0 > value5) {
if (a0 > 0) {
if (value5 > 0) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value9 = Reflect.apply(get, restingQuestDockModeBinding, []);
COLLAPSED = QuestDockMode.COLLAPSED;
if (value9 === COLLAPSED) {
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue2.runOnJS;
value = Reflect.apply(runOnJS, moduleValue2, [setRestingQuestDockMode]);
CLOSED = QuestDockMode.CLOSED;
value(CLOSED);
break reducibleJoin32;
}
}
}
value10 = a0 < value5;
reducibleJoin23: while (true) {
if (value10) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value11 = Reflect.apply(get, restingQuestDockModeBinding, []);
CLOSED = QuestDockMode.CLOSED;
value12 = value11 === CLOSED;
r2 = value12;
break reducibleJoin23;
}
r2 = value10;
}
value10 = a0 < value5;
reducibleJoin23: while (true) {
if (value10) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value11 = Reflect.apply(get, restingQuestDockModeBinding, []);
CLOSED = QuestDockMode.CLOSED;
value12 = value11 === CLOSED;
r2 = value12;
break reducibleJoin23;
}
reducibleJoin25: while (true) {
if (r2) {
value13 = value8 >= QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD;
r2 = value13;
break reducibleJoin25;
}
r2 = value10;
break reducibleJoin23;
}
reducibleJoin25: while (true) {
if (r2) {
value13 = value8 >= QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD;
r2 = value13;
break reducibleJoin25;
}
if (r2) {
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue.runOnJS;
Reflect.apply(runOnJS, moduleValue, [env0_5])();
break reducibleJoin32;
}
break reducibleJoin25;
}
if (r2) {
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue.runOnJS;
Reflect.apply(runOnJS, moduleValue, [QuestDockConstantsModule.QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD])();
break reducibleJoin32;
}
}
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value7 = Reflect.apply(get, restingQuestDockModeBinding, []);
CLOSED = QuestDockMode.CLOSED;
if (value7 === CLOSED) {
binding = env1_9;
moduleValue3 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue3.runOnJS;
if (binding) {
Reflect.apply(runOnJS, moduleValue3, [env0_5])();
break reducibleJoin32;
}
value = Reflect.apply(runOnJS, moduleValue3, [setRestingQuestDockMode]);
COLLAPSED = QuestDockMode.COLLAPSED;
value(COLLAPSED);
break reducibleJoin32;
}
}
Math = global.Math;
abs = Math.abs;
value8 = Reflect.apply(abs, Math, [value5 - a0]);
if (a0 > value5) {
if (a0 > 0) {
if (value5 > 0) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value9 = Reflect.apply(get, restingQuestDockModeBinding, []);
COLLAPSED = QuestDockMode.COLLAPSED;
if (value9 === COLLAPSED) {
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue2.runOnJS;
value = Reflect.apply(runOnJS, moduleValue2, [setRestingQuestDockMode]);
CLOSED = QuestDockMode.CLOSED;
value(CLOSED);
break reducibleJoin32;
}
}
}
}
value10 = a0 < value5;
reducibleJoin23: while (true) {
if (value10) {
restingQuestDockModeBinding = restingQuestDockMode;
get = restingQuestDockModeBinding.get;
value11 = Reflect.apply(get, restingQuestDockModeBinding, []);
CLOSED = QuestDockMode.CLOSED;
value12 = value11 === CLOSED;
r2 = value12;
break reducibleJoin23;
}
r2 = value10;
break reducibleJoin23;
}
reducibleJoin25: while (true) {
if (r2) {
value13 = value8 >= QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD;
r2 = value13;
break reducibleJoin25;
}
break reducibleJoin25;
}
if (r2) {
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
runOnJS = moduleValue.runOnJS;
Reflect.apply(runOnJS, moduleValue, [env0_5])();
break reducibleJoin32;
}
break reducibleJoin32;
}
break reducibleJoin32;
}
}
function _fun103199() { // fn#103199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13766:4378, offset: 0x0225bcf9, size: 23 bytes, params: 1, frame: 11
env1_8.set(true);
}
global.__d(_fun103187, 13576, [31, 13570, 6528, 13572, 33, 672, 8142, 4017, 13571, 9484, 477,
2]) /* metro module 13576, dependencies: [31, 13570, 6528, 13572, 33, 672, 8142, 4017, 13571, 9484, 477, 2] */;
@@ -1,108 +1,115 @@
/* Metro module 13573; source: modules/quests/native/QuestDock/QuestDockGestureContext.tsx; dependencies: [31, 13570, 6528, 13572, 7553, 33, 8142, 1478, 13574, 4017, 5176, 13571, 1585, 11534, 2] */
import SubscribeToWindowDimensionsNative from '../../../screen/subscribeToWindowDimensions.native.tsx'; /* Metro dependency 11534 */
import QuestDockStore from './QuestDockStore.tsx'; /* Metro dependency 13570 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseWindowDimensionsNativeModule from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as YouBarConstantsModule from '../../../main_tabs_v2/native/YouBarConstants.tsx'; /* Metro dependency 7553 */
import * as ReanimatedHelperTypesModule from '../../../reanimated/ReanimatedHelperTypes.tsx'; /* Metro dependency 8142 */
import * as QuestDockUtilsModule from './QuestDockUtils.tsx'; /* Metro dependency 13571 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as UseTabsVisibleModule from '../../../main_tabs_v2/native/utils/useTabsVisible.tsx'; /* Metro dependency 13574 */
function _fun103170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:6, offset: 0x0225add6, size: 404 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
const QuestDockMode = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
const env0_6 = questDockConstantsModule.QUEST_DOCK_COLLAPSED_HEIGHT;
const env0_7 = questDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT;
const env0_8 = (require(7553) /* metro dependency 7553: YouBarConstants */).useYouBarHorizontalMargin;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
const QuestDockMode = (QuestConstantsModule).QuestDockMode;
const createContext = value.createContext;
object2 = {};
const reanimatedHelperTypesModule = require(8142) /* metro dependency 8142: ReanimatedHelperTypes */;
let createFakeSharedValue = reanimatedHelperTypesModule.createFakeSharedValue;
object2.questDockWrapperSpecs = Reflect.apply(createFakeSharedValue, reanimatedHelperTypesModule, [{'width': 0,
object = {};
let createFakeSharedValue = ReanimatedHelperTypesModule.createFakeSharedValue;
object.questDockWrapperSpecs = Reflect.apply(createFakeSharedValue, ReanimatedHelperTypesModule, [{'width': 0,
'height': 0, 'x': 0, 'y': 0, 'prevDeltaY': 0}]);
object2.windowDimensions = reanimatedHelperTypesModule.createFakeSharedValue({'width': 0, 'height': 0,
object.windowDimensions = ReanimatedHelperTypesModule.createFakeSharedValue({'width': 0, 'height': 0,
'maxContentHeight': 0, 'landscape': false});
const value5 = reanimatedHelperTypesModule;
createFakeSharedValue = value5.createFakeSharedValue;
createFakeSharedValue = ReanimatedHelperTypesModule.createFakeSharedValue;
const COLLAPSED = QuestDockMode.COLLAPSED;
object2.activeQuestDockMode = Reflect.apply(createFakeSharedValue, value5, [COLLAPSED]);
object2.minExpandedContentHeight = reanimatedHelperTypesModule.createFakeSharedValue(0);
const context = Reflect.apply(createContext, value, [object2]);
object.activeQuestDockMode = Reflect.apply(createFakeSharedValue, ReanimatedHelperTypesModule, [COLLAPSED]);
object.minExpandedContentHeight = ReanimatedHelperTypesModule.createFakeSharedValue(0);
const context = Reflect.apply(createContext, value, [object]);
value = value.memo(QuestDockGestureContextProviderInner);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockGestureContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockGestureContext.tsx');
exports.QuestDockGestureContext = context;
exports.QuestDockGestureContextProvider = value;
}
function QuestDockGestureContextProviderInner(a0) { // fn#103171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:611, offset: 0x0225af6a, size: 650 bytes, params: 2, frame: 29
var r10;
var r8;
var moduleValue6;
var moduleValue7;
let binding = env0_3;
const useMemo = binding.useMemo;
const getWindowDimensions = (UseWindowDimensionsNativeModule).getWindowDimensions;
const value2 = Reflect.apply(useMemo, binding, [getWindowDimensions, []]);
const value3 = (UseTabsVisibleModule).useMainTabsHeight({'enabled': true,
'ignoreQuestDock': true});
const env0_1 = binding.useRef(value3);
let useSharedValue = ReanimatedRexportModule.useSharedValue;
let width = value2.width;
const value4 = Reflect.apply(useSharedValue, ReanimatedRexportModule, [{width: width, height: value2.height,
landscape: value2.width > value2.height, maxContentHeight: value2.height - value3}]);
const value5 = (YouBarExperimentModule).useYouBarEnabled('QuestDockGestureContext');
const value6 = useYouBarHorizontalMargin();
useSharedValue = ReanimatedRexportModule.useSharedValue;
const getQuestDockCollapsedWidth = QuestDockUtilsModule.getQuestDockCollapsedWidth;
width = value2.width;
if (value5) {
r10 = value6;
} else {
moduleValue6 = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
r10 = moduleValue6.getSafeAreaInsets().left;
}
if (value5) {
r8 = value6;
} else {
moduleValue7 = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
r8 = moduleValue7.getSafeAreaInsets().right;
}
const QUEST_DOCK_COLLAPSED_HEIGHT2 = value5 ? -8 : QUEST_DOCK_COLLAPSED_HEIGHT;
const value8 = Reflect.apply(useSharedValue, ReanimatedRexportModule, [{width: Reflect.apply(getQuestDockCollapsedWidth,
QuestDockUtilsModule, [width, r10, r8]), height: QUEST_DOCK_COLLAPSED_HEIGHT, x: 0,
y: QUEST_DOCK_COLLAPSED_HEIGHT2, prevDeltaY: 0}]);
var env0_3 = value8;
useSharedValue = ReanimatedRexportModule.useSharedValue;
const value9 = Reflect.apply(useSharedValue, ReanimatedRexportModule,
[QuestDockUtilsModule.isSoftDismissed(QuestDockStore.questDockSoftDismissedAt) ? QuestDockMode.SOFT_DISMISSED : QuestDockMode.COLLAPSED]);
const value10 = ReanimatedRexportModule.useSharedValue(QUEST_DOCK_EXPANDED_HEIGHT);
binding = env0_3;
binding.useEffect(_fun103172, [value3]);
binding.useEffect(_fun103173, [value4]);
const value11 = binding.useMemo(_fun103175, [value4, value8, value9, value10]);
const Provider = env0_10.Provider;
return (
<Provider value={value11}>
{a0.children}
</Provider>
);
function _fun103172() { // fn#103172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1297, offset: 0x00e655cf, size: 21 bytes, params: 1, frame: 2
env0_1.current = env0_0;
}
function _fun103173() { // fn#103173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1334, offset: 0x0225b1f4, size: 41 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
return (SubscribeToWindowDimensionsNative)(_fun103174);
function _fun103174({width, height}) { // fn#103174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1348, offset: 0x0225b21d, size: 71 bytes, params: 2, frame: 15
env1_2.set({width: width, height: height, landscape: width > height, maxContentHeight: height - env1_1.current});
}
}
function _fun103175() { // fn#103175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1466, offset: 0x0225b264, size: 43 bytes, params: 1, frame: 3
return {windowDimensions: env0_2, questDockWrapperSpecs: env0_3, activeQuestDockMode: env0_4,
minExpandedContentHeight: env0_5};
}
function QuestDockGestureContextProviderInner(a0) { // fn#103171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:611, offset: 0x0225af6a, size: 650 bytes, params: 2, frame: 29
var r10;
var r8;
var moduleValue6;
var moduleValue7;
let binding = env0_3;
const useMemo = binding.useMemo;
const getWindowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions;
const value2 = Reflect.apply(useMemo, binding, [getWindowDimensions, []]);
const value3 = (require(13574) /* metro dependency 13574: useTabsVisible */).useMainTabsHeight({'enabled': true,
'ignoreQuestDock': true});
const env0_1 = binding.useRef(value3);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useSharedValue = reanimatedRexportModule.useSharedValue;
let width = value2.width;
const value4 = Reflect.apply(useSharedValue, reanimatedRexportModule, [{width: width, height: value2.height,
landscape: value2.width > value2.height, maxContentHeight: value2.height - value3}]);
const value5 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDockGestureContext');
const value6 = useYouBarHorizontalMargin();
const moduleValue4 = reanimatedRexportModule;
useSharedValue = moduleValue4.useSharedValue;
const questDockUtilsModule = require(13571) /* metro dependency 13571: QuestDockUtils */;
const getQuestDockCollapsedWidth = questDockUtilsModule.getQuestDockCollapsedWidth;
width = value2.width;
if (value5) {
r10 = value6;
} else {
moduleValue6 = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
r10 = moduleValue6.getSafeAreaInsets().left;
}
if (value5) {
r8 = value6;
} else {
moduleValue7 = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
r8 = moduleValue7.getSafeAreaInsets().right;
}
const QUEST_DOCK_COLLAPSED_HEIGHT2 = value5 ? -8 : QUEST_DOCK_COLLAPSED_HEIGHT;
const value8 = Reflect.apply(useSharedValue, moduleValue4, [{width: Reflect.apply(getQuestDockCollapsedWidth,
questDockUtilsModule, [width, r10, r8]), height: QUEST_DOCK_COLLAPSED_HEIGHT, x: 0,
y: QUEST_DOCK_COLLAPSED_HEIGHT2, prevDeltaY: 0}]);
var env0_3 = value8;
const moduleValue8 = reanimatedRexportModule;
useSharedValue = moduleValue8.useSharedValue;
const moduleValue9 = questDockUtilsModule;
const value9 = Reflect.apply(useSharedValue, moduleValue8,
[moduleValue9.isSoftDismissed(QuestDockStore.questDockSoftDismissedAt) ? QuestDockMode.SOFT_DISMISSED : QuestDockMode.COLLAPSED]);
const value10 = reanimatedRexportModule.useSharedValue(QUEST_DOCK_EXPANDED_HEIGHT);
binding = env0_3;
binding.useEffect(_fun103172, [value3]);
binding.useEffect(_fun103173, [value4]);
const value11 = binding.useMemo(_fun103175, [value4, value8, value9, value10]);
const Provider = env0_10.Provider;
return (
<Provider value={value11}>
{a0.children}
</Provider>
);
}
function _fun103173() { // fn#103173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1334, offset: 0x0225b1f4, size: 41 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
return (importDefault(11534) /* metro dependency 11534: subscribeToWindowDimensionsNative */)(_fun103174);
}
function _fun103175() { // fn#103175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1466, offset: 0x0225b264, size: 43 bytes, params: 1, frame: 3
return {windowDimensions: env0_2, questDockWrapperSpecs: env0_3, activeQuestDockMode: env0_4,
minExpandedContentHeight: env0_5};
}
function _fun103174({width, height}) { // fn#103174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13763:1348, offset: 0x0225b21d, size: 71 bytes, params: 2, frame: 15
env1_2.set({width: width, height: height, landscape: width > height, maxContentHeight: height - env1_1.current});
}
global.__d(_fun103170, 13573, [31, 13570, 6528, 13572, 7553, 33, 8142, 1478, 13574, 4017, 5176, 13571, 1585, 11534,
2]) /* metro module 13573, dependencies: [31, 13570, 6528, 13572, 7553, 33, 8142, 1478, 13574, 4017, 5176, 13571, 1585, 11534, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,13 +1,27 @@
/* Metro module 13569; source: modules/quests/native/QuestDock/QuestDockHooks.tsx; dependencies: [57, 31, 13570, 6528, 13572, 7553, 13573, 13576, 11281, 5176, 4017, 7739, 13571, 566, 672, 9949, 9513, 9519, 9517, 9518, 7121, 7120, 6531, 4080, 13577, 1962, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Durations from '../../../../utils/Durations.tsx'; /* Metro dependency 672 */
import UseSafeAreaInsetsSharedValueNative from '../../../safe_area/useSafeAreaInsetsSharedValue.native.tsx'; /* Metro dependency 11281 */
import QuestDockStore from './QuestDockStore.tsx'; /* Metro dependency 13570 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as CheapWorkletShallowEqualModule from '../../../reanimated/native/cheapWorkletShallowEqual.tsx'; /* Metro dependency 7739 */
import * as ContentImpressionTrackerHooksModule from '../../lib/analytics/ContentImpressionTrackerHooks.tsx'; /* Metro dependency 9513 */
import * as AnalyticsHooksModule from '../../lib/analytics/AnalyticsHooks.tsx'; /* Metro dependency 9949 */
import * as QuestDockUtilsModule from './QuestDockUtils.tsx'; /* Metro dependency 13571 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
import * as QuestDockExternalCoordinationContextModule from './QuestDockExternalCoordinationContext.tsx'; /* Metro dependency 13576 */
function _fun103128(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6, offset: 0x02259705, size: 390 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
const env0_6 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
let value = require(13572) /* metro dependency 13572: QuestDockConstants */;
let value = QuestDockConstantsModule;
const env0_7 = value.QUEST_DOCK_CLOSED_HEIGHT;
const env0_8 = value.QUEST_DOCK_COLLAPSED_HEIGHT;
const env0_9 = value.QUEST_DOCK_EXTERNAL_OFFSET_CLOSED;
@@ -23,329 +37,349 @@ function _fun103128(global, require, importDefault, importAll, module, exports,
const env0_18 = value.useYouBarTotalHeight;
object = {code: 'function QuestDockHooksTsx1(){const{restingQuestDockMode,minExpandedContentHeight,windowDimensions,safeArea}=this.__closure;return{restingQuestDockMode:restingQuestDockMode.get(),minExpandedContentHeight:minExpandedContentHeight.get(),windowWidth:windowDimensions.get().width,windowHeight:windowDimensions.get().height,safeArea:safeArea.get()};}'};
object = {code: 'function QuestDockHooksTsx2(props,previous){const{cheapWorkletShallowEqual,QuestDockMode,runOnJS,setRestingQuestDockMode,questDockWrapperSpecs,youBarEnabled,QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED,getQuestDockCollapsedWidth,youBarHorizontalMargin,QUEST_DOCK_COLLAPSED_HEIGHT,activeQuestDockMode,QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED,getQuestDockClosedWidth,QUEST_DOCK_CLOSED_HEIGHT,getQuestDockExpandedHeightLimits,youBarHeight,QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED,getQuestDockExpandedWidth}=this.__closure;var _previous$restingQues;if(cheapWorkletShallowEqual(props,previous!==null&&previous!==void 0?previous:undefined))return;const{restingQuestDockMode:restingQuestDockMode,minExpandedContentHeight:minExpandedContentHeight,windowWidth:windowWidth,windowHeight:windowHeight,safeArea:safeArea}=props;switch(restingQuestDockMode){case QuestDockMode.RESET_TO_PREVIOUS:runOnJS(setRestingQuestDockMode)((_previous$restingQues=previous===null||previous===void 0?void 0:previous.restingQuestDockMode)!==null&&_previous$restingQues!==void 0?_previous$restingQues:QuestDockMode.COLLAPSED);return;case QuestDockMode.COLLAPSED:questDockWrapperSpecs.set({...questDockWrapperSpecs.get(),x:0,y:youBarEnabled?0:QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED*-1,width:getQuestDockCollapsedWidth(windowWidth,youBarEnabled?youBarHorizontalMargin:safeArea.left,youBarEnabled?youBarHorizontalMargin:safeArea.right),height:QUEST_DOCK_COLLAPSED_HEIGHT});activeQuestDockMode.set(QuestDockMode.COLLAPSED);break;case QuestDockMode.CLOSED:case QuestDockMode.SOFT_DISMISSED:questDockWrapperSpecs.set({...questDockWrapperSpecs.get(),x:0,y:youBarEnabled?0:QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED*-1,width:getQuestDockClosedWidth(windowWidth,youBarEnabled?youBarHorizontalMargin:safeArea.left,youBarEnabled?youBarHorizontalMargin:safeArea.right),height:QUEST_DOCK_CLOSED_HEIGHT});activeQuestDockMode.set(restingQuestDockMode);break;case QuestDockMode.EXPANDED:const minContentHeight=minExpandedContentHeight;const{minHeight:minHeight,maxHeight:maxHeight}=getQuestDockExpandedHeightLimits(windowHeight,safeArea.top,minContentHeight);const heightMidpoint=(maxHeight+minHeight)/2;let height;if(questDockWrapperSpecs.get().height<=QUEST_DOCK_COLLAPSED_HEIGHT){height=maxHeight;}else if(previous!=null&&questDockWrapperSpecs.get().height===getQuestDockExpandedHeightLimits(previous.windowHeight,previous.safeArea.top,minContentHeight).maxHeight){height=maxHeight;}else if(questDockWrapperSpecs.get().height>=heightMidpoint){height=maxHeight;}else{height=maxHeight;}questDockWrapperSpecs.set({...questDockWrapperSpecs.get(),x:0,y:youBarHeight>0?youBarHeight:QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED,width:getQuestDockExpandedWidth(windowWidth,safeArea.left,safeArea.right),height:height});activeQuestDockMode.set(QuestDockMode.EXPANDED);break;}}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockHooks.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockHooks.tsx');
exports.useQuestDockModeAnimatedReaction = useQuestDockModeAnimatedReaction;
exports.useQuestDockExternalOffset = useQuestDockExternalOffset;
exports.useQuestDockDismissalReset = useQuestDockDismissalReset;
exports.useActionSheetPressHandler = useActionSheetPressHandler;
}
function useQuestDockModeAnimatedReaction() { // fn#103129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:3948, offset: 0x0225988b, size: 554 bytes, params: 1, frame: 29
let useContext = ReactModule.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const {questDockWrapperSpecs, windowDimensions, activeQuestDockMode,
minExpandedContentHeight} = Reflect.apply(useContext, ReactModule, [QuestDockGestureContext]);
useContext = ReactModule.useContext;
const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext;
const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, ReactModule,
[QuestDockExternalCoordinationContext]);
const value4 = (UseSafeAreaInsetsSharedValueNative)();
const value5 = useYouBarHorizontalMargin();
const value6 = (YouBarExperimentModule).useYouBarEnabled('QuestDock');
const value7 = useYouBarTotalHeight();
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
const useQuestDockModeAnimatedReactionO2 = useQuestDockModeAnimatedReactionO;
useQuestDockModeAnimatedReactionO2.__closure = {restingQuestDockMode: restingQuestDockMode,
minExpandedContentHeight: minExpandedContentHeight, windowDimensions: windowDimensions, safeArea: value4};
useQuestDockModeAnimatedReactionO2.__workletHash = 9502251090521;
useQuestDockModeAnimatedReactionO2.__initData = env0_19;
const useQuestDockModeAnimatedReactionT2 = useQuestDockModeAnimatedReactionT;
object = {};
object.cheapWorkletShallowEqual = (require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */).cheapWorkletShallowEqual;
object.QuestDockMode = QuestDockMode;
object.runOnJS = ReanimatedRexportModule.runOnJS;
object.setRestingQuestDockMode = setRestingQuestDockMode;
object.questDockWrapperSpecs = questDockWrapperSpecs;
object.youBarEnabled = value6;
object.QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED = QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED;
const getQuestDockCollapsedWidth = (QuestDockUtilsModule).getQuestDockCollapsedWidth;
object.getQuestDockCollapsedWidth = getQuestDockCollapsedWidth;
object.youBarHorizontalMargin = value5;
object.QUEST_DOCK_COLLAPSED_HEIGHT = QUEST_DOCK_COLLAPSED_HEIGHT;
object.activeQuestDockMode = activeQuestDockMode;
object.QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED = QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED;
const getQuestDockClosedWidth = (QuestDockUtilsModule).getQuestDockClosedWidth;
object.getQuestDockClosedWidth = getQuestDockClosedWidth;
object.QUEST_DOCK_CLOSED_HEIGHT = QUEST_DOCK_CLOSED_HEIGHT;
const getQuestDockExpandedHeightLimits = (QuestDockUtilsModule).getQuestDockExpandedHeightLimits;
object.getQuestDockExpandedHeightLimits = getQuestDockExpandedHeightLimits;
object.youBarHeight = value7;
object.QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED = QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED;
const getQuestDockExpandedWidth = (QuestDockUtilsModule).getQuestDockExpandedWidth;
object.getQuestDockExpandedWidth = getQuestDockExpandedWidth;
useQuestDockModeAnimatedReactionT2.__closure = object;
useQuestDockModeAnimatedReactionT2.__workletHash = 9030555854984;
useQuestDockModeAnimatedReactionT2.__initData = env0_20;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [useQuestDockModeAnimatedReactionO2,
useQuestDockModeAnimatedReactionT2]);
function useQuestDockModeAnimatedReactionO() { // fn#103130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:4359, owner: useQuestDockModeAnimatedReaction.o, offset: 0x02259ab5, size: 103 bytes, params: 1, frame: 11
const object = {};
const restingQuestDockModeBinding = restingQuestDockMode;
let get = restingQuestDockModeBinding.get;
object.restingQuestDockMode = Reflect.apply(get, restingQuestDockModeBinding, []);
object.minExpandedContentHeight = minExpandedContentHeight.get();
const windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
object.windowWidth = Reflect.apply(get, windowDimensionsBinding, []).width;
get = windowDimensionsBinding.get;
object.windowHeight = Reflect.apply(get, windowDimensionsBinding, []).height;
object.safeArea = QuestConstantsModule.QuestDockMode.get();
return object;
}
function useQuestDockModeAnimatedReaction() { // fn#103129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:3948, offset: 0x0225988b, size: 554 bytes, params: 1, frame: 29
var object2;
const binding = env0_4;
let useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const {questDockWrapperSpecs, windowDimensions, activeQuestDockMode,
minExpandedContentHeight} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]);
const value4 = (importDefault(11281) /* metro dependency 11281: useSafeAreaInsetsSharedValueNative */)();
const value5 = useYouBarHorizontalMargin();
const value6 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDock');
const value7 = useYouBarTotalHeight();
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
const closure = useQuestDockModeAnimatedReactionO;
closure.__closure = {restingQuestDockMode: restingQuestDockMode, minExpandedContentHeight: minExpandedContentHeight,
windowDimensions: windowDimensions, safeArea: value4};
closure.__workletHash = 9502251090521;
closure.__initData = env0_19;
const closure2 = useQuestDockModeAnimatedReactionT;
object2 = {};
object2.cheapWorkletShallowEqual = (require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */).cheapWorkletShallowEqual;
object2.QuestDockMode = QuestDockMode;
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.setRestingQuestDockMode = setRestingQuestDockMode;
object2.questDockWrapperSpecs = questDockWrapperSpecs;
object2.youBarEnabled = value6;
object2.QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED = QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED;
const getQuestDockCollapsedWidth = (require(13571) /* metro dependency 13571: QuestDockUtils */).getQuestDockCollapsedWidth;
object2.getQuestDockCollapsedWidth = getQuestDockCollapsedWidth;
object2.youBarHorizontalMargin = value5;
object2.QUEST_DOCK_COLLAPSED_HEIGHT = QUEST_DOCK_COLLAPSED_HEIGHT;
object2.activeQuestDockMode = activeQuestDockMode;
object2.QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED = QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED;
const getQuestDockClosedWidth = (require(13571) /* metro dependency 13571: QuestDockUtils */).getQuestDockClosedWidth;
object2.getQuestDockClosedWidth = getQuestDockClosedWidth;
object2.QUEST_DOCK_CLOSED_HEIGHT = QUEST_DOCK_CLOSED_HEIGHT;
const getQuestDockExpandedHeightLimits = (require(13571) /* metro dependency 13571: QuestDockUtils */).getQuestDockExpandedHeightLimits;
object2.getQuestDockExpandedHeightLimits = getQuestDockExpandedHeightLimits;
object2.youBarHeight = value7;
object2.QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED = QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED;
const getQuestDockExpandedWidth = (require(13571) /* metro dependency 13571: QuestDockUtils */).getQuestDockExpandedWidth;
object2.getQuestDockExpandedWidth = getQuestDockExpandedWidth;
closure2.__closure = object2;
closure2.__workletHash = 9030555854984;
closure2.__initData = env0_20;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
}
function useQuestDockExternalOffset() { // fn#103132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6415, offset: 0x02259eef, size: 165 bytes, params: 1, frame: 18
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
const value3 = env0_3(Reflect.apply(useStateFromStoresArray, fluxModule, [[QuestDockStore], function() {
return [QuestDockStore.prevRestingQuestDockMode, QuestDockStore.isEligibleToBeVisible];
}]), 2);
return env0_4.useMemo(_fun103134, [value3[1], value3[0],
(require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDock')]);
}
function useQuestDockDismissalReset() { // fn#103135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6830, offset: 0x0225a032, size: 129 bytes, params: 1, frame: 17
const binding = env0_4;
let useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
const setRestingQuestDockMode = Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]).setRestingQuestDockMode;
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
binding.useEffect(function() {
var closure = _fun103137;
closure();
var setInterval = global.setInterval;
var MINUTE = importDefault(dependencyMap[14]).Millis.MINUTE;
var env0_0 = setInterval(closure, 5 * MINUTE);
return _fun103138;
}, [setRestingQuestDockMode, Reflect.apply(useContext, binding, [QuestDockGestureContext]).activeQuestDockMode]);
}
function useActionSheetPressHandler(a0) { // fn#103139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7337, offset: 0x0225a172, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
return env0_4.useCallback(_fun103140, [a0,
(require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression(),
(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId()]);
}
function useQuestDockModeAnimatedReactionO() { // fn#103130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:4359, owner: useQuestDockModeAnimatedReaction.o, offset: 0x02259ab5, size: 103 bytes, params: 1, frame: 11
const object2 = {};
const restingQuestDockModeBinding = restingQuestDockMode;
let get = restingQuestDockModeBinding.get;
object2.restingQuestDockMode = Reflect.apply(get, restingQuestDockModeBinding, []);
object2.minExpandedContentHeight = minExpandedContentHeight.get();
const windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
object2.windowWidth = Reflect.apply(get, windowDimensionsBinding, []).width;
get = windowDimensionsBinding.get;
object2.windowHeight = Reflect.apply(get, windowDimensionsBinding, []).height;
object2.safeArea = env0_6.get();
return object2;
}
function useQuestDockModeAnimatedReactionT(a0, a1) { // fn#103131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:4645, owner: useQuestDockModeAnimatedReaction.t, offset: 0x02259b1c, size: 979 bytes, params: 3, frame: 28
var r7;
var r11;
var moduleValue2;
var value4;
var maxHeight;
var questDockWrapperSpecsBinding;
var get;
var height;
var value6;
var value7;
var moduleValue3;
var set;
var object2;
var value8;
var moduleValue4;
var getQuestDockClosedWidth;
var value11;
var moduleValue5;
var moduleValue6;
let value = a1;
const value3 = undefined;
const cheapWorkletShallowEqualModule = require(7739) /* metro dependency 7739: cheapWorkletShallowEqual */;
const cheapWorkletShallowEqual = cheapWorkletShallowEqualModule.cheapWorkletShallowEqual;
let r2 = value ?? value3;
if (!Reflect.apply(cheapWorkletShallowEqual, cheapWorkletShallowEqualModule, [a0, r2])) {
var restingQuestDockMode = a0.restingQuestDockMode;
var minExpandedContentHeight = a0.minExpandedContentHeight;
var windowWidth = a0.windowWidth;
var windowHeight = a0.windowHeight;
var safeArea = a0.safeArea;
var RESET_TO_PREVIOUS = QuestDockMode.RESET_TO_PREVIOUS;
if (RESET_TO_PREVIOUS === restingQuestDockMode) {
moduleValue6 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
moduleValue6.runOnJS(setRestingQuestDockMode)((value == null ? value3 : value.restingQuestDockMode) ?? QuestDockMode.COLLAPSED);
function useQuestDockModeAnimatedReactionT(a0, a1) { // fn#103131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:4645, owner: useQuestDockModeAnimatedReaction.t, offset: 0x02259b1c, size: 979 bytes, params: 3, frame: 28
var r7;
var r11;
var moduleValue2;
var value4;
var maxHeight;
var questDockWrapperSpecsBinding;
var get;
var height;
var value6;
var value7;
var moduleValue3;
var set;
var object;
var value8;
var moduleValue4;
var getQuestDockClosedWidth;
var value11;
var moduleValue5;
var moduleValue6;
let value = a1;
const value3 = undefined;
const cheapWorkletShallowEqual = CheapWorkletShallowEqualModule.cheapWorkletShallowEqual;
let r2 = value ?? value3;
if (!Reflect.apply(cheapWorkletShallowEqual, CheapWorkletShallowEqualModule, [a0, r2])) {
var restingQuestDockMode = a0.restingQuestDockMode;
var minExpandedContentHeight = a0.minExpandedContentHeight;
var windowWidth = a0.windowWidth;
var windowHeight = a0.windowHeight;
var safeArea = a0.safeArea;
var RESET_TO_PREVIOUS = QuestDockMode.RESET_TO_PREVIOUS;
if (RESET_TO_PREVIOUS === restingQuestDockMode) {
moduleValue6 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
moduleValue6.runOnJS(setRestingQuestDockMode)((value == null ? value3 : value.restingQuestDockMode) ?? QuestDockMode.COLLAPSED);
return value3;
}
var COLLAPSED = QuestDockMode.COLLAPSED;
if (COLLAPSED === restingQuestDockMode) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object = {};
copyDataProperties(object, questDockWrapperSpecsBinding.get(), undefined);
value11 = 0;
object['x'] = value11;
object['y'] = env0_8 ? value11 : -1 * QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED;
moduleValue5 = require(13571) /* metro dependency 13571: QuestDockUtils */;
object['width'] = moduleValue5.getQuestDockCollapsedWidth(windowWidth, env0_8 ? env0_7 : safeArea.left,
env0_8 ? env0_7 : safeArea.right);
object['height'] = QUEST_DOCK_COLLAPSED_HEIGHT;
Reflect.apply(set, questDockWrapperSpecsBinding, [object]);
activeQuestDockMode.set(QuestDockMode.COLLAPSED);
} else if (QuestDockMode.CLOSED === restingQuestDockMode) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object = {};
copyDataProperties(object, questDockWrapperSpecsBinding.get(), undefined);
value8 = 0;
object['x'] = value8;
r11 = env0_8 ? value8 : -1 * QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED;
object['y'] = r11;
moduleValue4 = require(13571) /* metro dependency 13571: QuestDockUtils */;
getQuestDockClosedWidth = moduleValue4.getQuestDockClosedWidth;
r11 = env0_8 ? env0_7 : safeArea.left;
object['width'] = Reflect.apply(getQuestDockClosedWidth, moduleValue4, [windowWidth, r11,
env0_8 ? env0_7 : safeArea.right]);
object['height'] = QUEST_DOCK_CLOSED_HEIGHT;
Reflect.apply(set, questDockWrapperSpecsBinding, [object]);
activeQuestDockMode.set(restingQuestDockMode);
} else if (QuestDockMode.SOFT_DISMISSED === restingQuestDockMode) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object = {};
copyDataProperties(object, questDockWrapperSpecsBinding.get(), undefined);
value8 = 0;
object['x'] = value8;
r11 = env0_8 ? value8 : -1 * QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED;
object['y'] = r11;
moduleValue4 = require(13571) /* metro dependency 13571: QuestDockUtils */;
getQuestDockClosedWidth = moduleValue4.getQuestDockClosedWidth;
r11 = env0_8 ? env0_7 : safeArea.left;
object['width'] = Reflect.apply(getQuestDockClosedWidth, moduleValue4, [windowWidth, r11,
env0_8 ? env0_7 : safeArea.right]);
object['height'] = QUEST_DOCK_CLOSED_HEIGHT;
Reflect.apply(set, questDockWrapperSpecsBinding, [object]);
activeQuestDockMode.set(restingQuestDockMode);
} else if (QuestDockMode.EXPANDED === restingQuestDockMode) {
moduleValue2 = require(13571) /* metro dependency 13571: QuestDockUtils */;
value4 = moduleValue2.getQuestDockExpandedHeightLimits(windowHeight, safeArea.top,
minExpandedContentHeight);
value4.minHeight;
maxHeight = value4.maxHeight;
questDockWrapperSpecsBinding = questDockWrapperSpecs;
get = questDockWrapperSpecsBinding.get;
height = Reflect.apply(get, questDockWrapperSpecsBinding, []).height;
value6 = height <= QUEST_DOCK_COLLAPSED_HEIGHT;
if (value6) {
r2 = value6;
} else {
value7 = value != null;
if (value7) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
height = questDockWrapperSpecsBinding.get().height;
moduleValue3 = require(13571) /* metro dependency 13571: QuestDockUtils */;
value = height === moduleValue3.getQuestDockExpandedHeightLimits(value.windowHeight,
value.safeArea.top,
minExpandedContentHeight).maxHeight;
r7 = value;
} else {
r7 = value7;
}
r2 = r7;
}
if (!r2) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
questDockWrapperSpecsBinding.get().height;
}
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object = {};
get = questDockWrapperSpecsBinding.get;
copyDataProperties(object, Reflect.apply(get, questDockWrapperSpecsBinding, []), undefined);
object['x'] = 0;
object['y'] = env0_9 > 0 ? env0_9 : QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED;
value = require(13571) /* metro dependency 13571: QuestDockUtils */;
value = value.getQuestDockExpandedWidth(windowWidth, safeArea.left, safeArea.right);
object['width'] = value;
object['height'] = maxHeight;
Reflect.apply(set, questDockWrapperSpecsBinding, [object]);
activeQuestDockMode.set(QuestDockMode.EXPANDED);
}
}
return value3;
}
var COLLAPSED = QuestDockMode.COLLAPSED;
if (COLLAPSED === restingQuestDockMode) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object2 = {};
copyDataProperties(object2, questDockWrapperSpecsBinding.get(), undefined);
value11 = 0;
object2['x'] = value11;
object2['y'] = env0_8 ? value11 : -1 * QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED;
moduleValue5 = require(13571) /* metro dependency 13571: QuestDockUtils */;
object2['width'] = moduleValue5.getQuestDockCollapsedWidth(windowWidth, env0_8 ? env0_7 : safeArea.left,
env0_8 ? env0_7 : safeArea.right);
object2['height'] = QUEST_DOCK_COLLAPSED_HEIGHT;
Reflect.apply(set, questDockWrapperSpecsBinding, [object2]);
activeQuestDockMode.set(QuestDockMode.COLLAPSED);
} else if (QuestDockMode.CLOSED === restingQuestDockMode) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object2 = {};
copyDataProperties(object2, questDockWrapperSpecsBinding.get(), undefined);
value8 = 0;
object2['x'] = value8;
r11 = env0_8 ? value8 : -1 * QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED;
object2['y'] = r11;
moduleValue4 = require(13571) /* metro dependency 13571: QuestDockUtils */;
getQuestDockClosedWidth = moduleValue4.getQuestDockClosedWidth;
r11 = env0_8 ? env0_7 : safeArea.left;
object2['width'] = Reflect.apply(getQuestDockClosedWidth, moduleValue4, [windowWidth, r11,
env0_8 ? env0_7 : safeArea.right]);
object2['height'] = QUEST_DOCK_CLOSED_HEIGHT;
Reflect.apply(set, questDockWrapperSpecsBinding, [object2]);
activeQuestDockMode.set(restingQuestDockMode);
} else if (QuestDockMode.SOFT_DISMISSED === restingQuestDockMode) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object2 = {};
copyDataProperties(object2, questDockWrapperSpecsBinding.get(), undefined);
value8 = 0;
object2['x'] = value8;
r11 = env0_8 ? value8 : -1 * QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED;
object2['y'] = r11;
moduleValue4 = require(13571) /* metro dependency 13571: QuestDockUtils */;
getQuestDockClosedWidth = moduleValue4.getQuestDockClosedWidth;
r11 = env0_8 ? env0_7 : safeArea.left;
object2['width'] = Reflect.apply(getQuestDockClosedWidth, moduleValue4, [windowWidth, r11,
env0_8 ? env0_7 : safeArea.right]);
object2['height'] = QUEST_DOCK_CLOSED_HEIGHT;
Reflect.apply(set, questDockWrapperSpecsBinding, [object2]);
activeQuestDockMode.set(restingQuestDockMode);
} else if (QuestDockMode.EXPANDED === restingQuestDockMode) {
moduleValue2 = require(13571) /* metro dependency 13571: QuestDockUtils */;
value4 = moduleValue2.getQuestDockExpandedHeightLimits(windowHeight, safeArea.top,
minExpandedContentHeight);
value4.minHeight;
maxHeight = value4.maxHeight;
questDockWrapperSpecsBinding = questDockWrapperSpecs;
get = questDockWrapperSpecsBinding.get;
height = Reflect.apply(get, questDockWrapperSpecsBinding, []).height;
value6 = height <= QUEST_DOCK_COLLAPSED_HEIGHT;
if (value6) {
r2 = value6;
} else {
value7 = value != null;
if (value7) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
height = questDockWrapperSpecsBinding.get().height;
moduleValue3 = require(13571) /* metro dependency 13571: QuestDockUtils */;
value = height === moduleValue3.getQuestDockExpandedHeightLimits(value.windowHeight,
value.safeArea.top,
minExpandedContentHeight).maxHeight;
r7 = value;
} else {
r7 = value7;
}
function useQuestDockExternalOffset() { // fn#103132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6415, offset: 0x02259eef, size: 165 bytes, params: 1, frame: 18
const useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const value3 = Module00057(Reflect.apply(useStateFromStoresArray, FluxModule, [[QuestDockStore], function() {
var questDockStoreBinding = QuestDockStore;
return [questDockStoreBinding.prevRestingQuestDockMode, questDockStoreBinding.isEligibleToBeVisible];
}]), 2);
return ReactModule.useMemo(_fun103134, [value3[1], value3[0],
(YouBarExperimentModule).useYouBarEnabled('QuestDock')]);
function _fun103134() { // fn#103134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6637, offset: 0x02259fb5, size: 125 bytes, params: 1, frame: 4
var binding;
var value2;
if (env0_1) {
binding = env0_0;
value2 = environment.__proto__;
if (QuestDockMode.COLLAPSED === binding) {
return env0_2 ? QUEST_DOCK_EXTERNAL_OFFSET_COLLAPSED_WITH_YOU_BAR : QUEST_DOCK_EXTERNAL_OFFSET_COLLAPSED;
}
if (QuestDockMode.EXPANDED === binding) {
return env0_2 ? QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED_WITH_YOU_BAR : QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED;
}
if (QuestDockMode.CLOSED === binding) {
return QUEST_DOCK_EXTERNAL_OFFSET_CLOSED;
}
if (QuestDockMode.SOFT_DISMISSED === binding) {
return QUEST_DOCK_EXTERNAL_OFFSET_CLOSED;
}
r2 = r7;
}
if (!r2) {
questDockWrapperSpecsBinding = questDockWrapperSpecs;
questDockWrapperSpecsBinding.get().height;
return 0;
}
}
function useQuestDockDismissalReset() { // fn#103135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6830, offset: 0x0225a032, size: 129 bytes, params: 1, frame: 17
let useContext = ReactModule.useContext;
const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext;
const setRestingQuestDockMode = Reflect.apply(useContext, ReactModule,
[QuestDockExternalCoordinationContext]).setRestingQuestDockMode;
useContext = ReactModule.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
ReactModule.useEffect(function() {
var closure = _fun103137;
closure();
var setInterval = global.setInterval;
var MINUTE = importDefault(dependencyMap[14]).Millis.MINUTE;
var env0_0 = setInterval(closure, 5 * MINUTE);
return _fun103138;
}, [setRestingQuestDockMode, Reflect.apply(useContext, ReactModule, [QuestDockGestureContext]).activeQuestDockMode]);
function _fun103136() { // fn#103136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7038, offset: 0x0225a0b3, size: 84 bytes, params: 1, frame: 16
const closure = function() {
if (!(activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED || require(dependencyMap[12]).isSoftDismissed(QuestDockStore.questDockSoftDismissedAt))) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
}
};
closure();
const setInterval = global.setInterval;
const Millis = (Durations).Millis;
const MINUTE = Millis.MINUTE;
const env0_0 = setInterval(closure, 5 * MINUTE);
return _fun103138;
function maybeResetSoftDismissal() { // fn#103137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7043, offset: 0x0225a107, size: 107 bytes, params: 1, frame: 14
var r2;
var moduleValue;
const value2 = activeQuestDockMode.get();
const SOFT_DISMISSED = QuestDockMode.SOFT_DISMISSED;
const value4 = value2 !== SOFT_DISMISSED;
if (value4) {
r2 = value4;
} else {
moduleValue = require(13571) /* metro dependency 13571: QuestDockUtils */;
r2 = moduleValue.isSoftDismissed(QuestDockStore.questDockSoftDismissedAt);
}
if (!r2) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
}
}
questDockWrapperSpecsBinding = questDockWrapperSpecs;
set = questDockWrapperSpecsBinding.set;
object2 = {};
get = questDockWrapperSpecsBinding.get;
copyDataProperties(object2, Reflect.apply(get, questDockWrapperSpecsBinding, []), undefined);
object2['x'] = 0;
object2['y'] = env0_9 > 0 ? env0_9 : QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED;
value = require(13571) /* metro dependency 13571: QuestDockUtils */;
value = value.getQuestDockExpandedWidth(windowWidth, safeArea.left, safeArea.right);
object2['width'] = value;
object2['height'] = maxHeight;
Reflect.apply(set, questDockWrapperSpecsBinding, [object2]);
activeQuestDockMode.set(QuestDockMode.EXPANDED);
function _fun103138() { // fn#103138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7275, offset: 0x01f6d8c0, size: 24 bytes, params: 1, frame: 11
global.clearInterval(env0_0);
}
}
}
return value3;
}
function _fun103134() { // fn#103134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:6637, offset: 0x02259fb5, size: 125 bytes, params: 1, frame: 4
var binding;
var value2;
if (env0_1) {
binding = env0_0;
value2 = environment.__proto__;
if (QuestDockMode.COLLAPSED === binding) {
return env0_2 ? QUEST_DOCK_EXTERNAL_OFFSET_COLLAPSED_WITH_YOU_BAR : QUEST_DOCK_EXTERNAL_OFFSET_COLLAPSED;
}
if (QuestDockMode.EXPANDED === binding) {
return env0_2 ? QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED_WITH_YOU_BAR : QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED;
}
if (QuestDockMode.CLOSED === binding) {
return QUEST_DOCK_EXTERNAL_OFFSET_CLOSED;
}
if (QuestDockMode.SOFT_DISMISSED === binding) {
return QUEST_DOCK_EXTERNAL_OFFSET_CLOSED;
function useActionSheetPressHandler(a0) { // fn#103139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7337, offset: 0x0225a172, size: 114 bytes, params: 2, frame: 17
const env0_0 = a0;
return ReactModule.useCallback(_fun103140, [a0,
(AnalyticsHooksModule).useTrackQuestContentClickedWithImpression(),
(ContentImpressionTrackerHooksModule).useQuestImpressionId()]);
function _fun103140() { // fn#103140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7491, offset: 0x0225a1e4, size: 484 bytes, params: 1, frame: 20
var binding;
var object;
const QuestContent = require(dependencyMap[22]).QuestContent;
var QUEST_BAR_MOBILE;
const QuestContentCTA = require(dependencyMap[21]).QuestContentCTA;
var moduleValue2;
var captureAdUserAction;
let value = environment.__proto__;
const moduleValue = require(dependencyMap[17]);
const shouldMigrateToAdAnalyticsInterface = moduleValue.shouldMigrateToAdAnalyticsInterface;
const AdAnalyticsInterfaceExperimentStep = require(dependencyMap[17]).AdAnalyticsInterfaceExperimentStep;
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, moduleValue, [STEP_2_CLICKED_INTERNAL,
'quest_dock_action_sheet'])) {
moduleValue2 = require(dependencyMap[18]);
captureAdUserAction = moduleValue2.captureAdUserAction;
object = {};
object.type = require(dependencyMap[19]).AdUserActionType.CLICK_INTERNAL;
object.adCreativeType = require(dependencyMap[20]).AdCreativeType.QUEST;
object.adCreativeId = env0_0.id;
object.questContentCTA = QuestContentCTA.OPEN_CONTEXT_MENU;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.surfaceId = QUEST_BAR_MOBILE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
object.impressionId = env0_2;
Reflect.apply(captureAdUserAction, moduleValue2, [object]);
} else {
binding = env0_1;
object = {};
object.questId = env0_0.id;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.questContent = QUEST_BAR_MOBILE;
object.questContentCTA = QuestContentCTA.OPEN_CONTEXT_MENU;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
binding(object);
}
const defaultImport = importDefault(dependencyMap[23]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[25]);
value = value(dependencyMap[24], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'QuestDockContextMenuActionSheet', {quest: env0_0}]);
}
}
return 0;
}
function _fun103136() { // fn#103136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7038, offset: 0x0225a0b3, size: 84 bytes, params: 1, frame: 16
const closure = function() {
if (!(activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED || require(dependencyMap[12]).isSoftDismissed(QuestDockStore.questDockSoftDismissedAt))) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
}
};
closure();
const setInterval = global.setInterval;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const MINUTE = Millis.MINUTE;
const env0_0 = setInterval(closure, 5 * MINUTE);
return _fun103138;
}
function _fun103140() { // fn#103140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13759:7491, offset: 0x0225a1e4, size: 484 bytes, params: 1, frame: 20
var binding;
var object2;
const QuestContent = require(dependencyMap[22]).QuestContent;
var QUEST_BAR_MOBILE;
const QuestContentCTA = require(dependencyMap[21]).QuestContentCTA;
var moduleValue2;
var captureAdUserAction;
let value = environment.__proto__;
const moduleValue = require(dependencyMap[17]);
const shouldMigrateToAdAnalyticsInterface = moduleValue.shouldMigrateToAdAnalyticsInterface;
const AdAnalyticsInterfaceExperimentStep = require(dependencyMap[17]).AdAnalyticsInterfaceExperimentStep;
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, moduleValue, [STEP_2_CLICKED_INTERNAL,
'quest_dock_action_sheet'])) {
moduleValue2 = require(dependencyMap[18]);
captureAdUserAction = moduleValue2.captureAdUserAction;
object2 = {};
object2.type = require(dependencyMap[19]).AdUserActionType.CLICK_INTERNAL;
object2.adCreativeType = require(dependencyMap[20]).AdCreativeType.QUEST;
object2.adCreativeId = env0_0.id;
object2.questContentCTA = QuestContentCTA.OPEN_CONTEXT_MENU;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.surfaceId = QUEST_BAR_MOBILE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
object2.impressionId = env0_2;
Reflect.apply(captureAdUserAction, moduleValue2, [object2]);
} else {
binding = env0_1;
object2 = {};
object2.questId = env0_0.id;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.questContent = QUEST_BAR_MOBILE;
object2.questContentCTA = QuestContentCTA.OPEN_CONTEXT_MENU;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
binding(object2);
}
const defaultImport = importDefault(dependencyMap[23]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[25]);
value = value(dependencyMap[24], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'QuestDockContextMenuActionSheet', {quest: env0_0}]);
}
global.__d(_fun103128, 13569, [57, 31, 13570, 6528, 13572, 7553, 13573, 13576, 11281, 5176, 4017, 7739, 13571, 566,
672, 9949, 9513, 9519, 9517, 9518, 7121, 7120, 6531, 4080, 13577, 1962,
2]) /* metro module 13569, dependencies: [57, 31, 13570, 6528, 13572, 7553, 13573, 13576, 11281, 5176, 4017, 7739, 13571, 566, 672, 9949, 9513, 9519, 9517, 9518, 7121, 7120, 6531, 4080, 13577, 1962, 2] */;
@@ -1,16 +1,20 @@
/* Metro module 13570; source: modules/quests/native/QuestDock/QuestDockStore.tsx; dependencies: [6, 7, 15, 17, 18, 6528, 13571, 566, 694, 2] */
import ClassCallCheck from '../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
function _fun103141(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:6, offset: 0x0225a3c8, size: 353 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(7) /* metro dependency 7 */;
const env0_6 = importDefault(15) /* metro dependency 15 */;
const env0_7 = importDefault(17) /* metro dependency 17 */;
const env0_8 = importDefault(18) /* metro dependency 18 */;
const QuestDockMode = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const QuestDockMode = (QuestConstantsModule).QuestDockMode;
let env0_2 = QuestDockMode.COLLAPSED;
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
const PersistedStore = (Flux).PersistedStore;
let value = _fun103145(PersistedStore);
value.displayName = 'QuestDockStore';
value.persistKey = 'QuestDockStore';
@@ -28,61 +32,79 @@ function _fun103141(global, require, importDefault, importAll, module, exports,
}, QUESTS_DOCK_VISIBILITY_ELIGIBILITY_UPDATE: function(a0) {
env0_10 = a0.isEligibleToBeVisible;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_103142() { // fn#103142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:176, offset: 0x0225a529, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_103142() { // fn#103142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:176, offset: 0x0225a529, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_103142_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_103142_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun103145(a0) { // fn#103145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:441, offset: 0x0225a58b, size: 172 bytes, params: 2, frame: 16
const closure = QuestDockStore;
env0_8(closure, a0);
return env0_5(closure, [{key: 'initialize', value: value_103147}, {key: 'getState', value: value_103148},
{key: 'prevRestingQuestDockMode', get: function() {
return COLLAPSED;
}}, {key: 'questDockSoftDismissedAt', get: get_103150}, {key: 'isEligibleToBeVisible', get: get_103151}]);
}
function _fun103145(a0) { // fn#103145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:441, offset: 0x0225a58b, size: 172 bytes, params: 2, frame: 16
const QuestDockStore2 = QuestDockStore;
Inherits(QuestDockStore2, a0);
return CreateClass(QuestDockStore2, [{key: 'initialize', value: value_103147}, {key: 'getState', value: value_103148},
{key: 'prevRestingQuestDockMode', get: function() {
return COLLAPSED;
}}, {key: 'questDockSoftDismissedAt', get: get_103150}, {key: 'isEligibleToBeVisible', get: get_103151}]);
function QuestDockStore() { // fn#103146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:453, offset: 0x011c382c, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_4(this, QuestDockStore);
const value3 = env1_7(QuestDockStore);
return env1_6(this, _isNativeReflectConstruct_103142() ? global.Reflect.construct(value3, arguments,
env1_7(this).constructor) : value3.apply(this, arguments));
}
function value_103147(a0) { // fn#103147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:741, offset: 0x0225a637, size: 88 bytes, params: 2, frame: 12
var r0;
var questDockSoftDismissedAt;
var value;
if (a0 != null) {
questDockSoftDismissedAt = a0.questDockSoftDismissedAt;
value = environment.__proto__;
r0 = (require(13571) /* metro dependency 13571: QuestDockUtils */).isSoftDismissed(questDockSoftDismissedAt) ? QuestDockMode.SOFT_DISMISSED : QuestDockMode.COLLAPSED;
}
}
function value_103148() { // fn#103148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:875, offset: 0x0225a68f, size: 25 bytes, params: 1, frame: 3
return {prevRestingQuestDockMode: COLLAPSED, questDockSoftDismissedAt: env1_3};
}
function get_103150() { // fn#103150, offset: 0x011057d9, size: 9 bytes, params: 1, frame: 1
return env1_3;
}
function get_103151() { // fn#103151, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
function value_103147(a0) { // fn#103147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:741, offset: 0x0225a637, size: 88 bytes, params: 2, frame: 12
var r0;
var questDockSoftDismissedAt;
var value;
if (a0 != null) {
questDockSoftDismissedAt = a0.questDockSoftDismissedAt;
value = environment.__proto__;
r0 = (require(13571) /* metro dependency 13571: QuestDockUtils */).isSoftDismissed(questDockSoftDismissedAt) ? QuestDockMode.SOFT_DISMISSED : QuestDockMode.COLLAPSED;
}
}
function value_103148() { // fn#103148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13760:875, offset: 0x0225a68f, size: 25 bytes, params: 1, frame: 3
return {prevRestingQuestDockMode: COLLAPSED, questDockSoftDismissedAt: env1_3};
}
global.__d(_fun103141, 13570, [6, 7, 15, 17, 18, 6528, 13571, 566, 694,
2]) /* metro module 13570, dependencies: [6, 7, 15, 17, 18, 6528, 13571, 566, 694, 2] */;
@@ -1,201 +1,222 @@
/* Metro module 13664; source: modules/quests/native/QuestDock/QuestDockUnenrolledBackground.tsx; dependencies: [57, 31, 27, 4502, 6528, 13572, 661, 33, 4501, 13650, 13568, 13573, 13576, 8621, 566, 3860, 697, 674, 4017, 4577, 477, 9480, 8141, 9543, 5475, 4589, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import defaultImport5 from '../../../../by-id/module-04589-LinearGradient.js'; /* Metro dependency 4589 */
import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */
import UseStateFromSharedValue from '../../../reanimated/native/useStateFromSharedValue.tsx'; /* Metro dependency 8621 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SpringModule from '../../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestHooksNativeModule from '../QuestHooks.native.tsx'; /* Metro dependency 13568 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
import * as QuestDockExternalCoordinationContextModule from './QuestDockExternalCoordinationContext.tsx'; /* Metro dependency 13576 */
function _fun104349(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:6, offset: 0x0229337b, size: 502 bytes, params: 8, frame: 25
var object6;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_5 = value2.AppState;
const StyleSheet = value2.StyleSheet;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const env0_7 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
const QUEST_DOCK_EXPANDED_HEIGHT = questDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT;
const env0_8 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
const env0_9 = questDockConstantsModule.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
const env0_10 = (require(661) /* metro dependency 661: Constants */).VerticalGradient;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object6 = {};
const object7 = {};
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
object7['right'] = undefined;
object7['bottom'] = undefined;
object7['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object7['zIndex'] = 1;
object6.backgroundWrapper = object7;
const object8 = {};
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
object8['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object8['resizeMode'] = 'cover';
object6.backgroundHeroAsset = object8;
const object9 = {};
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
object6.backgroundHeroAssetVideo = object9;
const object10 = {};
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
object10['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object6.backgroundGradient = object10;
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object6]);
object6 = {code: 'function QuestDockUnenrolledBackgroundTsx1(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,windowDimensions}=this.__closure;return{transform:[{translateX:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*-1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*-1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}],width:windowDimensions.get().width};}'};
object6 = {code: 'function QuestDockUnenrolledBackgroundTsx2(){const{withSpring,activeQuestDockMode,QuestDockMode,videoLoaded,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()!==QuestDockMode.EXPANDED||!videoLoaded?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'};
let value = ReactModule;
const StyleSheet = ReactNativeModule.StyleSheet;
const QUEST_DOCK_EXPANDED_HEIGHT = QuestDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {};
copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined);
object2['right'] = undefined;
object2['bottom'] = undefined;
object2['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object2['zIndex'] = 1;
object.backgroundWrapper = object2;
const object3 = {};
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
object3['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object3['resizeMode'] = 'cover';
object.backgroundHeroAsset = object3;
const object4 = {};
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
object.backgroundHeroAssetVideo = object4;
const object5 = {};
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
object5['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
object.backgroundGradient = object5;
const env0_13 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function QuestDockUnenrolledBackgroundTsx1(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,windowDimensions}=this.__closure;return{transform:[{translateX:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*-1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*-1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}],width:windowDimensions.get().width};}'};
object = {code: 'function QuestDockUnenrolledBackgroundTsx2(){const{withSpring,activeQuestDockMode,QuestDockMode,videoLoaded,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()!==QuestDockMode.EXPANDED||!videoLoaded?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'};
value = value.memo(QuestDockUnenrolledBackground);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledBackground.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledBackground.tsx');
exports.default = value;
}
function QuestDockUnenrolledBackground() { // fn#104350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:1604, offset: 0x02293571, size: 1273 bytes, params: 1, frame: 35
var moduleValue5;
let binding = env0_4;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
const styles = useStyles();
const {staticUrl,
videoAsset} = (QuestHooksNativeModule).useQuestDockHeroAsset(quest);
useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const {activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext;
const setRestingQuestDockMode = Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]).setRestingQuestDockMode;
const value4 = (UseStateFromSharedValue)(activeQuestDockMode);
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const useToken = UseTokenModule.useToken;
const CARD_BACKGROUND_DEFAULT = (Native).colors.CARD_BACKGROUND_DEFAULT;
const value5 = Reflect.apply(useToken, UseTokenModule, [CARD_BACKGROUND_DEFAULT]);
const env0_3 = value5;
const value6 = binding.useMemo(_fun104352, [value5]);
let closure = function() {
return [0, 0.33, 0.76, 1];
};
const value7 = binding.useMemo(closure, []);
let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledBackgroundS;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,
windowDimensions: windowDimensions};
closure.__workletHash = 3565242281634;
closure.__initData = env0_14;
const value8 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const useState = binding.useState;
const value10 = env0_3(Reflect.apply(useState, binding, [AppState.currentState !== 'active']), 2);
var property = value10[0];
var env0_4 = value10[1];
binding.useEffect(function() {
var env0_0 = AppState.addEventListener('change', _fun104356);
return _fun104357;
}, [activeQuestDockMode, setRestingQuestDockMode]);
useContext = binding.useContext;
let r4 = !property && Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).isRendered && !useReducedMotion && videoAsset != null;
if (r4) {
moduleValue5 = require(477) /* metro dependency 477: PlatformUtils */;
r4 = !moduleValue5.isAndroid();
}
r4 = r4 && (require(9480) /* metro dependency 9480: QuestUtilsNative */).isHeroVideoSupported(videoAsset);
binding = env0_4;
var [property, env0_6] = env0_3(binding.useState(false), 2);
const value17 = binding.useCallback(_fun104358, []);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledBackgroundG;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, videoLoaded: property,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED};
closure.__workletHash = 13084905891385;
closure.__initData = env0_15;
const value18 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const items2 = [styles.backgroundWrapper, value8];
const r5 = (
r4
? (
<env0_4.Fragment>
{((VideoComponent) => <VideoComponent style={styles.backgroundHeroAssetVideo} onLoad={value17} source={{uri: videoAsset.url}} paused={value4 !== QuestDockMode.EXPANDED} resizeMode="cover" muted disableFocus preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}
<ReanimatedNativeView style={value18}>
{((Component) => <Component style={styles.backgroundHeroAsset} source={{uri: staticUrl}} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</ReanimatedNativeView>
</env0_4.Fragment>
)
: ((Component) => <Component style={styles.backgroundHeroAsset} source={{uri: staticUrl}} />)(importDefault(5475) /* metro dependency 5475: FastImage */)
);
const {START, END} = VerticalGradient;
return (
<ReanimatedNativeView style={items2}>
{r5}
{((Component) => <Component locations={value7} style={styles.backgroundGradient} start={START} end={END} colors={value6} />)(defaultImport5)}
</ReanimatedNativeView>
);
function _fun104352() { // fn#104352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2080, offset: 0x02293a6a, size: 168 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = importDefault(674) /* metro dependency 674 */;
value = value(env0_3);
const value3 = value.alpha(0);
const items2 = [value3.hex()];
const value5 = value.alpha(0.1);
items2[1] = value5.hex();
const value6 = value.alpha(0.8);
items2[2] = value6.hex();
value = value.alpha(1);
items2[3] = value.hex();
return items2;
}
function QuestDockUnenrolledBackground() { // fn#104350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:1604, offset: 0x02293571, size: 1273 bytes, params: 1, frame: 35
var moduleValue5;
let binding = env0_4;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
const styles = useStyles();
const {staticUrl,
videoAsset} = (require(13568) /* metro dependency 13568: QuestHooksNative */).useQuestDockHeroAsset(quest);
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const {activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
const setRestingQuestDockMode = Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]).setRestingQuestDockMode;
const value4 = (importDefault(8621) /* metro dependency 8621: useStateFromSharedValue */)(activeQuestDockMode);
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
const value5 = Reflect.apply(useToken, useTokenModule, [CARD_BACKGROUND_DEFAULT]);
const env0_3 = value5;
const value6 = binding.useMemo(_fun104352, [value5]);
let closure = function() {
return [0, 0.33, 0.76, 1];
};
const value7 = binding.useMemo(closure, []);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledBackgroundS;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,
windowDimensions: windowDimensions};
closure.__workletHash = 3565242281634;
closure.__initData = env0_14;
const value8 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const useState = binding.useState;
const value10 = env0_3(Reflect.apply(useState, binding, [AppState.currentState !== 'active']), 2);
var property = value10[0];
var env0_4 = value10[1];
binding.useEffect(function() {
var env0_0 = AppState.addEventListener('change', _fun104356);
return _fun104357;
}, [activeQuestDockMode, setRestingQuestDockMode]);
useContext = binding.useContext;
let r4 = !property && Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).isRendered && !useReducedMotion && videoAsset != null;
if (r4) {
moduleValue5 = require(477) /* metro dependency 477: PlatformUtils */;
r4 = !moduleValue5.isAndroid();
}
r4 = r4 && (require(9480) /* metro dependency 9480: QuestUtilsNative */).isHeroVideoSupported(videoAsset);
binding = env0_4;
var [property, env0_6] = env0_3(binding.useState(false), 2);
const value17 = binding.useCallback(_fun104358, []);
const moduleValue7 = reanimatedRexportModule;
useAnimatedStyle = moduleValue7.useAnimatedStyle;
closure = QuestDockUnenrolledBackgroundG;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, videoLoaded: property,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED};
closure.__workletHash = 13084905891385;
closure.__initData = env0_15;
const value18 = Reflect.apply(useAnimatedStyle, moduleValue7, [closure]);
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
const items2 = [styles.backgroundWrapper, value8];
const r5 = r4 ? <env0_4.Fragment>{((VideoComponent) => <VideoComponent style={styles.backgroundHeroAssetVideo} onLoad={value17} source={{uri: videoAsset.url}} paused={value4 !== QuestDockMode.EXPANDED} resizeMode="cover" muted disableFocus preventsDisplaySleepDuringVideoPlayback={false} />)((require(9543) /* metro dependency 9543: Video */).VideoComponent)}<ReanimatedNativeView style={value18}>{((Component) => <Component style={styles.backgroundHeroAsset} source={{uri: staticUrl}} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</ReanimatedNativeView></env0_4.Fragment> : ((Component) => <Component style={styles.backgroundHeroAsset} source={{uri: staticUrl}} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const defaultImport5 = importDefault(4589) /* metro dependency 4589 */;
const {START, END} = VerticalGradient;
return (
<ReanimatedNativeView style={items2}>
{r5}
{((Component) => <Component locations={value7} style={styles.backgroundGradient} start={START} end={END} colors={value6} />)(defaultImport5)}
</ReanimatedNativeView>
);
}
function QuestDockUnenrolledBackgroundS() { // fn#104354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2256, owner: QuestDockUnenrolledBackground.s, offset: 0x02293b1e, size: 217 bytes, params: 1, frame: 21
let withSpring = SpringModule.withSpring;
const activeQuestDockModeBinding = activeQuestDockMode;
let get = activeQuestDockModeBinding.get;
const value3 = Reflect.apply(get, activeQuestDockModeBinding, []);
let COLLAPSED = QuestDockMode.COLLAPSED;
const value4 = 0;
const items2 = [{translateX: Reflect.apply(withSpring, SpringModule,
[value3 !== COLLAPSED ? value4 : -1 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])}];
withSpring = SpringModule.withSpring;
const value6 = activeQuestDockMode.get();
COLLAPSED = QuestDockMode.COLLAPSED;
items2[1] = {translateY: Reflect.apply(withSpring, SpringModule,
[value6 !== COLLAPSED ? value4 : -1 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])};
const windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
return {transform: items2, width: Reflect.apply(get, windowDimensionsBinding, []).width};
}
function _fun104352() { // fn#104352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2080, offset: 0x02293a6a, size: 168 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = importDefault(674) /* metro dependency 674 */;
value = value(env0_3);
const value3 = value.alpha(0);
const items2 = [value3.hex()];
const value5 = value.alpha(0.1);
items2[1] = value5.hex();
const value6 = value.alpha(0.8);
items2[2] = value6.hex();
value = value.alpha(1);
items2[3] = value.hex();
return items2;
}
function _fun104355() { // fn#104355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2739, offset: 0x02293bf7, size: 45 bytes, params: 1, frame: 14
const env0_0 = AppState.addEventListener('change', _fun104356);
return _fun104357;
function _fun104356(a0) { // fn#104356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2779, offset: 0x02293c24, size: 118 bytes, params: 2, frame: 15
let value = a0 !== 'active';
env1_4(value);
let r3 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS() && value;
if (r3) {
value = activeQuestDockMode.get();
value = value === QuestDockMode.EXPANDED;
r3 = value;
}
if (r3) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
}
}
function QuestDockUnenrolledBackgroundS() { // fn#104354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2256, owner: QuestDockUnenrolledBackground.s, offset: 0x02293b1e, size: 217 bytes, params: 1, frame: 21
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;
const value4 = 0;
const items2 = [{translateX: Reflect.apply(withSpring, springModule,
[value3 !== COLLAPSED ? value4 : -1 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])}];
const moduleValue2 = springModule;
withSpring = moduleValue2.withSpring;
const value6 = activeQuestDockMode.get();
COLLAPSED = QuestDockMode.COLLAPSED;
items2[1] = {translateY: Reflect.apply(withSpring, moduleValue2,
[value6 !== COLLAPSED ? value4 : -1 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])};
const windowDimensionsBinding = windowDimensions;
get = windowDimensionsBinding.get;
return {transform: items2, width: Reflect.apply(get, windowDimensionsBinding, []).width};
}
function _fun104357() { // fn#104357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2874, offset: 0x00cd0cb3, size: 21 bytes, params: 1, frame: 9
env0_0.remove();
}
function _fun104355() { // fn#104355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2739, offset: 0x02293bf7, size: 45 bytes, params: 1, frame: 14
const env0_0 = AppState.addEventListener('change', _fun104356);
return _fun104357;
}
}
function QuestDockUnenrolledBackgroundG() { // fn#104359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:3125, owner: QuestDockUnenrolledBackground.G, offset: 0x02293c9a, size: 96 bytes, params: 1, frame: 18
const springModule = require(4577) /* metro dependency 4577: spring */;
const withSpring = springModule.withSpring;
const value3 = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
const value4 = 1;
return {opacity: Reflect.apply(withSpring, springModule, [value3 !== EXPANDED ? value4 : env0_5 ? 0 : value4,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])};
}
function _fun104358() { // fn#104358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:3076, offset: 0x0218c4cf, size: 18 bytes, params: 1, frame: 11
env0_6(true);
}
function QuestDockUnenrolledBackgroundG() { // fn#104359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:3125, owner: QuestDockUnenrolledBackground.G, offset: 0x02293c9a, size: 96 bytes, params: 1, frame: 18
const withSpring = SpringModule.withSpring;
const value3 = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
const value4 = 1;
return {opacity: Reflect.apply(withSpring, SpringModule, [value3 !== EXPANDED ? value4 : ReactNativeModule.AppState ? 0 : value4,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])};
}
function _fun104356(a0) { // fn#104356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13861:2779, offset: 0x02293c24, size: 118 bytes, params: 2, frame: 15
let value = a0 !== 'active';
env1_4(value);
let r3 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS() && value;
if (r3) {
value = activeQuestDockMode.get();
value = value === QuestDockMode.EXPANDED;
r3 = value;
}
if (r3) {
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
}
}
global.__d(_fun104349, 13664, [57, 31, 27, 4502, 6528, 13572, 661, 33, 4501, 13650, 13568, 13573, 13576, 8621, 566,
3860, 697, 674, 4017, 4577, 477, 9480, 8141, 9543, 5475, 4589,
2]) /* metro module 13664, dependencies: [57, 31, 27, 4502, 6528, 13572, 661, 33, 4501, 13650, 13568, 13573, 13576, 8621, 566, 3860, 697, 674, 4017, 4577, 477, 9480, 8141, 9543, 5475, 4589, 2] */;
@@ -1,179 +1,225 @@
/* Metro module 13662; source: modules/quests/native/QuestDock/QuestDockUnenrolledBody.tsx; dependencies: [5, 31, 27, 7093, 13570, 6528, 13572, 33, 4501, 697, 13650, 632, 13568, 9483, 1585, 5176, 9502, 9503, 13576, 9484, 7120, 6531, 13595, 9950, 13634, 13631, 9542, 13635, 4573, 1244, 1305, 9480, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import QuestStore from '../../QuestStore.tsx'; /* Metro dependency 7093 */
import QuestRewardTile from '../QuestRewardTile.tsx'; /* Metro dependency 9542 */
import QuestDockStore from './QuestDockStore.tsx'; /* Metro dependency 13570 */
import QuestDockBlurredContentBackground from './QuestDockBlurredContentBackground.tsx'; /* Metro dependency 13631 */
import PremiumRewardGradient from '../PremiumRewardGradient.tsx'; /* Metro dependency 13634 */
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as QuestUtilsNativeModule from '../QuestUtils.native.tsx'; /* Metro dependency 9480 */
import * as QuestHooksModule from '../../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
import * as QuestOrbMultiplierHooksModule from '../../hooks/QuestOrbMultiplierHooks.tsx'; /* Metro dependency 9502 */
import * as QuestCopyHooksModule from '../../hooks/QuestCopyHooks.tsx'; /* Metro dependency 9950 */
import * as QuestHooksNativeModule from '../QuestHooks.native.tsx'; /* Metro dependency 13568 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockExternalCoordinationContextModule from './QuestDockExternalCoordinationContext.tsx'; /* Metro dependency 13576 */
function _fun104330(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:6, offset: 0x02292031, size: 642 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
const env0_8 = questConstantsModule.QuestDockMode;
const env0_9 = questConstantsModule.QuestsExperimentLocations;
let value = ReactModule;
const {QUEST_DOCK_EXPANDED_PADDING_BOTTOM,
QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL} = require(13572) /* metro dependency 13572: QuestDockConstants */;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
object2.wrapper = {'flexGrow': 1, 'flexShrink': 0, 'justifyContent': 'flex-end',
QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL} = QuestDockConstantsModule;
const createStyles = CreateStylesModule.createStyles;
object = {};
object.wrapper = {'flexGrow': 1, 'flexShrink': 0, 'justifyContent': 'flex-end',
paddingHorizontal: QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL, paddingBottom: QUEST_DOCK_EXPANDED_PADDING_BOTTOM};
const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS;
object2.rewardContentWrapper = {'borderRadius': null, 'overflow': 'hidden', 'padding': 8, 'paddingRight': 16,
object.rewardContentWrapper = {'borderRadius': null, 'overflow': 'hidden', 'padding': 8, 'paddingRight': 16,
borderRadius: QUEST_DOCK_BORDER_RADIUS};
object2.rewardContent = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 16};
object2.rewardContentCopy = {'flexGrow': 1, 'flexShrink': 1, 'gap': 4};
object2.premiumRewardPerkPill = {alignSelf: 'flex-start'};
object.rewardContent = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 16};
object.rewardContentCopy = {'flexGrow': 1, 'flexShrink': 1, 'gap': 4};
object.premiumRewardPerkPill = {alignSelf: 'flex-start'};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.titleRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': null, 'flexWrap': 'wrap', gap: PX_8};
const object3 = {};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.questDockRewardTile = object3;
object2.questDockCtaWrapper = {'marginTop': 12, 'paddingHorizontal': 4, 'paddingTop': 16, 'position': 'relative'};
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.questDockCta = object4;
object2.questDockCtaRow = {alignSelf: 'stretch'};
object.titleRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': null, 'flexWrap': 'wrap', gap: PX_8};
const object5 = {};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.questDockRewardTile = object5;
object.questDockCtaWrapper = {'marginTop': 12, 'paddingHorizontal': 4, 'paddingTop': 16, 'position': 'relative'};
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.questDockCta = object6;
object.questDockCtaRow = {alignSelf: 'stretch'};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.questDockCtaSaparator = {'position': 'absolute', 'left': -12, 'right': -12, 'top': 0,
object.questDockCtaSaparator = {'position': 'absolute', 'left': -12, 'right': -12, 'top': 0,
'backgroundColor': null, 'height': 1, 'opacity': 1, backgroundColor: BORDER_SUBTLE};
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object2]);
const env0_13 = Reflect.apply(createStyles, CreateStylesModule, [object]);
value = value.memo(QuestDockUnenrolledBody);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledBody.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledBody.tsx');
exports.default = value;
}
function QuestDockUnenrolledBody() { // fn#104331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:1202, offset: 0x022922b3, size: 1382 bytes, params: 1, frame: 44
var object2;
let binding = env0_4;
let useContext = binding.useContext;
const {isRendered, quest} = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]);
const styles = useStyles();
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([QuestDockStore],
function() {
return QuestDockStore.prevRestingQuestDockMode === QuestDockMode.EXPANDED;
});
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([QuestStore],
function() {
return QuestStore.isEnrolling(quest.id);
});
const value5 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
const value6 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
const {isMobileActivityQuest, questApplication,
launchMobileActivity} = (require(13568) /* metro dependency 13568: QuestHooksNative */).useMobileActivityQuest(quest);
const env0_3 = launchMobileActivity;
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value8 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDockUnenrolledBody');
const value9 = (require(9502) /* metro dependency 9502: QuestOrbMultiplierHooks */).useQuestOrbMultiplierEligibility();
const value10 = (require(9483) /* metro dependency 9483: QuestHooks */).useShouldShowBonusOrbsUX(quest, value9);
const r6 = value10 && value9 === (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).QuestOrbMultiplierEligibilityType.NITRO;
binding = env0_4;
useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
const value13 = binding.useCallback(env0_3(_fun104335), [quest.id, value5, Reflect.apply(useContext, binding,
[QuestDockExternalCoordinationContext]).setRestingQuestDockMode, isMobileActivityQuest, launchMobileActivity]);
const value14 = (require(9950) /* metro dependency 9950: QuestCopyHooks */).usePrimaryCtaCopy({quest: quest,
application: questApplication, shortText: true});
const questCopyHooksModule = require(9950) /* metro dependency 9950: QuestCopyHooks */;
const useQuestsInstructionsToWinReward = questCopyHooksModule.useQuestsInstructionsToWinReward;
object2 = {quest: quest};
const QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
object2.location = QUESTS_BAR_MOBILE;
object2.taskDetails = value6;
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
const QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
const value15 = Reflect.apply(useQuestsInstructionsToWinReward, questCopyHooksModule, [object2]);
const PremiumRewardGradient = importDefault(13634) /* metro dependency 13634: PremiumRewardGradient */;
const premiumRewardGradientProps = {visible: r6, glow: true, style: [styles.wrapper,
value8 ? {paddingBottom: global.Math.max(bottom, QUEST_DOCK_EXPANDED_PADDING_BOTTOM)} : null]};
const value17 = ((Component) => <Component />)(importDefault(13631) /* metro dependency 13631: QuestDockBlurredContentBackground */);
const QuestRewardTile = importDefault(9542) /* metro dependency 9542: QuestRewardTile */;
const value18 = !value3;
const questRewardTile = <QuestRewardTile paused={value3 ? !isRendered : value18} height={80} width={80} quest={quest} style={styles.questDockRewardTile} withAnimation={value3 && isRendered} />;
const items4 = [value10 && <View style={styles.premiumRewardPerkPill}>{((QuestOrbMultiplierPerkPill) => <QuestOrbMultiplierPerkPill questId={quest.config.id} orbMultiplierEligibility={value9} />)((require(13635) /* metro dependency 13635: QuestOrbMultiplierPerkPill */).QuestOrbMultiplierPerkPill)}</View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const EQa7os = (require(1244) /* metro dependency 1244: indexNative */).t.EQa7os;
items4[1] = <View style={styles.titleRow}><Text variant="heading-md/medium" color="mobile-text-heading-primary">{Reflect.apply(format,
intl, [EQa7os, {questName: quest.config.messages.questName}])}</Text></View>;
items4[2] = <Text color="text-default" variant="text-sm/normal">{value15}</Text>;
const view2 = <View style={styles.rewardContentWrapper}>{value17}<View style={styles.rewardContent}>{questRewardTile}<View style={styles.rewardContentCopy}>{items4}</View></View></View>;
const view = <View style={styles.questDockCtaSaparator} />;
const ShinyButton = (require(1305) /* metro dependency 1305: native */).ShinyButton;
return (
<PremiumRewardGradient {...premiumRewardGradientProps}>
{view2}
<View style={styles.questDockCtaWrapper}>
{view}
<View style={styles.questDockCtaRow}>
<ShinyButton
style={styles.questDockCta}
onPress={value13}
loading={value4}
renderIcon={renderIcon}
text={value14}
shineDisabled={value18}
/>
function QuestDockUnenrolledBody() { // fn#104331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:1202, offset: 0x022922b3, size: 1382 bytes, params: 1, frame: 44
let binding = env0_4;
let useContext = binding.useContext;
const {isRendered, quest} = Reflect.apply(useContext, binding,
[QuestDockContext]);
const styles = useStyles();
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([QuestDockStore],
function() {
return QuestDockStore.prevRestingQuestDockMode === QuestDockMode.EXPANDED;
});
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([QuestStore],
function() {
return QuestStore.isEnrolling(quest.id);
});
const value5 = (QuestHooksNativeModule).useHasWatchVideoOnMobileTasks(quest.config);
const value6 = (QuestHooksModule).useQuestTaskDetails(quest);
const {isMobileActivityQuest, questApplication,
launchMobileActivity} = (QuestHooksNativeModule).useMobileActivityQuest(quest);
const launchMobileActivity2 = launchMobileActivity;
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value8 = (YouBarExperimentModule).useYouBarEnabled('QuestDockUnenrolledBody');
const value9 = (QuestOrbMultiplierHooksModule).useQuestOrbMultiplierEligibility();
const value10 = (QuestHooksModule).useShouldShowBonusOrbsUX(quest, value9);
const r6 = value10 && value9 === (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).QuestOrbMultiplierEligibilityType.NITRO;
binding = env0_4;
useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext;
const value13 = binding.useCallback(launchMobileActivity2(_fun104335), [quest.id, value5, Reflect.apply(useContext,
binding, [QuestDockExternalCoordinationContext]).setRestingQuestDockMode, isMobileActivityQuest,
launchMobileActivity]);
const value14 = (QuestCopyHooksModule).usePrimaryCtaCopy({quest: quest,
application: questApplication, shortText: true});
const useQuestsInstructionsToWinReward = QuestCopyHooksModule.useQuestsInstructionsToWinReward;
object = {quest: quest};
const QUESTS_BAR_MOBILE = QuestsExperimentLocations.QUESTS_BAR_MOBILE;
object.location = QUESTS_BAR_MOBILE;
object.taskDetails = value6;
const QuestContent = (QuestTypesModule).QuestContent;
const QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
const value15 = Reflect.apply(useQuestsInstructionsToWinReward, QuestCopyHooksModule, [object]);
const premiumRewardGradientProps = {visible: r6, glow: true, style: [styles.wrapper,
value8 ? {paddingBottom: global.Math.max(bottom, QUEST_DOCK_EXPANDED_PADDING_BOTTOM)} : null]};
const value17 = ((Component) => <Component />)(QuestDockBlurredContentBackground);
const value18 = !value3;
const questRewardTile = (
<QuestRewardTile
paused={value3 ? !isRendered : value18}
height={80}
width={80}
quest={quest}
style={styles.questDockRewardTile}
withAnimation={value3 && isRendered}
/>
);
const items4 = [
value10 && <View style={styles.premiumRewardPerkPill}>{((QuestOrbMultiplierPerkPill) => <QuestOrbMultiplierPerkPill questId={quest.config.id} orbMultiplierEligibility={value9} />)((require(13635) /* metro dependency 13635: QuestOrbMultiplierPerkPill */).QuestOrbMultiplierPerkPill)}</View>,
];
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const format = intl.format;
const EQa7os = (IndexNativeModule).t.EQa7os;
items4[1] = (
<View style={styles.titleRow}>
<Text variant="heading-md/medium" color="mobile-text-heading-primary">
{Reflect.apply(format, intl, [EQa7os, {questName: quest.config.messages.questName}])}
</Text>
</View>
);
items4[2] = (
<Text color="text-default" variant="text-sm/normal">
{value15}
</Text>
);
const view2 = (
<View style={styles.rewardContentWrapper}>
{value17}
<View style={styles.rewardContent}>
{questRewardTile}
<View style={styles.rewardContentCopy}>
{items4}
</View>
</View>
</View>
</PremiumRewardGradient>
);
}
function* _fun104335() { // fn#104335, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:1958, offset: 0x02292861, size: 316 bytes, params: 1, frame: 21
var binding3;
var value7;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
var value3 = binding(binding2[19]);
var enrollInQuest = value3.enrollInQuest;
var id = require.id;
var object2 = {};
var QuestContentCTA = binding(binding2[20]).QuestContentCTA;
var ACCEPT_QUEST = QuestContentCTA.ACCEPT_QUEST;
object2.questContentCTA = ACCEPT_QUEST;
var QuestContent = binding(binding2[21]).QuestContent;
var QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.questContent = QUEST_BAR_MOBILE;
QuestContent = binding(binding2[21]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
yield Reflect.apply(enrollInQuest, value3, [id, object2]);
if (false) {
return undefined;
}
if (dependencyMap) {
yield env1_3();
if (false) {
return undefined;
);
const view = <View style={styles.questDockCtaSaparator} />;
const ShinyButton = (NativeModule).ShinyButton;
return (
<PremiumRewardGradient {...premiumRewardGradientProps}>
{view2}
<View style={styles.questDockCtaWrapper}>
{view}
<View style={styles.questDockCtaRow}>
<ShinyButton
style={styles.questDockCta}
onPress={value13}
loading={value4}
renderIcon={renderIcon_104336}
text={value14}
shineDisabled={value18}
/>
</View>
</View>
</PremiumRewardGradient>
);
function* _fun104335() { // fn#104335, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:1958, offset: 0x02292861, size: 316 bytes, params: 1, frame: 21
var binding3;
var value7;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
var value3 = binding(binding2[19]);
var enrollInQuest = value3.enrollInQuest;
var id = require.id;
var object = {};
var QuestContentCTA = binding(binding2[20]).QuestContentCTA;
var ACCEPT_QUEST = QuestContentCTA.ACCEPT_QUEST;
object.questContentCTA = ACCEPT_QUEST;
var QuestContent = binding(binding2[21]).QuestContent;
var QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.questContent = QUEST_BAR_MOBILE;
QuestContent = binding(binding2[21]).QuestContent;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object.sourceQuestContent = QUEST_BAR_MOBILE;
yield Reflect.apply(enrollInQuest, value3, [id, object]);
if (false) {
return undefined;
}
if (dependencyMap) {
yield env1_3();
if (false) {
return undefined;
}
env1_4(env2_8.COLLAPSED);
} else if (importDefault) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[22]);
object = {};
object.questId = require.id;
binding = env2_0;
object.sourceQuestContent = binding(binding3[21]).QuestContent.QUEST_BAR_MOBILE;
value7(object);
binding = env1_4;
binding(env2_8.COLLAPSED);
}
}
env1_4(env2_8.COLLAPSED);
} else if (importDefault) {
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[22]);
object2 = {};
object2.questId = require.id;
binding = env2_0;
object2.sourceQuestContent = binding(binding3[21]).QuestContent.QUEST_BAR_MOBILE;
value7(object2);
binding = env1_4;
binding(env2_8.COLLAPSED);
}
function QuestDockUnenrolledBodyRenderIcon() { // fn#104336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:3507, owner: QuestDockUnenrolledBody.renderIcon, offset: 0x0229299d, size: 48 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (QuestUtilsNativeModule).getPrimaryCtaIcon(quest, true);
}
}
}
function QuestDockUnenrolledBodyRenderIcon() { // fn#104336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13859:3507, owner: QuestDockUnenrolledBody.renderIcon, offset: 0x0229299d, size: 48 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (require(9480) /* metro dependency 9480: QuestUtilsNative */).getPrimaryCtaIcon(quest, true);
}
global.__d(_fun104330, 13662, [5, 31, 27, 7093, 13570, 6528, 13572, 33, 4501, 697, 13650, 632, 13568, 9483, 1585,
5176, 9502, 9503, 13576, 9484, 7120, 6531, 13595, 9950, 13634, 13631, 9542, 13635, 4573, 1244, 1305, 9480,
2]) /* metro module 13662, dependencies: [5, 31, 27, 7093, 13570, 6528, 13572, 33, 4501, 697, 13650, 632, 13568, 9483, 1585, 5176, 9502, 9503, 13576, 9484, 7120, 6531, 13595, 9950, 13634, 13631, 9542, 13635, 4573, 1244, 1305, 9480, 2] */;
@@ -1,378 +1,428 @@
/* Metro module 13655; source: modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx; dependencies: [57, 31, 27, 6528, 13572, 482, 33, 4501, 697, 4577, 13650, 13573, 478, 13569, 13580, 6531, 7120, 4048, 4002, 5176, 3860, 13652, 4017, 13568, 8141, 13656, 13631, 5475, 13658, 13659, 13622, 4573, 1244, 5278, 10139, 8638, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import FastImage from '../../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */
import QuestDisclosureModalActionCreators from '../QuestDisclosureModal/QuestDisclosureModalActionCreators.tsx'; /* Metro dependency 13580 */
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
import UseQuestDockAnimatedBorderRadius from './useQuestDockAnimatedBorderRadius.tsx'; /* Metro dependency 13652 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */
import * as ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as AnalyticsTypesModule from '../../lib/analytics/AnalyticsTypes.tsx'; /* Metro dependency 7120 */
import * as MoreHorizontalIconModule from '../../../../design/components/Icon/native/redesign/generated/MoreHorizontalIcon.tsx'; /* Metro dependency 8638 */
import * as CircleQuestionIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleQuestionIcon.tsx'; /* Metro dependency 10139 */
import * as QuestHooksNativeModule from '../QuestHooks.native.tsx'; /* Metro dependency 13568 */
import * as QuestDockHooksModule from './QuestDockHooks.tsx'; /* Metro dependency 13569 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */
function _fun104295(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6, offset: 0x0228f0a7, size: 725 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_5 = value2.AccessibilityInfo;
const env0_6 = value2.View;
const env0_7 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
const env0_8 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
const env0_9 = questDockConstantsModule.QUEST_DOCK_CONTENT_BORDER_RADII;
const QUEST_DOCK_COLLAPSED_HEIGHT = questDockConstantsModule.QUEST_DOCK_COLLAPSED_HEIGHT;
const env0_10 = questDockConstantsModule.QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
const env0_11 = questDockConstantsModule.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
const env0_12 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
const value4 = require(33) /* metro dependency 33 */;
const env0_13 = value4.jsx;
const env0_14 = value4.jsxs;
const env0_15 = value4.Fragment;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
object2.questDockHeader = {'alignItems': 'center', 'justifyContent': 'space-between', 'flexDirection': 'row',
let value = ReactModule;
const QUEST_DOCK_COLLAPSED_HEIGHT = QuestDockConstantsModule.QUEST_DOCK_COLLAPSED_HEIGHT;
const createStyles = CreateStylesModule.createStyles;
object = {};
object.questDockHeader = {'alignItems': 'center', 'justifyContent': 'space-between', 'flexDirection': 'row',
'height': null, 'overflow': 'hidden', 'paddingRight': 16, 'paddingLeft': 8, 'position': 'absolute', 'zIndex': 2,
height: QUEST_DOCK_COLLAPSED_HEIGHT};
object2.wreathImage = {'height': 35, 'marginRight': 4, 'width': 35};
object2.questDockHeaderPrimary = {'alignItems': 'center', 'flexDirection': 'row'};
object2.logo = {marginTop: 2};
object2.questDockHeaderSecondary = {'flexGrow': 0, 'flexShrink': 0};
object2.questDockHeaderContentCollapsed = {'justifyContent': 'center', 'position': 'absolute', 'bottom': 0,
'top': 0, 'right': 0};
object2.questDockHeaderContentExpanded = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 8};
object2.questDockHeaderActionDisclosures = {'alignItems': 'center', 'display': 'flex', 'flexDirection': 'row',
object.wreathImage = {'height': 35, 'marginRight': 4, 'width': 35};
object.questDockHeaderPrimary = {'alignItems': 'center', 'flexDirection': 'row'};
object.logo = {marginTop: 2};
object.questDockHeaderSecondary = {'flexGrow': 0, 'flexShrink': 0};
object.questDockHeaderContentCollapsed = {'justifyContent': 'center', 'position': 'absolute', 'bottom': 0, 'top': 0,
'right': 0};
object.questDockHeaderContentExpanded = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 8};
object.questDockHeaderActionDisclosures = {'alignItems': 'center', 'display': 'flex', 'flexDirection': 'row',
'gap': 4};
object2.questDockHeaderActionDisclosuresIcon = {'height': 14, 'width': 14};
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
object2.questDockHeaderActionSeparator = {'backgroundColor': null, 'opacity': 0.2, 'height': 18, 'width': 1.5,
object.questDockHeaderActionDisclosuresIcon = {'height': 14, 'width': 14};
const TEXT_DEFAULT = (Native).colors.TEXT_DEFAULT;
object.questDockHeaderActionSeparator = {'backgroundColor': null, 'opacity': 0.2, 'height': 18, 'width': 1.5,
backgroundColor: TEXT_DEFAULT};
object2.questDockHeaderTertiaryContent = {opacity: 0.7};
const env0_16 = Reflect.apply(createStyles, createStylesModule, [object2]);
object2 = {code: 'function questDockHeaderLayoutAnimation_QuestDockUnenrolledHeaderTsx1(values){const{withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:withSpring(values.targetOriginX,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),originY:withSpring(values.targetOriginY,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:withSpring(values.targetHeight,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),width:withSpring(values.targetWidth,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}};}'};
object.questDockHeaderTertiaryContent = {opacity: 0.7};
const env0_16 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function questDockHeaderLayoutAnimation_QuestDockUnenrolledHeaderTsx1(values){const{withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:withSpring(values.targetOriginX,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),originY:withSpring(values.targetOriginY,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:withSpring(values.targetHeight,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),width:withSpring(values.targetWidth,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}};}'};
const env0_18 = _fun104296();
object2 = {code: 'function QuestDockUnenrolledHeaderTsx2(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,width:activeQuestDockMode.get()===QuestDockMode.EXPANDED?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}]};}'};
object2 = {code: 'function QuestDockUnenrolledHeaderTsx3(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'};
object2 = {code: 'function QuestDockUnenrolledHeaderTsx4(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED*-1:0};}'};
object2 = {code: 'function QuestDockUnenrolledHeaderTsx5(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'};
object2 = {code: 'function QuestDockUnenrolledHeaderTsx6(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};}'};
object2 = {code: "function QuestDockUnenrolledHeaderTsx7(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}"};
object2 = {code: 'function QuestDockUnenrolledHeaderTsx8(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs}=this.__closure;return{borderRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,width:questDockWrapperSpecs.get().width};}'};
object = {code: 'function QuestDockUnenrolledHeaderTsx2(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,width:activeQuestDockMode.get()===QuestDockMode.EXPANDED?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}]};}'};
object = {code: 'function QuestDockUnenrolledHeaderTsx3(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'};
object = {code: 'function QuestDockUnenrolledHeaderTsx4(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED*-1:0};}'};
object = {code: 'function QuestDockUnenrolledHeaderTsx5(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'};
object = {code: 'function QuestDockUnenrolledHeaderTsx6(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};}'};
object = {code: "function QuestDockUnenrolledHeaderTsx7(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}"};
object = {code: 'function QuestDockUnenrolledHeaderTsx8(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs}=this.__closure;return{borderRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,width:questDockWrapperSpecs.get().width};}'};
value = value.memo(QuestDockUnenrolledHeader);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx');
exports.default = value;
}
function _fun104296() { // fn#104296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:1958, offset: 0x0228f37c, size: 88 bytes, params: 1, frame: 14
const questDockHeaderLayoutAnimation2 = questDockHeaderLayoutAnimation;
const object = {};
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
questDockHeaderLayoutAnimation2.__closure = object;
questDockHeaderLayoutAnimation2.__workletHash = 6787168806966;
questDockHeaderLayoutAnimation2.__initData = env0_17;
return questDockHeaderLayoutAnimation2;
function questDockHeaderLayoutAnimation({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetHeight, targetWidth}) { // fn#104297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:2004, offset: 0x0228f3d4, size: 205 bytes, params: 2, frame: 20
const object = {};
object.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth,
height: currentHeight};
const object3 = {};
const value = environment.__proto__;
object3.originX = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginX,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object3.originY = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginY,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object3.height = (require(4577) /* metro dependency 4577: spring */).withSpring(targetHeight,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object3.width = (require(4577) /* metro dependency 4577: spring */).withSpring(targetWidth,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object.animations = object3;
return object;
}
function _fun104296() { // fn#104296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:1958, offset: 0x0228f37c, size: 88 bytes, params: 1, frame: 14
const closure = questDockHeaderLayoutAnimation;
const object2 = {};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
closure.__closure = object2;
closure.__workletHash = 6787168806966;
closure.__initData = env0_17;
return closure;
}
function QuestDockUnenrolledHeader() { // fn#104298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6344, offset: 0x0228f4a1, size: 2221 bytes, params: 1, frame: 42
var object2;
let binding = env0_4;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
useContext = binding.useContext;
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
const {activeQuestDockMode, questDockWrapperSpecs} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
const [property, env0_3] = env0_3Binding(binding.useState(false), 2);
let closure = _fun104299;
binding.useEffect(closure, []);
const value5 = (require(13569) /* metro dependency 13569: QuestDockHooks */).useActionSheetPressHandler(quest);
const value6 = binding.useCallback(_fun104301, [quest]);
const r19 = (require(4002) /* metro dependency 4002: shared */).isThemeDark((importDefault(4048) /* metro dependency 4048: useTheme */)()) ? ThemeTypes.DARK : ThemeTypes.LIGHT;
const value8 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDockUnenrolledHeader');
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 value9 = Reflect.apply(useToken, useTokenModule, [QUEST_DOCK_BORDER_RADIUS]);
const value10 = (importDefault(13652) /* metro dependency 13652: useQuestDockAnimatedBorderRadius */)(value9);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderB;
object2 = {activeQuestDockMode: activeQuestDockMode};
object2.QuestDockMode = QuestDockMode;
object2.QUEST_DOCK_CONTENT_BORDER_RADII = QUEST_DOCK_CONTENT_BORDER_RADII;
object2.questDockBorderRadius = value9;
object2.youBarEnabled = value8;
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.questDockAnimatedBorderRadius = value10;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
object2.questDockWrapperSpecs = questDockWrapperSpecs;
object2.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
closure.__closure = object2;
closure.__workletHash = 961167275812;
closure.__initData = env0_19;
const value11 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const moduleValue6 = reanimatedRexportModule;
useAnimatedStyle = moduleValue6.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[9]);
return {opacity: moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 1 : 0,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};
};
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED};
closure.__workletHash = 15527972438968;
closure.__initData = env0_20;
const value12 = Reflect.apply(useAnimatedStyle, moduleValue6, [closure]);
const moduleValue7 = reanimatedRexportModule;
useAnimatedStyle = moduleValue7.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderK;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};
closure.__workletHash = 7866036039040;
closure.__initData = env0_21;
const value13 = Reflect.apply(useAnimatedStyle, moduleValue7, [closure]);
const moduleValue8 = reanimatedRexportModule;
useAnimatedStyle = moduleValue8.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[9]);
return {opacity: moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : 1,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};
};
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED};
closure.__workletHash = 11647269239934;
closure.__initData = env0_22;
const value14 = Reflect.apply(useAnimatedStyle, moduleValue8, [closure]);
const moduleValue9 = reanimatedRexportModule;
useAnimatedStyle = moduleValue9.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderG;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};
closure.__workletHash = 14794727045076;
closure.__initData = env0_23;
const value15 = Reflect.apply(useAnimatedStyle, moduleValue9, [closure]);
const moduleValue10 = reanimatedRexportModule;
const useAnimatedProps = moduleValue10.useAnimatedProps;
closure = QuestDockUnenrolledHeaderF;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode};
closure.__workletHash = 6738114933032;
closure.__initData = env0_24;
const value16 = Reflect.apply(useAnimatedProps, moduleValue10, [closure]);
const moduleValue11 = reanimatedRexportModule;
useAnimatedStyle = moduleValue11.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderB_104308;
object2 = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_CONTENT_BORDER_RADII: QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: value9,
youBarEnabled: value8};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.questDockAnimatedBorderRadius = value10;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
object2.questDockWrapperSpecs = questDockWrapperSpecs;
closure.__closure = object2;
closure.__workletHash = 6128777581416;
closure.__initData = env0_25;
const value17 = Reflect.apply(useAnimatedStyle, moduleValue11, [closure]);
const styles = useStyles();
const value18 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useQuestGameLogotypeAssetUrl(quest);
const questBarHeroBlurhash = quest.config.assets.questBarHeroBlurhash;
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
object2 = {style: [styles.questDockHeader, value11], layout: env0_18};
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
const items2 = [(platformUtilsModule.isAndroid() || property) && questBarHeroBlurhash != null ? ((Component) => <Component placeholder={questBarHeroBlurhash} animatedStyle={value17} animatedLayout={env0_18} />)(importDefault(13656) /* metro dependency 13656: QuestDockBlurredHeaderPlaceholder */) : ((Component) => <Component animatedStyle={value17} animatedLayout={env0_18} />)(importDefault(13631) /* metro dependency 13631: QuestDockBlurredContentBackground */)];
const FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
const DARK = ThemeTypes.DARK;
items2[1] = <View style={styles.questDockHeaderPrimary}><FastImage source={r19 === DARK ? importDefault(13658) /* metro dependency 13658 */ : importDefault(13659) /* metro dependency 13659 */} resizeMode="contain" style={styles.wreathImage} />{((Component) => <Component assetUrl={value18} height={36} maxWidth={120} style={styles.logo} />)(importDefault(13622) /* metro dependency 13622: QuestGameLogotype */)}</View>;
const defaultImport8 = ReanimatedNativeView;
const items4 = [styles.questDockHeaderContentCollapsed, value13];
binding = env0_18;
const defaultImport9 = ReanimatedNativeView;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let questDockHeaderTertiaryContent = styles.questDockHeaderTertiaryContent;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const defaultImport82 = ((Component) => <Component style={items4} layout={binding}>{((Component) => <Component style={value12}><Text style={questDockHeaderTertiaryContent} variant="text-sm/medium" color="interactive-text-active">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3mgEQf'])}</Text></Component>)(defaultImport9)}</Component>)(defaultImport8);
const defaultImport10 = ReanimatedNativeView;
const defaultImport11 = ReanimatedNativeView;
const items6 = [styles.questDockHeaderContentExpanded, value14];
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const items7 = [styles.questDockHeaderActionDisclosures];
items7[1] = styles.questDockHeaderTertiaryContent;
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
let value = <Text color="interactive-text-active" variant="text-sm/medium">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o6FLcF)}</Text>;
const CircleQuestionIcon = (require(10139) /* metro dependency 10139: CircleQuestionIcon */).CircleQuestionIcon;
let INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
value = <PressableOpacity onPress={value6} accessibilityRole="button" style={items7}><>{value}<CircleQuestionIcon color={INTERACTIVE_TEXT_ACTIVE} style={styles.questDockHeaderActionDisclosuresIcon} /></></PressableOpacity>;
const items9 = [value];
items9[1] = <View style={styles.questDockHeaderActionSeparator} />;
questDockHeaderTertiaryContent = styles.questDockHeaderTertiaryContent;
const MoreHorizontalIcon = (require(8638) /* metro dependency 8638: MoreHorizontalIcon */).MoreHorizontalIcon;
INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
items9[2] = <PressableOpacity accessibilityRole="button" onPress={value5} style={questDockHeaderTertiaryContent}><MoreHorizontalIcon color={INTERACTIVE_TEXT_ACTIVE} /></PressableOpacity>;
items2[2] = <View style={styles.questDockHeaderSecondary}>{defaultImport82}{((Component) => <Component animatedProps={value16} style={value15} layout={binding}>{((Component) => <Component style={items6}>{items9}</Component>)(defaultImport11)}</Component>)(defaultImport10)}</View>;
return (
<ReanimatedNativeView {...object2}>
{items2}
</ReanimatedNativeView>
);
}
function questDockHeaderLayoutAnimation({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetHeight, targetWidth}) { // fn#104297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:2004, offset: 0x0228f3d4, size: 205 bytes, params: 2, frame: 20
const object2 = {};
object2.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth,
height: currentHeight};
const object4 = {};
const value = environment.__proto__;
object4.originX = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginX,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object4.originY = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginY,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object4.height = (require(4577) /* metro dependency 4577: spring */).withSpring(targetHeight,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object4.width = (require(4577) /* metro dependency 4577: spring */).withSpring(targetWidth,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
object2.animations = object4;
return object2;
}
function _fun104299() { // fn#104299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6568, offset: 0x0228fd4e, size: 104 bytes, params: 1, frame: 14
var environment;
var then;
var binding;
let value = environment.__proto__;
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
if (platformUtilsModule.isIOS()) {
value = AccessibilityInfo.isReduceTransparencyEnabled();
then = value.then;
binding = env0_3;
Reflect.apply(then, value, [binding]);
var env0_0 = AccessibilityInfo.addEventListener('reduceTransparencyChanged', binding);
return _fun104300;
}
}
function _fun104301() { // fn#104301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6794, offset: 0x0228fdb6, size: 153 bytes, params: 1, frame: 17
const defaultImport = importDefault(13580) /* metro dependency 13580: QuestDisclosureModalActionCreators */;
const showModal = defaultImport.showModal;
const object3 = {};
object3.quest = quest;
object3.isTargetedDisclosure = true;
const object4 = {};
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object4.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE;
object4.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object4.sourceQuestContent = QUEST_BAR_MOBILE;
object3.trackingCtx = object4;
Reflect.apply(showModal, defaultImport, [object3]);
}
function QuestDockUnenrolledHeader() { // fn#104298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6344, offset: 0x0228f4a1, size: 2221 bytes, params: 1, frame: 42
let binding = env0_4;
let useContext = binding.useContext;
const quest = Reflect.apply(useContext, binding,
[QuestDockContext]).quest;
useContext = binding.useContext;
const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext;
const {activeQuestDockMode, questDockWrapperSpecs} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
const [property, env0_3] = env0_3Binding(binding.useState(false), 2);
let closure = _fun104299;
binding.useEffect(closure, []);
const value5 = (QuestDockHooksModule).useActionSheetPressHandler(quest);
const value6 = binding.useCallback(_fun104301, [quest]);
const r19 = (require(4002) /* metro dependency 4002: shared */).isThemeDark((importDefault(4048) /* metro dependency 4048: useTheme */)()) ? ThemeTypes.DARK : ThemeTypes.LIGHT;
const value8 = (YouBarExperimentModule).useYouBarEnabled('QuestDockUnenrolledHeader');
const useToken = UseTokenModule.useToken;
const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS;
const value9 = Reflect.apply(useToken, UseTokenModule, [QUEST_DOCK_BORDER_RADIUS]);
const value10 = (UseQuestDockAnimatedBorderRadius)(value9);
let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderB;
object = {activeQuestDockMode: activeQuestDockMode};
object.QuestDockMode = QuestDockMode;
object.QUEST_DOCK_CONTENT_BORDER_RADII = QUEST_DOCK_CONTENT_BORDER_RADII;
object.questDockBorderRadius = value9;
object.youBarEnabled = value8;
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.questDockAnimatedBorderRadius = value10;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
object.questDockWrapperSpecs = questDockWrapperSpecs;
object.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
closure.__closure = object;
closure.__workletHash = 961167275812;
closure.__initData = env0_19;
const value11 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[9]);
return {opacity: moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 1 : 0,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};
};
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED};
closure.__workletHash = 15527972438968;
closure.__initData = env0_20;
const value12 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderK;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};
closure.__workletHash = 7866036039040;
closure.__initData = env0_21;
const value13 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = function() {
var moduleValue = require(dependencyMap[9]);
return {opacity: moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : 1,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};
};
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED};
closure.__workletHash = 11647269239934;
closure.__initData = env0_22;
const value14 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderG;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};
closure.__workletHash = 14794727045076;
closure.__initData = env0_23;
const value15 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const useAnimatedProps = ReanimatedRexportModule.useAnimatedProps;
closure = QuestDockUnenrolledHeaderF;
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode};
closure.__workletHash = 6738114933032;
closure.__initData = env0_24;
const value16 = Reflect.apply(useAnimatedProps, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = QuestDockUnenrolledHeaderB_104308;
object = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
QUEST_DOCK_CONTENT_BORDER_RADII: QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: value9,
youBarEnabled: value8};
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.questDockAnimatedBorderRadius = value10;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
object.questDockWrapperSpecs = questDockWrapperSpecs;
closure.__closure = object;
closure.__workletHash = 6128777581416;
closure.__initData = env0_25;
const value17 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const styles = useStyles();
const value18 = (QuestHooksNativeModule).useQuestGameLogotypeAssetUrl(quest);
const questBarHeroBlurhash = quest.config.assets.questBarHeroBlurhash;
object = {style: [styles.questDockHeader, value11], layout: env0_18};
const items2 = [
(PlatformUtilsModule.isAndroid() || property) && questBarHeroBlurhash != null
? ((Component) => <Component placeholder={questBarHeroBlurhash} animatedStyle={value17} animatedLayout={env0_18} />)(importDefault(13656) /* metro dependency 13656: QuestDockBlurredHeaderPlaceholder */)
: ((Component) => <Component animatedStyle={value17} animatedLayout={env0_18} />)(importDefault(13631) /* metro dependency 13631: QuestDockBlurredContentBackground */),
];
const DARK = ThemeTypes.DARK;
items2[1] = (
<View style={styles.questDockHeaderPrimary}>
<FastImage
source={r19 === DARK ? importDefault(13658) /* metro dependency 13658 */ : importDefault(13659) /* metro dependency 13659 */}
resizeMode="contain"
style={styles.wreathImage}
/>
{((Component) => <Component assetUrl={value18} height={36} maxWidth={120} style={styles.logo} />)(importDefault(13622) /* metro dependency 13622: QuestGameLogotype */)}
</View>
);
const defaultImport8 = ReanimatedNativeView;
const items4 = [styles.questDockHeaderContentCollapsed, value13];
binding = env0_18;
const defaultImport9 = ReanimatedNativeView;
const Text = (TextModule).Text;
let questDockHeaderTertiaryContent = styles.questDockHeaderTertiaryContent;
const intl = (IndexNativeModule).intl;
const defaultImport82 = ((Component) => <Component style={items4} layout={binding}>{((Component) => <Component style={value12}><Text style={questDockHeaderTertiaryContent} variant="text-sm/medium" color="interactive-text-active">{intl.string((IndexNativeModule).t['3mgEQf'])}</Text></Component>)(defaultImport9)}</Component>)(defaultImport8);
const defaultImport10 = ReanimatedNativeView;
const defaultImport11 = ReanimatedNativeView;
const items6 = [styles.questDockHeaderContentExpanded, value14];
const PressableOpacity = (PressablesModule).PressableOpacity;
const items7 = [styles.questDockHeaderActionDisclosures];
items7[1] = styles.questDockHeaderTertiaryContent;
const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15;
let value = (
<Text color="interactive-text-active" variant="text-sm/medium">
{intl.string((IndexNativeModule).t.o6FLcF)}
</Text>
);
const CircleQuestionIcon = (CircleQuestionIconModule).CircleQuestionIcon;
let INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
value = (
<PressableOpacity
onPress={value6}
accessibilityRole="button"
style={items7}
>
<>
{value}
<CircleQuestionIcon color={INTERACTIVE_TEXT_ACTIVE} style={styles.questDockHeaderActionDisclosuresIcon} />
</>
</PressableOpacity>
);
const items9 = [value];
items9[1] = <View style={styles.questDockHeaderActionSeparator} />;
questDockHeaderTertiaryContent = styles.questDockHeaderTertiaryContent;
const MoreHorizontalIcon = (MoreHorizontalIconModule).MoreHorizontalIcon;
INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
items9[2] = (
<PressableOpacity
accessibilityRole="button"
onPress={value5}
style={questDockHeaderTertiaryContent}
>
<MoreHorizontalIcon color={INTERACTIVE_TEXT_ACTIVE} />
</PressableOpacity>
);
items2[2] = (
<View style={styles.questDockHeaderSecondary}>
{defaultImport82}
{((Component) => <Component animatedProps={value16} style={value15} layout={binding}>{((Component) => <Component style={items6}>{items9}</Component>)(defaultImport11)}</Component>)(defaultImport10)}
</View>
);
return (
<ReanimatedNativeView {...object}>
{items2}
</ReanimatedNativeView>
);
function _fun104299() { // fn#104299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6568, offset: 0x0228fd4e, size: 104 bytes, params: 1, frame: 14
var environment;
var then;
var binding;
let value = environment.__proto__;
if (PlatformUtilsModule.isIOS()) {
value = AccessibilityInfo.isReduceTransparencyEnabled();
then = value.then;
binding = env0_3;
Reflect.apply(then, value, [binding]);
var env0_0 = AccessibilityInfo.addEventListener('reduceTransparencyChanged', binding);
return _fun104300;
}
function _fun104300() { // fn#104300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6696, offset: 0x00cef11e, size: 19 bytes, params: 1, frame: 9
return env0_0.remove();
}
}
function _fun104301() { // fn#104301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6794, offset: 0x0228fdb6, size: 153 bytes, params: 1, frame: 17
const defaultImport = QuestDisclosureModalActionCreators;
const showModal = defaultImport.showModal;
const object = {};
object.quest = quest;
object.isTargetedDisclosure = true;
const object2 = {};
const QuestContent = (QuestTypesModule).QuestContent;
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.content = QUEST_BAR_MOBILE;
const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA;
const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE;
object2.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE;
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
object2.sourceQuestContent = QUEST_BAR_MOBILE;
object.trackingCtx = object2;
Reflect.apply(showModal, defaultImport, [object]);
}
function QuestDockUnenrolledHeaderB() { // fn#104302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:7270, owner: QuestDockUnenrolledHeader.B, offset: 0x0228fe4f, size: 545 bytes, params: 1, frame: 21
var r1;
var moduleValue;
var moduleValue2;
const object = {};
const value2 = activeQuestDockMode.get();
let EXPANDED = QuestDockMode.EXPANDED;
object.borderTopLeftRadius = value2 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : ReactNativeModule.AccessibilityInfo;
const value4 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
object.borderTopRightRadius = value4 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : ReactNativeModule.AccessibilityInfo;
const value5 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value5 === EXPANDED) {
r1 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue = require(4577) /* metro dependency 4577: spring */;
r1 = moduleValue.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r1 = ReactNativeModule.AccessibilityInfo;
}
object.borderBottomLeftRadius = r1;
const value8 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value8 === EXPANDED) {
r1 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue2 = require(4577) /* metro dependency 4577: spring */;
r1 = moduleValue2.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r1 = ReactNativeModule.AccessibilityInfo;
}
object.borderBottomRightRadius = r1;
const value11 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
object.width = value11 === EXPANDED ? questDockWrapperSpecs.get().width - 2 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED : questDockWrapperSpecs.get().width;
const springModule = require(4577) /* metro dependency 4577: spring */;
let withSpring = springModule.withSpring;
const value13 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
const value14 = 0;
const QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED2 = value13 !== EXPANDED ? value14 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
const items2 = [{translateX: Reflect.apply(withSpring, springModule, [QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED2,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])}];
const moduleValue4 = springModule;
withSpring = moduleValue4.withSpring;
const value = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
const QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED3 = value !== EXPANDED ? value14 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
items2[1] = {translateY: Reflect.apply(withSpring, moduleValue4, [QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED3,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])};
object.transform = items2;
return object;
}
function QuestDockUnenrolledHeaderK() { // fn#104304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:8365, owner: QuestDockUnenrolledHeader.K, offset: 0x022900c3, size: 57 bytes, params: 1, frame: 12
const value = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
return {right: value !== EXPANDED ? 0 : -1 * QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};
}
function QuestDockUnenrolledHeaderG() { // fn#104306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:8853, owner: QuestDockUnenrolledHeader.G, offset: 0x0229014f, size: 47 bytes, params: 1, frame: 12
const value = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
const QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED2 = value === EXPANDED ? 0 : QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
return {right: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED2};
}
function QuestDockUnenrolledHeaderF() { // fn#104307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:9071, owner: QuestDockUnenrolledHeader.f, offset: 0x0229017e, size: 50 bytes, params: 1, frame: 11
const value = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
return {pointerEvents: value !== EXPANDED ? 'none' : 'auto'};
}
function QuestDockUnenrolledHeaderB_104308() { // fn#104308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:9261, owner: QuestDockUnenrolledHeader.b, offset: 0x022901b0, size: 275 bytes, params: 1, frame: 17
var r2;
var moduleValue;
var moduleValue2;
const object = {};
const activeQuestDockModeBinding = activeQuestDockMode;
let get = activeQuestDockModeBinding.get;
const value2 = Reflect.apply(get, activeQuestDockModeBinding, []);
let EXPANDED = QuestDockMode.EXPANDED;
object.borderRadius = value2 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : ReactNativeModule.AccessibilityInfo;
const value4 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value4 === EXPANDED) {
r2 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue = require(4577) /* metro dependency 4577: spring */;
r2 = moduleValue.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r2 = ReactNativeModule.AccessibilityInfo;
}
object.borderBottomLeftRadius = r2;
const value7 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value7 === EXPANDED) {
r2 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue2 = require(4577) /* metro dependency 4577: spring */;
r2 = moduleValue2.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r2 = ReactNativeModule.AccessibilityInfo;
}
object.borderBottomRightRadius = r2;
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
get = questDockWrapperSpecsBinding.get;
object.width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
return object;
}
function QuestDockUnenrolledHeaderB() { // fn#104302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:7270, owner: QuestDockUnenrolledHeader.B, offset: 0x0228fe4f, size: 545 bytes, params: 1, frame: 21
var r1;
var moduleValue;
var moduleValue2;
const object2 = {};
const value2 = activeQuestDockMode.get();
let EXPANDED = QuestDockMode.EXPANDED;
object2.borderTopLeftRadius = value2 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : env0_5;
const value4 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
object2.borderTopRightRadius = value4 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : env0_5;
const value5 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value5 === EXPANDED) {
r1 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue = require(4577) /* metro dependency 4577: spring */;
r1 = moduleValue.withSpring(env0_6.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r1 = env0_5;
}
object2.borderBottomLeftRadius = r1;
const value8 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value8 === EXPANDED) {
r1 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue2 = require(4577) /* metro dependency 4577: spring */;
r1 = moduleValue2.withSpring(env0_6.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r1 = env0_5;
}
object2.borderBottomRightRadius = r1;
const value11 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
object2.width = value11 === EXPANDED ? questDockWrapperSpecs.get().width - 2 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED : questDockWrapperSpecs.get().width;
const springModule = require(4577) /* metro dependency 4577: spring */;
let withSpring = springModule.withSpring;
const value13 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
const value14 = 0;
const QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED2 = value13 !== EXPANDED ? value14 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
const items2 = [{translateX: Reflect.apply(withSpring, springModule, [QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED2,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])}];
const moduleValue4 = springModule;
withSpring = moduleValue4.withSpring;
const value = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
const QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED3 = value !== EXPANDED ? value14 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
items2[1] = {translateY: Reflect.apply(withSpring, moduleValue4, [QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED3,
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])};
object2.transform = items2;
return object2;
}
function QuestDockUnenrolledHeaderK() { // fn#104304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:8365, owner: QuestDockUnenrolledHeader.K, offset: 0x022900c3, size: 57 bytes, params: 1, frame: 12
const value = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
return {right: value !== EXPANDED ? 0 : -1 * QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};
}
function QuestDockUnenrolledHeaderG() { // fn#104306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:8853, owner: QuestDockUnenrolledHeader.G, offset: 0x0229014f, size: 47 bytes, params: 1, frame: 12
const value = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
const QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED2 = value === EXPANDED ? 0 : QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
return {right: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED2};
}
function QuestDockUnenrolledHeaderF() { // fn#104307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:9071, owner: QuestDockUnenrolledHeader.f, offset: 0x0229017e, size: 50 bytes, params: 1, frame: 11
const value = activeQuestDockMode.get();
const EXPANDED = QuestDockMode.EXPANDED;
return {pointerEvents: value !== EXPANDED ? 'none' : 'auto'};
}
function QuestDockUnenrolledHeaderB_104308() { // fn#104308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:9261, owner: QuestDockUnenrolledHeader.b, offset: 0x022901b0, size: 275 bytes, params: 1, frame: 17
var r2;
var moduleValue;
var moduleValue2;
const object2 = {};
const activeQuestDockModeBinding = activeQuestDockMode;
let get = activeQuestDockModeBinding.get;
const value2 = Reflect.apply(get, activeQuestDockModeBinding, []);
let EXPANDED = QuestDockMode.EXPANDED;
object2.borderRadius = value2 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : env0_5;
const value4 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value4 === EXPANDED) {
r2 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue = require(4577) /* metro dependency 4577: spring */;
r2 = moduleValue.withSpring(env0_6.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r2 = env0_5;
}
object2.borderBottomLeftRadius = r2;
const value7 = activeQuestDockMode.get();
EXPANDED = QuestDockMode.EXPANDED;
if (value7 === EXPANDED) {
r2 = QUEST_DOCK_CONTENT_BORDER_RADII;
} else if (env0_4) {
moduleValue2 = require(4577) /* metro dependency 4577: spring */;
r2 = moduleValue2.withSpring(env0_6.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
} else {
r2 = env0_5;
}
object2.borderBottomRightRadius = r2;
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
get = questDockWrapperSpecsBinding.get;
object2.width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
return object2;
}
global.__d(_fun104295, 13655, [57, 31, 27, 6528, 13572, 482, 33, 4501, 697, 4577, 13650, 13573, 478, 13569, 13580,
6531, 7120, 4048, 4002, 5176, 3860, 13652, 4017, 13568, 8141, 13656, 13631, 5475, 13658, 13659, 13622, 4573,
1244, 5278, 10139, 8638,
2]) /* metro module 13655, dependencies: [57, 31, 27, 6528, 13572, 482, 33, 4501, 697, 4577, 13650, 13573, 478, 13569, 13580, 6531, 7120, 4048, 4002, 5176, 3860, 13652, 4017, 13568, 8141, 13656, 13631, 5475, 13658, 13659, 13622, 4573, 1244, 5278, 10139, 8638, 2] */;
@@ -1,10 +1,15 @@
/* Metro module 13571; source: modules/quests/native/QuestDock/QuestDockUtils.tsx; dependencies: [27, 13572, 672, 4577, 2] */
import Durations from '../../../../utils/Durations.tsx'; /* Metro dependency 672 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */
function _fun103155(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:6, offset: 0x0225a722, size: 414 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PixelRatio = (require(27) /* metro dependency 27 */).PixelRatio;
let value = require(13572) /* metro dependency 13572: QuestDockConstants */;
const PixelRatio = (ReactNativeModule).PixelRatio;
let value = QuestDockConstantsModule;
const env0_2 = value.QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED;
const env0_3 = value.QUEST_DOCK_COLLAPSED_MAX_WIDTH;
const env0_4 = value.QUEST_DOCK_COLLAPSED_HEIGHT;
@@ -20,12 +25,12 @@ function _fun103155(global, require, importDefault, importAll, module, exports,
const value4 = _fun103162();
object = {code: 'function getQuestDockClosedWidth_QuestDockUtilsTsx5(windowWidth,safeAreaLeft,safeAreaRight){const{QUEST_DOCK_COLLAPSED_MAX_WIDTH}=this.__closure;return Math.min(windowWidth-safeAreaLeft-safeAreaRight,QUEST_DOCK_COLLAPSED_MAX_WIDTH);}'};
const value5 = _fun103164();
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const Millis = (Durations).Millis;
const HOUR = Millis.HOUR;
const env0_12 = 3 * HOUR;
object = {code: 'function dimensionsLayoutTransition_QuestDockUtilsTsx6(values){const{withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:withSpring(values.targetOriginX,QUEST_DOCK_MODE_CHANGE_PHYSICS),originY:withSpring(values.targetOriginY,QUEST_DOCK_MODE_CHANGE_PHYSICS),height:withSpring(values.targetHeight,QUEST_DOCK_MODE_CHANGE_PHYSICS),width:withSpring(values.targetWidth,QUEST_DOCK_MODE_CHANGE_PHYSICS)}};}'};
const value6 = _fun103166();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUtils.tsx');
exports.roundToNearestPixel = value;
exports.getQuestDockExpandedHeightLimits = value2;
exports.getQuestDockCollapsedWidth = value3;
@@ -33,116 +38,118 @@ function _fun103155(global, require, importDefault, importAll, module, exports,
exports.getQuestDockClosedWidth = value5;
exports.isSoftDismissed = isSoftDismissed;
exports.dimensionsLayoutTransition = value6;
}
function _fun103156() { // fn#103156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:452, offset: 0x0225a8c0, size: 57 bytes, params: 1, frame: 4
const roundToNearestPixel2 = roundToNearestPixel;
roundToNearestPixel2.__closure = {PIXEL_DENSITY: env0_6};
roundToNearestPixel2.__workletHash = 9602449563120;
roundToNearestPixel2.__initData = env0_7;
return roundToNearestPixel2;
function roundToNearestPixel(a0) { // fn#103157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:487, offset: 0x0225a8f9, size: 38 bytes, params: 2, frame: 12
const Math = global.Math;
const round = Math.round;
const binding = env1_6;
return Reflect.apply(round, Math, [a0 * binding]) / binding;
}
function _fun103156() { // fn#103156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:452, offset: 0x0225a8c0, size: 57 bytes, params: 1, frame: 4
const closure = roundToNearestPixel;
closure.__closure = {PIXEL_DENSITY: env0_6};
closure.__workletHash = 9602449563120;
closure.__initData = env0_7;
return closure;
}
function _fun103158() { // fn#103158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:961, offset: 0x0225a91f, size: 57 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var object = {};
object.minHeight = QUEST_DOCK_COLLAPSED_HEIGHT;
var Math = global.Math;
object.maxHeight = Math.min(a2, a0 - a1);
return object;
};
closure.__closure = {QUEST_DOCK_COLLAPSED_HEIGHT: QUEST_DOCK_COLLAPSED_HEIGHT};
closure.__workletHash = 880847803554;
closure.__initData = env0_8;
return closure;
}
function _fun103160() { // fn#103160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:1752, offset: 0x0225a98d, size: 66 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var Math = global.Math;
var value2 = Math.max(a1, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED);
Math = global.Math;
var value3 = Math.max(a2, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED);
Math = global.Math;
return Math.min(a0 - value2 - value3, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
};
closure.__closure = {QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED,
QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 1119343760780;
closure.__initData = env0_9;
return closure;
}
function _fun103162() { // fn#103162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:2367, offset: 0x0225aa22, size: 57 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var Math = global.Math;
return Math.min(a0 - a1 - a2, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
};
closure.__closure = {QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 6480418564130;
closure.__initData = env0_10;
return closure;
}
function _fun103164() { // fn#103164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:2897, offset: 0x0225aa88, size: 57 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var Math = global.Math;
return Math.min(a0 - a1 - a2, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
};
closure.__closure = {QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 14159592925974;
closure.__initData = env0_11;
return closure;
}
function _fun103166() { // fn#103166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:3773, offset: 0x0225aac1, size: 88 bytes, params: 1, frame: 14
const closure = dimensionsLayoutTransition;
const object2 = {};
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
closure.__closure = object2;
closure.__workletHash = 4497154070776;
closure.__initData = env0_13;
return closure;
}
function isSoftDismissed(a0) { // fn#103168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:4623, offset: 0x0225abe6, size: 46 bytes, params: 2, frame: 11
var r0;
var Date;
let value = a0 != null;
if (value) {
Date = global.Date;
value = Date.now() - a0;
value = value < env0_12;
r0 = value;
} else {
r0 = value;
}
return r0;
}
function roundToNearestPixel(a0) { // fn#103157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:487, offset: 0x0225a8f9, size: 38 bytes, params: 2, frame: 12
const Math = global.Math;
const round = Math.round;
const binding = env1_6;
return Reflect.apply(round, Math, [a0 * binding]) / binding;
}
function dimensionsLayoutTransition({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetHeight, targetWidth}) { // fn#103167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:3815, offset: 0x0225ab19, size: 205 bytes, params: 2, frame: 20
const object2 = {};
object2.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth,
height: currentHeight};
const object4 = {};
const value = environment.__proto__;
object4.originX = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginX,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object4.originY = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginY,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object4.height = (require(4577) /* metro dependency 4577: spring */).withSpring(targetHeight,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object4.width = (require(4577) /* metro dependency 4577: spring */).withSpring(targetWidth,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object2.animations = object4;
return object2;
function _fun103158() { // fn#103158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:961, offset: 0x0225a91f, size: 57 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var object = {};
object.minHeight = QUEST_DOCK_COLLAPSED_HEIGHT;
var Math = global.Math;
object.maxHeight = Math.min(a2, a0 - a1);
return object;
};
closure.__closure = {QUEST_DOCK_COLLAPSED_HEIGHT: QUEST_DOCK_COLLAPSED_HEIGHT};
closure.__workletHash = 880847803554;
closure.__initData = env0_8;
return closure;
}
function _fun103160() { // fn#103160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:1752, offset: 0x0225a98d, size: 66 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var Math = global.Math;
var value2 = Math.max(a1, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED);
Math = global.Math;
var value3 = Math.max(a2, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED);
Math = global.Math;
return Math.min(a0 - value2 - value3, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
};
closure.__closure = {QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED,
QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 1119343760780;
closure.__initData = env0_9;
return closure;
}
function _fun103162() { // fn#103162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:2367, offset: 0x0225aa22, size: 57 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var Math = global.Math;
return Math.min(a0 - a1 - a2, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
};
closure.__closure = {QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 6480418564130;
closure.__initData = env0_10;
return closure;
}
function _fun103164() { // fn#103164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:2897, offset: 0x0225aa88, size: 57 bytes, params: 1, frame: 4
const closure = function(a0, a1, a2) {
var Math = global.Math;
return Math.min(a0 - a1 - a2, QUEST_DOCK_COLLAPSED_MAX_WIDTH);
};
closure.__closure = {QUEST_DOCK_COLLAPSED_MAX_WIDTH: QUEST_DOCK_COLLAPSED_MAX_WIDTH};
closure.__workletHash = 14159592925974;
closure.__initData = env0_11;
return closure;
}
function _fun103166() { // fn#103166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:3773, offset: 0x0225aac1, size: 88 bytes, params: 1, frame: 14
const dimensionsLayoutTransition2 = dimensionsLayoutTransition;
const object = {};
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
object.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
dimensionsLayoutTransition2.__closure = object;
dimensionsLayoutTransition2.__workletHash = 4497154070776;
dimensionsLayoutTransition2.__initData = env0_13;
return dimensionsLayoutTransition2;
function dimensionsLayoutTransition({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetHeight, targetWidth}) { // fn#103167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:3815, offset: 0x0225ab19, size: 205 bytes, params: 2, frame: 20
const object = {};
object.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth,
height: currentHeight};
const object3 = {};
const value = environment.__proto__;
object3.originX = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginX,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object3.originY = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginY,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object3.height = (require(4577) /* metro dependency 4577: spring */).withSpring(targetHeight,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object3.width = (require(4577) /* metro dependency 4577: spring */).withSpring(targetWidth,
QUEST_DOCK_MODE_CHANGE_PHYSICS);
object.animations = object3;
return object;
}
}
function isSoftDismissed(a0) { // fn#103168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13761:4623, offset: 0x0225abe6, size: 46 bytes, params: 2, frame: 11
var r0;
var Date;
let value = a0 != null;
if (value) {
Date = global.Date;
value = Date.now() - a0;
value = value < env0_12;
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
global.__d(_fun103155, 13571, [27, 13572, 672, 4577,
2]) /* metro module 13571, dependencies: [27, 13572, 672, 4577, 2] */;
@@ -1,30 +1,37 @@
/* Metro module 13578; source: modules/quests/native/QuestDock/WreathIcon.tsx; dependencies: [31, 33, 697, 3859, 13579, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BaseIconImageModule from '../../../../design/components/Icon/native/BaseIconImage.tsx'; /* Metro dependency 3859 */
import * as Module13579Module from '../../../../by-id/module-13579.js'; /* Metro dependency 13579 */
function _fun103217(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13768:6, offset: 0x0225d1d5, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/WreathIcon.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/WreathIcon.tsx');
exports.default = WreathIcon;
function WreathIcon(a0) { // fn#103218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13768:208, offset: 0x0225d25f, size: 154 bytes, params: 2, frame: 20
const style = a0.style;
const color = a0.color;
const r6 = color !== undefined ? color : (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
const value = Object.create(null);
value.style = 0;
value.color = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const BaseIconImage = (BaseIconImageModule).BaseIconImage;
return (
<BaseIconImage
source={Module13579Module}
color={r6}
style={style}
{...value2}
/>
);
}
}
function WreathIcon(a0) { // fn#103218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13768:208, offset: 0x0225d25f, size: 154 bytes, params: 2, frame: 20
const style = a0.style;
const color = a0.color;
const r6 = color !== undefined ? color : (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
const value = Object.create(null);
value.style = 0;
value.color = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const BaseIconImage = (require(3859) /* metro dependency 3859: BaseIconImage */).BaseIconImage;
return (
<BaseIconImage
source={require(13579) /* metro dependency 13579 */}
color={r6}
style={style}
{...value2}
/>
);
}
global.__d(_fun103217, 13578, [31, 33, 697, 3859, 13579,
2]) /* metro module 13578, dependencies: [31, 33, 697, 3859, 13579, 2] */;
@@ -1,46 +1,50 @@
/* Metro module 13652; source: modules/quests/native/QuestDock/useQuestDockAnimatedBorderRadius.tsx; dependencies: [31, 13576, 4017, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as QuestDockExternalCoordinationContextModule from './QuestDockExternalCoordinationContext.tsx'; /* Metro dependency 13576 */
function _fun104277(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13849:6, offset: 0x0228d804, size: 130 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
object = {code: 'function useQuestDockAnimatedBorderRadiusTsx1(){const{interpolate,questDockOffset,minBorder,maxBorder,Extrapolation}=this.__closure;return interpolate(questDockOffset.get(),[0,50],[minBorder,maxBorder],Extrapolation.CLAMP);}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/useQuestDockAnimatedBorderRadius.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/useQuestDockAnimatedBorderRadius.tsx');
exports.default = useQuestDockAnimatedBorderRadius;
function useQuestDockAnimatedBorderRadius(a0) { // fn#104278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13849:454, offset: 0x0228d886, size: 207 bytes, params: 2, frame: 21
const value = a1;
const env0_0 = a0;
const r10 = value !== undefined ? value : 0;
const binding = undefined;
const useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext;
const questDockOffset = Reflect.apply(useContext, binding, [QuestDockExternalCoordinationContext]).questDockOffset;
const useDerivedValue = ReanimatedRexportModule.useDerivedValue;
const useQuestDockAnimatedBorderRadiusU2 = useQuestDockAnimatedBorderRadiusU;
const object = {};
object.interpolate = ReanimatedRexportModule.interpolate;
object.questDockOffset = questDockOffset;
object.minBorder = r10;
object.maxBorder = a0;
const Extrapolation = ReanimatedRexportModule.Extrapolation;
object.Extrapolation = Extrapolation;
useQuestDockAnimatedBorderRadiusU2.__closure = object;
useQuestDockAnimatedBorderRadiusU2.__workletHash = 17005846780112;
useQuestDockAnimatedBorderRadiusU2.__initData = env0_3;
return Reflect.apply(useDerivedValue, ReanimatedRexportModule, [useQuestDockAnimatedBorderRadiusU2]);
function useQuestDockAnimatedBorderRadiusU() { // fn#104279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13849:621, owner: useQuestDockAnimatedBorderRadius.u, offset: 0x0228d955, size: 113 bytes, params: 1, frame: 21
let value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const interpolate = value.interpolate;
const value3 = questDockOffset.get();
const items2 = [env0_1, env0_0];
const Extrapolation = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Extrapolation;
const CLAMP = Extrapolation.CLAMP;
return Reflect.apply(interpolate, value, [value3, [0, 50], items2, CLAMP]);
}
}
}
function useQuestDockAnimatedBorderRadius(a0) { // fn#104278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13849:454, offset: 0x0228d886, size: 207 bytes, params: 2, frame: 21
const value = a1;
const env0_0 = a0;
const r10 = value !== undefined ? value : 0;
const binding = undefined;
const useContext = binding.useContext;
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
const questDockOffset = Reflect.apply(useContext, binding, [QuestDockExternalCoordinationContext]).questDockOffset;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useDerivedValue = reanimatedRexportModule.useDerivedValue;
const closure = useQuestDockAnimatedBorderRadiusU;
const object2 = {};
object2.interpolate = reanimatedRexportModule.interpolate;
object2.questDockOffset = questDockOffset;
object2.minBorder = r10;
object2.maxBorder = a0;
const Extrapolation = reanimatedRexportModule.Extrapolation;
object2.Extrapolation = Extrapolation;
closure.__closure = object2;
closure.__workletHash = 17005846780112;
closure.__initData = env0_3;
return Reflect.apply(useDerivedValue, reanimatedRexportModule, [closure]);
}
function useQuestDockAnimatedBorderRadiusU() { // fn#104279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13849:621, owner: useQuestDockAnimatedBorderRadius.u, offset: 0x0228d955, size: 113 bytes, params: 1, frame: 21
let value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const interpolate = value.interpolate;
const value3 = questDockOffset.get();
const items2 = [env0_1, env0_0];
const Extrapolation = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Extrapolation;
const CLAMP = Extrapolation.CLAMP;
return Reflect.apply(interpolate, value, [value3, [0, 50], items2, CLAMP]);
}
global.__d(_fun104277, 13652, [31, 13576, 4017, 2]) /* metro module 13652, dependencies: [31, 13576, 4017, 2] */;