82 lines
5.2 KiB
TypeScript
82 lines
5.2 KiB
TypeScript
/* Metro module 13619; source: modules/quests/native/VideoQuestModal/VideoQuestModalReward.tsx; dependencies: [31, 33, 4501, 13597, 9483, 9480, 4572, 697, 13620, 4573, 1244, 2] */
|
|
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import QuestProgressIndicator from '../QuestProgressIndicator.tsx'; /* Metro dependency 13620 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
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 StackNativeModule from '../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as QuestUtilsNativeModule from '../QuestUtils.native.tsx'; /* Metro dependency 9480 */
|
|
import * as QuestHooksModule from '../../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
|
|
import * as VideoQuestModalContextModule from './VideoQuestModalContext.tsx'; /* Metro dependency 13597 */
|
|
|
|
function _fun104020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13816:6, offset: 0x0227bb82, size: 204 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const env0_6 = (CreateStylesModule).createStyles({questName: {textAlign: 'center'}});
|
|
value = value.memo(VideoQuestModalReward);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/quests/native/VideoQuestModal/VideoQuestModalReward.tsx');
|
|
exports.default = value;
|
|
function VideoQuestModalReward({style, withQuestName, withRewardAvailableCopy, size, withRewardTileAnimation}) { // fn#104021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13816:204, offset: 0x0227bc4e, size: 651 bytes, params: 2, frame: 32
|
|
const Text = (TextModule).Text;
|
|
var object2;
|
|
var questName;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var formatToPlainString;
|
|
var EAYZAr;
|
|
let r10 = withQuestName === undefined || withQuestName;
|
|
let r8 = withRewardAvailableCopy === undefined || withRewardAvailableCopy;
|
|
const r21 = size === undefined ? 'lg' : size;
|
|
const useVideoQuestModalContext = VideoQuestModalContextModule.useVideoQuestModalContext;
|
|
const quest = Reflect.apply(useVideoQuestModalContext, VideoQuestModalContextModule, []).quest;
|
|
const value2 = (QuestHooksModule).useQuestTaskDetails(quest);
|
|
const value3 = env0_3.useCallback(_fun104022, [quest.id]);
|
|
const styles = useStyles();
|
|
const Stack = (StackNativeModule).Stack;
|
|
const PX_24 = (Native).space.PX_24;
|
|
const value4 = ((Component) => <Component hasConfetti quest={quest} size={r21} progress={value2.percentComplete} onPress={value3} withAnimation={withRewardTileAnimation} />)(QuestProgressIndicator);
|
|
const Stack2 = (StackNativeModule).Stack;
|
|
const PX_4 = (Native).space.PX_4;
|
|
if (r10) {
|
|
object2 = {'variant': 'heading-lg/semibold', 'color': 'text-strong'};
|
|
questName = styles.questName;
|
|
object2.style = questName;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
EAYZAr = (require(1244) /* metro dependency 1244: indexNative */).t.EAYZAr;
|
|
questName = quest.config.messages.questName;
|
|
r10 = (
|
|
<Text {...object2}>
|
|
{Reflect.apply(formatToPlainString, intl, [EAYZAr, {questName: questName}])}
|
|
</Text>
|
|
);
|
|
}
|
|
r8 = r8 && <Text variant="heading-sm/medium" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1Wvve2'])}</Text>;
|
|
return (
|
|
<Stack
|
|
justify="center"
|
|
align="center"
|
|
spacing={PX_24}
|
|
style={style}
|
|
>
|
|
{value4}
|
|
<Stack2 align="center" spacing={PX_4}>
|
|
{r10}
|
|
{r8}
|
|
</Stack2>
|
|
</Stack>
|
|
);
|
|
function _fun104022() { // fn#104022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13816:481, offset: 0x0227bed9, size: 57 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
(QuestUtilsNativeModule).openRewardDetailsBottomSheet({questId: quest.id});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun104020, 13619, [31, 33, 4501, 13597, 9483, 9480, 4572, 697, 13620, 4573, 1244,
|
|
2]) /* metro module 13619, dependencies: [31, 33, 4501, 13597, 9483, 9480, 4572, 697, 13620, 4573, 1244, 2] */;
|