Files
discord-decomp/sources/modules/quests/native/QuestDisclosureModal/QuestDisclosureModal.tsx
T
2026-07-28 01:06:53 +03:00

73 lines
5.6 KiB
TypeScript

/* Metro module 13581; source: modules/quests/native/QuestDisclosureModal/QuestDisclosureModal.tsx; dependencies: [33, 5277, 8160, 13580, 1244, 5282, 13582, 5280, 2] */
import Module08160 from '../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import QuestDisclosureModalActionCreators from './QuestDisclosureModalActionCreators.tsx'; /* Metro dependency 13580 */
import QuestDisclosureModalInner from './QuestDisclosureModalInner.tsx'; /* Metro dependency 13582 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
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 HeaderActionButtonNativeModule from '../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as NavigatorHeaderNativeModule from '../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
function _fun103223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:6, offset: 0x0225d5cd, size: 150 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {DISCLOSURE: 'disclosure'};
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDisclosureModal/QuestDisclosureModal.tsx');
exports.default = QuestDisclosureModal;
function CloseButton_103224() { // fn#103224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:167, offset: 0x0225d663, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160, onPress: onPress_103225};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
function CloseButton_103224OnPress() { // fn#103225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:250, owner: CloseButton_103224.onPress, offset: 0x0225d6e4, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (QuestDisclosureModalActionCreators).hideModal();
}
}
function QuestDisclosureModal({isTargetedDisclosure, gamePublisher, gameTitle, cosponsorName, isVideoQuest}) { // fn#103226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:444, offset: 0x0225d709, size: 243 bytes, params: 2, frame: 18
const object = {};
const binding = isVideoQuest;
let DISCLOSURE = binding.DISCLOSURE;
object[DISCLOSURE] = {headerLeft: CloseButton_103224, headerRight: function() {
return null;
}, headerTitle: headerTitle_103229, render: render_103230};
const Navigator = (NavigatorNativeModule).Navigator;
DISCLOSURE = binding.DISCLOSURE;
const intl = (IndexNativeModule).intl;
return (
<Navigator
screens={object}
initialRouteName={DISCLOSURE}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function QuestDisclosureModalOnClose() { // fn#103227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:571, owner: QuestDisclosureModal.onClose, offset: 0x0225d6e4, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (QuestDisclosureModalActionCreators).hideModal();
}
function QuestDisclosureModalHeaderTitle() { // fn#103229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:670, owner: QuestDisclosureModal.headerTitle, offset: 0x0225d7fc, size: 96 bytes, params: 1, frame: 18
const NavigatorHeader = (NavigatorHeaderNativeModule).NavigatorHeader;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const GcsZKJ = (IndexNativeModule).t.GcsZKJ;
return <NavigatorHeader title={Reflect.apply(string, intl, [GcsZKJ])} />;
}
function QuestDisclosureModalRender() { // fn#103230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:754, owner: QuestDisclosureModal.render, offset: 0x0225d85c, size: 96 bytes, params: 1, frame: 15
const value = environment.__proto__;
return ((Component) => <Component isTargetedDisclosure={isTargetedDisclosure} gamePublisher={gamePublisher} gameTitle={gameTitle} onClose={QuestDisclosureModalOnClose} cosponsorName={cosponsorName} isVideoQuest={isVideoQuest} />)(QuestDisclosureModalInner);
}
}
}
global.__d(_fun103223, 13581, [33, 5277, 8160, 13580, 1244, 5282, 13582, 5280,
2]) /* metro module 13581, dependencies: [33, 5277, 8160, 13580, 1244, 5282, 13582, 5280, 2] */;