decord/source/modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx

223 lines
10 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 14051
// Function ID: 107525
2026-07-20 16:05:17 +00:00
// Name: QuestDockContextMenuActionSheet
2026-07-24 07:16:23 +00:00
// Dependencies: [5, 31, 653, 33, 6962, 10493, 9504, 5498, 5500, 12371, 7636, 10501, 4979, 6968, 4098, 4078, 1212, 14052, 9485, 9486, 9487, 6969, 6958, 10946, 9834, 14054, 5119, 9480, 14057, 7508, 14058, 14060, 14062, 8777, 5796, 5490, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 14051 (QuestDockContextMenuActionSheet)
2026-07-23 10:11:24 +00:00
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import "UndoIcon";
import { UserSettingsSections } from "ME";
import jsxProd from "EyeIcon";
let closure_5;
let closure_6;
const require = arg1;
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
let result = require("ME").fileFinishedImporting("modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function QuestDockContextMenuActionSheet(quest) {
2026-07-23 10:11:24 +00:00
let UserSettingsSections;
let _createForOfIteratorHelperLoose;
let dependencyMap;
let importDefault;
2026-07-20 16:05:17 +00:00
quest = quest.quest;
2026-07-24 07:16:23 +00:00
let obj = quest(6962);
2026-07-20 16:05:17 +00:00
let isShareableQuestResult = obj.isShareableQuest(quest.config);
2026-07-24 07:16:23 +00:00
let obj1 = quest(10493);
2026-07-20 16:05:17 +00:00
const questPreviewActions = obj1.useQuestPreviewActions(quest.id);
2026-07-23 10:11:24 +00:00
({ handleComplete: importDefault, handleProgress: dependencyMap, handleResetDismissibilityClick: _createForOfIteratorHelperLoose, handleResetStatusClick: UserSettingsSections } = questPreviewActions);
2026-07-24 07:16:23 +00:00
let obj2 = quest(9504);
2026-07-20 16:05:17 +00:00
const externalCtaLabel = obj2.getExternalCtaLabel(quest);
obj = {};
obj = { hasIcons: true };
obj1 = {};
2026-07-24 07:16:23 +00:00
obj2 = { IconComponent: quest(12371).LinkExternalMediumIcon };
obj1.icon = callback2(quest(5500).ActionSheetRow.Icon, obj2);
obj1.label = callback2(quest(7636).FormLabel, { text: externalCtaLabel });
2026-07-20 16:05:17 +00:00
obj1.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
let obj = quest(outer1_2[11]);
obj = { content: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE, ctaContent: quest(outer1_2[13]).QuestContentCTA.CONTEXT_MENU_OPEN_GAME_LINK, sourceQuestContent: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE };
2026-07-20 16:05:17 +00:00
obj.openGameLinkDirectly(quest, obj);
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
let items = [callback2(quest(5500).ActionSheetRow, obj1), ];
2026-07-20 16:05:17 +00:00
if (isShareableQuestResult) {
const obj3 = {};
2026-07-23 10:11:24 +00:00
const obj4 = { IconComponent: quest(4078).CopyIcon };
2026-07-24 07:16:23 +00:00
obj3.icon = callback2(quest(5500).ActionSheetRow.Icon, obj4);
2026-07-20 16:05:17 +00:00
const obj5 = {};
2026-07-23 10:11:24 +00:00
const intl = quest(1212).intl;
obj5.text = intl.string(quest(1212).t.WqhZss);
2026-07-24 07:16:23 +00:00
obj3.label = callback2(quest(7636).FormLabel, obj5);
2026-07-20 16:05:17 +00:00
obj3.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
let obj = quest(outer1_2[6]);
obj = { content: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE, ctaContent: quest(outer1_2[13]).QuestContentCTA.CONTEXT_MENU_COPY_LINK, sourceQuestContent: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE };
2026-07-20 16:05:17 +00:00
obj.copyShareLink(quest.id, obj);
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
isShareableQuestResult = callback2(quest(5500).ActionSheetRow, obj3);
2026-07-20 16:05:17 +00:00
}
items[1] = isShareableQuestResult;
obj.children = items;
2026-07-24 07:16:23 +00:00
const items1 = [callback3(quest(5500).ActionSheetRow.Group, obj), , ];
2026-07-23 10:11:24 +00:00
let obj6 = { hasIcons: true };
2026-07-20 16:05:17 +00:00
const obj7 = {};
2026-07-24 07:16:23 +00:00
const obj8 = { IconComponent: importDefault(14052) };
obj7.icon = callback2(quest(5500).ActionSheetRow.Icon, obj8);
2026-07-20 16:05:17 +00:00
const obj9 = {};
2026-07-23 10:11:24 +00:00
const intl2 = quest(1212).intl;
obj9.text = intl2.string(quest(1212).t.LLLLPD);
2026-07-24 07:16:23 +00:00
obj7.label = callback2(quest(7636).FormLabel, obj9);
2026-07-20 16:05:17 +00:00
obj7.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
let obj = quest(outer1_2[18]);
if (obj.shouldMigrateToAdAnalyticsInterface(quest(outer1_2[18]).AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL, "quest_dock_context_menu")) {
2026-07-20 16:05:17 +00:00
let tmpResult = tmp(tmp2[19]);
obj = { type: tmp(tmp2[20]).AdUserActionType.CLICK_INTERNAL, adCreativeType: tmp(tmp2[21]).AdCreativeType.QUEST, adCreativeId: quest.id, questContentCTA: tmp(tmp2[13]).QuestContentCTA.CONTEXT_MENU_LEARN_MORE, surfaceId: tmp(tmp2[12]).QuestContent.QUEST_BAR_MOBILE, sourceQuestContent: tmp(tmp2[12]).QuestContent.QUEST_BAR_MOBILE };
tmpResult.captureAdUserAction(obj);
} else {
tmpResult = tmp(tmp2[22]);
obj = { questId: quest.id, questContent: tmp(tmp2[12]).QuestContent.QUEST_BAR_MOBILE, questContentCTA: tmp(tmp2[13]).QuestContentCTA.CONTEXT_MENU_LEARN_MORE, sourceQuestContent: tmp(tmp2[12]).QuestContent.QUEST_BAR_MOBILE };
const result = tmpResult.trackQuestContentClicked(obj);
}
2026-07-23 10:11:24 +00:00
const obj6 = quest(outer1_2[23]);
obj6.openQuestHome({ scrollToQuestId: quest.id, fromContent: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE });
const obj1 = { scrollToQuestId: quest.id, fromContent: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE };
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
const items2 = [callback2(quest(5500).ActionSheetRow, obj7), , ];
2026-07-20 16:05:17 +00:00
const obj10 = {};
2026-07-24 07:16:23 +00:00
const obj11 = { IconComponent: quest(9834).CircleQuestionIcon };
obj10.icon = callback2(quest(5500).ActionSheetRow.Icon, obj11);
2026-07-20 16:05:17 +00:00
const obj12 = {};
2026-07-23 10:11:24 +00:00
const intl3 = quest(1212).intl;
obj12.text = intl3.string(quest(1212).t.GcsZKJ);
2026-07-24 07:16:23 +00:00
obj10.label = callback2(quest(7636).FormLabel, obj12);
2026-07-20 16:05:17 +00:00
obj10.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[25]);
2026-07-20 16:05:17 +00:00
obj = { quest, isTargetedDisclosure: true };
2026-07-23 10:11:24 +00:00
obj = { content: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE, ctaContent: quest(outer1_2[13]).QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE, sourceQuestContent: quest(outer1_2[12]).QuestContent.QUEST_BAR_MOBILE };
2026-07-20 16:05:17 +00:00
obj.trackingCtx = obj;
obj.showModal(obj);
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items2[1] = callback2(quest(5500).ActionSheetRow, obj10);
2026-07-20 16:05:17 +00:00
const obj13 = {};
2026-07-23 10:11:24 +00:00
const obj14 = { IconComponent: quest(5119).XSmallIcon };
2026-07-24 07:16:23 +00:00
obj13.icon = callback2(quest(5500).ActionSheetRow.Icon, obj14);
2026-07-20 16:05:17 +00:00
const obj15 = {};
2026-07-23 10:11:24 +00:00
const intl4 = quest(1212).intl;
obj15.text = intl4.string(quest(1212).t.NN79E9);
2026-07-24 07:16:23 +00:00
obj13.label = callback2(quest(7636).FormLabel, obj15);
2026-07-23 10:11:24 +00:00
const intl5 = quest(1212).intl;
const stringResult = intl5.string(quest(1212).t.V6htN5);
2026-07-20 16:05:17 +00:00
obj13.subLabel = stringResult;
// CreateGeneratorClosureLongIndex (0x67)
obj13.onPress = callback(stringResult);
2026-07-24 07:16:23 +00:00
items2[2] = callback2(quest(5500).ActionSheetRow, obj13);
2026-07-20 16:05:17 +00:00
obj6.children = items2;
2026-07-24 07:16:23 +00:00
items1[1] = callback3(quest(5500).ActionSheetRow.Group, obj6);
2026-07-20 16:05:17 +00:00
let preview = quest.preview;
if (preview) {
const obj16 = {};
2026-07-23 10:11:24 +00:00
const intl6 = quest(1212).intl;
obj16.title = intl6.string(quest(1212).t["Ape+mm"]);
2026-07-20 16:05:17 +00:00
obj16.hasIcons = true;
const obj17 = {};
2026-07-24 07:16:23 +00:00
const obj18 = { IconComponent: quest(7508).TrophyIcon };
obj17.icon = callback2(quest(5500).ActionSheetRow.Icon, obj18);
2026-07-20 16:05:17 +00:00
const obj19 = {};
2026-07-23 10:11:24 +00:00
const intl7 = quest(1212).intl;
obj19.text = intl7.string(quest(1212).t.jQEfRT);
2026-07-24 07:16:23 +00:00
obj17.label = callback2(quest(7636).FormLabel, obj19);
2026-07-20 16:05:17 +00:00
obj17.onPress = function onPress() {
callback();
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
const items3 = [callback2(quest(5500).ActionSheetRow, obj17), , , , , , ];
2026-07-20 16:05:17 +00:00
const obj20 = {};
2026-07-24 07:16:23 +00:00
const obj21 = { IconComponent: quest(14058).RedoIcon };
obj20.icon = callback2(quest(5500).ActionSheetRow.Icon, obj21);
2026-07-20 16:05:17 +00:00
const obj22 = {};
2026-07-23 10:11:24 +00:00
const intl8 = quest(1212).intl;
obj22.text = intl8.string(quest(1212).t.cKSLr4);
2026-07-24 07:16:23 +00:00
obj20.label = callback2(quest(7636).FormLabel, obj22);
2026-07-20 16:05:17 +00:00
obj20.onPress = function onPress() {
callback2(0.9 * Math.random() + 0.03);
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items3[1] = callback2(quest(5500).ActionSheetRow, obj20);
2026-07-20 16:05:17 +00:00
const obj23 = {};
2026-07-24 07:16:23 +00:00
const obj24 = { IconComponent: quest(14060).UndoIcon };
obj23.icon = callback2(quest(5500).ActionSheetRow.Icon, obj24);
2026-07-20 16:05:17 +00:00
const obj25 = {};
2026-07-23 10:11:24 +00:00
const intl9 = quest(1212).intl;
obj25.text = intl9.string(quest(1212).t.taqkwK);
2026-07-24 07:16:23 +00:00
obj23.label = callback2(quest(7636).FormLabel, obj25);
2026-07-20 16:05:17 +00:00
obj23.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
callback4();
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items3[2] = callback2(quest(5500).ActionSheetRow, obj23);
2026-07-20 16:05:17 +00:00
const obj26 = {};
2026-07-24 07:16:23 +00:00
const obj27 = { IconComponent: quest(14062).UnsendIcon };
obj26.icon = callback2(quest(5500).ActionSheetRow.Icon, obj27);
2026-07-20 16:05:17 +00:00
const obj28 = {};
2026-07-23 10:11:24 +00:00
const intl10 = quest(1212).intl;
obj28.text = intl10.string(quest(1212).t.JF6W66);
2026-07-24 07:16:23 +00:00
obj26.label = callback2(quest(7636).FormLabel, obj28);
2026-07-20 16:05:17 +00:00
obj26.onPress = function onPress() {
callback3();
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items3[3] = callback2(quest(5500).ActionSheetRow, obj26);
2026-07-20 16:05:17 +00:00
const obj29 = {};
2026-07-24 07:16:23 +00:00
const obj30 = { IconComponent: quest(8777).EyeIcon };
obj29.icon = callback2(quest(5500).ActionSheetRow.Icon, obj30);
2026-07-20 16:05:17 +00:00
const obj31 = {};
2026-07-23 10:11:24 +00:00
const intl11 = quest(1212).intl;
obj31.text = intl11.string(quest(1212).t["lL6/zF"]);
2026-07-24 07:16:23 +00:00
obj29.label = callback2(quest(7636).FormLabel, obj31);
2026-07-20 16:05:17 +00:00
obj29.onPress = function onPress() {
const items = [quest.id];
2026-07-23 10:11:24 +00:00
quest(outer1_2[27]).markAdContentUnseen(quest(outer1_2[21]).AdCreativeType.QUEST, items);
const obj = quest(outer1_2[27]);
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items3[4] = callback2(quest(5500).ActionSheetRow, obj29);
2026-07-20 16:05:17 +00:00
const obj32 = {};
2026-07-24 07:16:23 +00:00
const obj33 = { IconComponent: quest(8777).EyeIcon };
obj32.icon = callback2(quest(5500).ActionSheetRow.Icon, obj33);
2026-07-20 16:05:17 +00:00
const obj34 = {};
2026-07-23 10:11:24 +00:00
const intl12 = quest(1212).intl;
obj34.text = intl12.string(quest(1212).t.tx5Ax5);
2026-07-24 07:16:23 +00:00
obj32.label = callback2(quest(7636).FormLabel, obj34);
2026-07-20 16:05:17 +00:00
obj32.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
let obj = quest(outer1_2[34]);
obj = { screen: outer1_4.QUEST_PREVIEW_TOOL_2, params: obj };
2026-07-20 16:05:17 +00:00
obj = { questId: quest.id };
obj.openUserSettings(obj);
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items3[5] = callback2(quest(5500).ActionSheetRow, obj32);
2026-07-20 16:05:17 +00:00
const obj35 = {};
2026-07-23 10:11:24 +00:00
const obj36 = { IconComponent: quest(4078).CopyIcon };
2026-07-24 07:16:23 +00:00
obj35.icon = callback2(quest(5500).ActionSheetRow.Icon, obj36);
2026-07-20 16:05:17 +00:00
const obj37 = {};
2026-07-23 10:11:24 +00:00
const intl13 = quest(1212).intl;
obj37.text = intl13.string(quest(1212).t.oisrFi);
2026-07-24 07:16:23 +00:00
obj35.label = callback2(quest(7636).FormLabel, obj37);
2026-07-20 16:05:17 +00:00
obj35.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
quest(outer1_2[35]).copy(quest.id);
const obj = quest(outer1_2[35]);
outer1_1(outer1_2[14]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
items3[6] = callback2(quest(5500).ActionSheetRow, obj35);
2026-07-20 16:05:17 +00:00
obj16.children = items3;
2026-07-24 07:16:23 +00:00
preview = callback3(quest(5500).ActionSheetRow.Group, obj16);
2026-07-20 16:05:17 +00:00
}
items1[2] = preview;
obj.children = items1;
2026-07-24 07:16:23 +00:00
return callback3(quest(5498).ActionSheet, obj);
2026-07-20 16:05:17 +00:00
};