72 lines
4.4 KiB
TypeScript
72 lines
4.4 KiB
TypeScript
/* Metro module 13660; source: modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx; dependencies: [57, 31, 27, 33, 4501, 13650, 9483, 9950, 6531, 13620, 4573, 2] */
|
|
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import QuestProgressIndicator from '../QuestProgressIndicator.tsx'; /* Metro dependency 13620 */
|
|
import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
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 CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
|
|
import * as QuestHooksModule from '../../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
|
|
import * as QuestCopyHooksModule from '../../hooks/QuestCopyHooks.tsx'; /* Metro dependency 9950 */
|
|
|
|
function _fun104325(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13857:6, offset: 0x0229198a, size: 275 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const env0_8 = (CreateStylesModule).createStyles({wrapper: {'alignItems': 'center',
|
|
'display': 'flex', 'flexDirection': 'row', 'flexGrow': 1, 'flexShrink': 1, 'gap': 8, 'justifyContent': 'center',
|
|
'padding': 8}, progressIndicatorWrapper: {'flexGrow': 0, 'flexShrink': 0}, copy: {'flexGrow': 1,
|
|
'flexShrink': 1}});
|
|
value = value.memo(QuestDockEnrolledHeader);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx');
|
|
exports.default = value;
|
|
function QuestDockEnrolledHeader() { // fn#104326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13857:409, offset: 0x02291a9d, size: 445 bytes, params: 1, frame: 24
|
|
const binding = env0_4;
|
|
const useContext = binding.useContext;
|
|
const quest = Reflect.apply(useContext, binding,
|
|
[QuestDockContext]).quest;
|
|
const styles = useStyles();
|
|
const value2 = (QuestHooksModule).useQuestTaskDetails(quest);
|
|
const property = Module00057((QuestHooksModule).useTaskPlatformScreen(quest,
|
|
value2), 1)[0];
|
|
const value5 = (QuestCopyHooksModule).useQuestBarTitle(quest);
|
|
const useQuestBarSubtitle = QuestCopyHooksModule.useQuestBarSubtitle;
|
|
const object = {quest: quest, isExpanded: false, activeScreen: property};
|
|
const QuestContent = (QuestTypesModule).QuestContent;
|
|
const QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
|
object.sourceQuestContent = QUEST_BAR_MOBILE;
|
|
const value6 = Reflect.apply(useQuestBarSubtitle, QuestCopyHooksModule, [object]);
|
|
let value = QuestProgressIndicator;
|
|
value = (
|
|
<View style={styles.progressIndicatorWrapper}>
|
|
{((Component) => <Component quest={quest} size="x-sm" progress={value2.percentComplete} loading={false} hasConfetti />)(value)}
|
|
</View>
|
|
);
|
|
const items2 = [value];
|
|
const Text = (TextModule).Text;
|
|
items2[1] = (
|
|
<View style={styles.copy}>
|
|
<Text variant="heading-md/semibold" color="mobile-text-heading-primary">
|
|
{value5}
|
|
</Text>
|
|
<Text variant="text-sm/medium" color="text-muted">
|
|
{value6}
|
|
</Text>
|
|
</View>
|
|
);
|
|
return (
|
|
<View style={styles.wrapper}>
|
|
{items2}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun104325, 13660, [57, 31, 27, 33, 4501, 13650, 9483, 9950, 6531, 13620, 4573,
|
|
2]) /* metro module 13660, dependencies: [57, 31, 27, 33, 4501, 13650, 9483, 9950, 6531, 13620, 4573, 2] */;
|