57 lines
4.2 KiB
TypeScript
57 lines
4.2 KiB
TypeScript
/* Metro module 13581; source: modules/quests/native/QuestDisclosureModal/QuestDisclosureModal.tsx; dependencies: [33, 5277, 8160, 13580, 1244, 5282, 13582, 5280, 2] */
|
|
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});
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
object = {DISCLOSURE: 'disclosure'};
|
|
(require(2) /* metro dependency 2 */).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 = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
|
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, 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 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 object2 = {};
|
|
const binding = isVideoQuest;
|
|
let DISCLOSURE = binding.DISCLOSURE;
|
|
object2[DISCLOSURE] = {headerLeft: CloseButton_103224, headerRight: function() {
|
|
return null;
|
|
}, headerTitle: headerTitle_103229, render: render_103230};
|
|
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
|
DISCLOSURE = binding.DISCLOSURE;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
return (
|
|
<Navigator
|
|
screens={object2}
|
|
initialRouteName={DISCLOSURE}
|
|
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
|
/>
|
|
);
|
|
}
|
|
|
|
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 (importDefault(13580) /* metro dependency 13580: 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 = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).NavigatorHeader;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const GcsZKJ = (require(1244) /* metro dependency 1244: indexNative */).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} />)(importDefault(13582) /* metro dependency 13582: QuestDisclosureModalInner */);
|
|
}
|
|
|