Files
2026-07-28 01:06:53 +03:00

65 lines
4.3 KiB
TypeScript

/* Metro module 13516; source: modules/quests/native/BountiesModal/BountiesModal.tsx; dependencies: [31, 6528, 33, 9530, 13517, 13552, 7717, 10121, 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 QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */
import * as DeviceOrientationModule from '../../../device/native/DeviceOrientation.tsx'; /* Metro dependency 7717 */
import * as BountiesStage1ExperimentModule from '../../experiments/BountiesStage1Experiment.tsx'; /* Metro dependency 9530 */
import * as ModalNativeModule from '../../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
function _fun102687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:6, offset: 0x02244d47, size: 174 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
value = value.memo(BountiesModal);
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModal.tsx');
exports.default = value;
function BountiesModal({bountyId, sourceQuestContent}) { // fn#102688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:186, offset: 0x02244df5, size: 218 bytes, params: 2, frame: 20
const BountiesStage1Experiment = (BountiesStage1ExperimentModule).BountiesStage1Experiment;
const useConfig = BountiesStage1Experiment.useConfig;
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
const verticalScrollEnabled = Reflect.apply(useConfig, BountiesStage1Experiment,
[{location: VIDEO_MODAL_MOBILE}]).verticalScrollEnabled;
const binding = env0_3;
const value2 = binding.useMemo(function() {
return {['bounty_main']: {fullscreen: true, headerLeft: _fun102690, render: _fun102691}};
}, [bountyId, sourceQuestContent, verticalScrollEnabled]);
binding.useLayoutEffect(_fun102692, []);
const Modal = (ModalNativeModule).Modal;
return (
<Modal
hideTitle
initialRouteName="bounty_main"
screens={value2}
viewStyle={{backgroundColor: '#000000'}}
/>
);
function _fun102689() { // fn#102689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:361, offset: 0x02244ecf, size: 50 bytes, params: 1, frame: 4
return {['bounty_main']: {fullscreen: true, headerLeft: function() {
return null;
}, render: render_102691}};
function render_102691() { // fn#102691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:413, offset: 0x02244f01, size: 76 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__;
return ((Component) => <Component bountyId={bountyId} sourceQuestContent={sourceQuestContent} />)(importDefault(verticalScrollEnabled ? dependencyMap[4] : dependencyMap[5]));
}
}
function _fun102692() { // fn#102692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:508, offset: 0x02244f4d, size: 60 bytes, params: 1, frame: 17
const value = environment.__proto__;
(DeviceOrientationModule).lockOrientation('PORTRAIT', true);
return (DeviceOrientationModule).restoreDefaultOrientation;
}
}
}
function headerLeft_102690() { // fn#102690, offset: 0x00c58c16, size: 4 bytes, params: 1, frame: 1
return null;
}
global.__d(_fun102687, 13516, [31, 6528, 33, 9530, 13517, 13552, 7717, 10121,
2]) /* metro module 13516, dependencies: [31, 6528, 33, 9530, 13517, 13552, 7717, 10121, 2] */;