/* 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] */ 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'); 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 = ; const FormLabel = (require(7972) /* metro dependency 7972: native */).FormLabel; object9.label = ; object9.onPress = onPress_103204; const actionSheetRow = ; if (isShareableQuest2) { r8 = )((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} label={} onPress={onPress_103205} />; } else { r8 = isShareableQuest2; } const items2 = [{actionSheetRow}{r8}]; Group = ActionSheetRow.Group; const object11 = {}; const ActionSheetRow4 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow; Icon = ActionSheetRow4.Icon; object11.icon = ; let string = intl.string; const LLLLPD = (require(1244) /* metro dependency 1244: indexNative */).t.LLLLPD; object11.label = ; object11.onPress = onPress_103206; const items3 = []; 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 = ; string = intl.string; const GcsZKJ = (require(1244) /* metro dependency 1244: indexNative */).t.GcsZKJ; object12.label = ; object12.onPress = onPress_103207; items3[1] = ; 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 = ; string = intl.string; const NN79E9 = (require(1244) /* metro dependency 1244: indexNative */).t.NN79E9; object14.label = ; 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] = ; items2[1] = {items3}; 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 = ; string = intl.string; object.label = ; object.onPress = onPress_103210; value = ; items4 = [value]; object2 = {}; Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon; object2.icon = ; string = intl.string; object2.label = ; object2.onPress = onPress_103211; items4[1] = ; object4 = {}; Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon; object4.icon = ; string = intl.string; object4.label = ; object4.onPress = onPress_103212; items4[2] = ; object5 = {}; Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon; object5.icon = ; string = intl.string; object5.label = ; object5.onPress = onPress_103213; items4[3] = ; object6 = {}; Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon; object6.icon = ; string = intl.string; object6.label = ; object6.onPress = onPress_103214; items4[4] = ; object7 = {}; Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon; object7.icon = ; string = intl.string; object7.label = ; object7.onPress = onPress_103215; items4[5] = ; object8 = {}; Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon; object8.icon = ; string = intl.string; object8.label = ; object8.onPress = onPress_103216; items4[6] = ; value = {items4}; r5 = value; } else { r5 = preview; } items2[2] = r5; return ( {items2} ); } 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]); } else { value8 = binding(binding4[22]); trackQuestContentClicked = value8.trackQuestContentClicked; object2 = {}; object2.questId = require.id; QuestContent = binding(binding4[12]).QuestContent; 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; QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object2.sourceQuestContent = QUEST_BAR_MOBILE; Reflect.apply(trackQuestContentClicked, value8, [object2]); } yield value5; if (false) { return undefined; } 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__; (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(); }