Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,36 @@
|
||||
/* Metro module 13642; source: modules/user_settings/quests/native/MobileQuestPreviewContainer.tsx; dependencies: [27, 33, 4501, 697, 4573, 2] */
|
||||
function _fun104171(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13839:6, offset: 0x02288dbc, size: 262 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.marginTop = PX_12;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
object3.container = object4;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.title = {marginBottom: PX_16};
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/MobileQuestPreviewContainer.tsx');
|
||||
exports.default = MobileQuestPreviewContainer;
|
||||
}
|
||||
|
||||
function MobileQuestPreviewContainer({children, title}) { // fn#104172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13839:396, offset: 0x02288ec2, size: 140 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{title != null && ((Text) => <Text variant="text-lg/semibold" color="text-default" style={styles.title}>{title}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,404 @@
|
||||
/* Metro module 13644; source: modules/user_settings/quests/native/MobileQuestPreviewControlBar.tsx; dependencies: [5, 57, 31, 27, 7093, 482, 33, 4501, 697, 9483, 566, 9484, 6803, 1244, 6797, 13645, 13648, 8341, 13127, 9821, 4573, 2] */
|
||||
function _fun104178(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:6, offset: 0x02289294, size: 459 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = MobileQuestPreviewControlBar;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const env0_8 = (require(482) /* metro dependency 482: Constants */).AppRoutes;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'overflow': 'visible', 'zIndex': 1}};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.questInputContainer = {'flexDirection': 'row', 'alignItems': 'flex-start', 'justifyContent': 'flex-start',
|
||||
'gap': null, 'zIndex': 2, 'overflow': 'visible', gap: PX_8};
|
||||
object2.searchField = {'flex': 1, 'zIndex': 3, 'overflow': 'visible'};
|
||||
const object4 = {flexDirection: 'row'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object4.paddingTop = PX_4;
|
||||
object2.iconsColumn = object4;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.errorText = {marginTop: PX_4, zIndex: 1};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/MobileQuestPreviewControlBar.tsx');
|
||||
exports.default = closure;
|
||||
exports.MobileQuestPreviewControlBar = closure;
|
||||
}
|
||||
|
||||
function MobileQuestPreviewControlBar({questId, setQuestId, refreshQuest}) { // fn#104179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:595, offset: 0x0228945f, size: 1174 bytes, params: 2, frame: 40
|
||||
var r17;
|
||||
const styles = useStyles();
|
||||
const [property, env0_3] = env0_4(env0_5.useState(false), 2);
|
||||
const value4 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestsWithPreviewAccess();
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun104180,
|
||||
[questId]);
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun104181,
|
||||
[questId]);
|
||||
const value7 = env0_5.useMemo(_fun104182, [value4, questId]);
|
||||
const value8 = env0_5.useCallback(function(a0) {
|
||||
if (setQuestId != null) {
|
||||
setQuestId(a0);
|
||||
}
|
||||
}, [setQuestId]);
|
||||
const value10 = env0_5.useCallback(env0_3(_fun104187), [questId, refreshQuest]);
|
||||
var env0_5 = value10;
|
||||
const value15 = env0_5.useCallback(_fun104192, [questId, value10, env0_5.useCallback(env0_3(_fun104189), [questId,
|
||||
refreshQuest]), env0_5.useCallback(env0_3(_fun104191), [questId, refreshQuest])]);
|
||||
const items3 = [((Component) => <Component />)(importDefault(13645) /* metro dependency 13645: QuestThemePicker */)];
|
||||
const MobileSearchableSelect = (require(13648) /* metro dependency 13648: MobileSearchableSelect */).MobileSearchableSelect;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Zw8jxn = (require(1244) /* metro dependency 1244: indexNative */).t.Zw8jxn;
|
||||
const view = <View style={styles.searchField}><MobileSearchableSelect options={value7} value={questId} onChange={value8} placeholder={Reflect.apply(string,
|
||||
intl, [Zw8jxn])} allowCustomValue isDisabled={value6 || property} /></View>;
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const RefreshIcon = (require(13127) /* metro dependency 13127: RefreshIcon */).RefreshIcon;
|
||||
const iconButton = <IconButton icon={<RefreshIcon />} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wzzjk9)} onPress={refreshQuest} disabled={value6 || questId == null} loading={value6} size="sm" variant="secondary" />;
|
||||
const value20 = questId != null;
|
||||
if (value20) {
|
||||
r17 = <IconButton icon={((MoreVerticalIcon) => <MoreVerticalIcon />)((require(9821) /* metro dependency 9821: MoreVerticalIcon */).MoreVerticalIcon)} size="sm" variant="secondary" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+1H47t'])} disabled={value6 || property} onPress={value15} />;
|
||||
} else {
|
||||
r17 = value20;
|
||||
}
|
||||
items3[1] = <View style={styles.questInputContainer}>{view}<View style={styles.iconsColumn}>{iconButton}{r17}</View></View>;
|
||||
items3[2] = value5 != null && ((Text) => <Text variant="text-sm/medium" color="text-feedback-critical" style={styles.errorText}>{value5.message}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104180() { // fn#104180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:798, offset: 0x022898f5, size: 40 bytes, params: 1, frame: 12
|
||||
const questIdBinding = questId;
|
||||
const value2 = null;
|
||||
return value2 != questIdBinding ? QuestStore.getFetchQuestPreviewError(questId) : value2;
|
||||
}
|
||||
|
||||
function _fun104181() { // fn#104181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:887, offset: 0x0228991d, size: 40 bytes, params: 1, frame: 12
|
||||
return questId != null && QuestStore.isFetchingQuestPreview(questId);
|
||||
}
|
||||
|
||||
function _fun104182() { // fn#104182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:947, offset: 0x02289945, size: 87 bytes, params: 1, frame: 13
|
||||
var unshift;
|
||||
const value2 = env0_4.map(function(a0) {
|
||||
var r7;
|
||||
var property = a0.config;
|
||||
r7 = property == null || property.messages == null ? undefined : property.messages.questName;
|
||||
r7 = r7 ?? a0.id;
|
||||
return {label: '' + r7 + ' (' + a0.id + ')', value: a0.id};
|
||||
});
|
||||
if (!(questId == null || value2.some(function({value}) {
|
||||
return value === questId;
|
||||
}))) {
|
||||
unshift = value2.unshift;
|
||||
questIdBinding = questId;
|
||||
Reflect.apply(unshift, value2, [{label: questIdBinding, value: questIdBinding}]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function* _fun104187() { // fn#104187, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:1240, offset: 0x02289a28, size: 144 bytes, params: 1, frame: 16
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var completeQuestPreview;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
if (require != null) {
|
||||
env1_3(true);
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
completeQuestPreview = value4.completeQuestPreview;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(completeQuestPreview, value4, [require, 1]);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
if (value7) {
|
||||
env1_3(false);
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
dependencyMap();
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
env1_3(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun104189() { // fn#104189, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:1364, offset: 0x02289ac3, size: 140 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var resetQuestPreviewStatus;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
if (require != null) {
|
||||
env1_3(true);
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
resetQuestPreviewStatus = value4.resetQuestPreviewStatus;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(resetQuestPreviewStatus, value4, [require]);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
if (value7) {
|
||||
env1_3(false);
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
dependencyMap();
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
env1_3(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun104191() { // fn#104191, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:1489, offset: 0x02289b5a, size: 159 bytes, params: 1, frame: 16
|
||||
var Math;
|
||||
var random;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var completeQuestPreview;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
if (require != null) {
|
||||
env1_3(true);
|
||||
try {
|
||||
Math = global.Math;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
random = Math.random;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(random, Math, []);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
completeQuestPreview = value5.completeQuestPreview;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(completeQuestPreview, value5, [require, value3]);
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
if (value8) {
|
||||
env1_3(false);
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
dependencyMap();
|
||||
} catch (error) {
|
||||
env1_3(false);
|
||||
throw error;
|
||||
}
|
||||
env1_3(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104192() { // fn#104192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:1631, offset: 0x02289bf9, size: 323 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(6803) /* metro dependency 6803: showSimpleActionSheetNative */;
|
||||
const showSimpleActionSheet = value.showSimpleActionSheet;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
Reflect.apply(showSimpleActionSheet, value, [{'key': 'quest-preview-menu', 'options': null, 'hasIcons': false,
|
||||
options: [{label: Reflect.apply(string, intl, [t.jQEfRT]), onPress: env0_5}, {label: intl.string(t.taqkwK),
|
||||
onPress: env0_6}, {label: intl.string(t.cKSLr4), onPress: env0_7}, {label: intl.string(t.rNGQfD),
|
||||
onPress: onPress_104193}]}]);
|
||||
}
|
||||
|
||||
function onPress_104193() { // fn#104193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13841:1931, offset: 0x02289d3c, size: 72 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (questId != null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
moduleValue = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
moduleValue.copy(AppRoutes.QUEST_PREVIEW_TOOL_2(questId));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,217 @@
|
||||
/* Metro module 13648; source: modules/user_settings/quests/native/MobileSearchableSelect.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 1244, 6985, 6998, 4573, 2] */
|
||||
function _fun104223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:6, offset: 0x0228ad48, size: 526 bytes, params: 8, frame: 25
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const closure = MobileSearchableSelect;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.ScrollView;
|
||||
const env0_6 = value.TouchableOpacity;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object5.backgroundColor = BACKGROUND_BASE_LOWER;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.marginTop = PX_4;
|
||||
object5.borderWidth = 1;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object5.borderColor = BORDER_SUBTLE;
|
||||
object5.left = 0;
|
||||
object5.right = 0;
|
||||
object5.zIndex = 999999;
|
||||
object5.elevation = 30;
|
||||
object5.shadowColor = '#000';
|
||||
object5.shadowOffset = {'width': 0, 'height': 6};
|
||||
object5.shadowOpacity = 0.4;
|
||||
object5.shadowRadius = 8;
|
||||
object5.maxHeight = 250;
|
||||
object4.dropdownContainer = object5;
|
||||
const object6 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.padding = PX_12;
|
||||
object6.borderBottomWidth = 1;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object6.borderBottomColor = BORDER_MUTED;
|
||||
object4.dropdownItem = object6;
|
||||
object4.dropdownItemLast = {borderBottomWidth: 0};
|
||||
object4.dropdownItemText = {fontSize: 14};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/MobileSearchableSelect.tsx');
|
||||
exports.default = closure;
|
||||
exports.MobileSearchableSelect = closure;
|
||||
}
|
||||
|
||||
function MobileSearchableSelect({options, value, onChange, placeholder, allowCustomValue, isDisabled}) { // fn#104224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:729, offset: 0x0228af56, size: 852 bytes, params: 2, frame: 32
|
||||
var r22;
|
||||
var intl;
|
||||
const env0_2 = onChange;
|
||||
if (placeholder !== undefined) {
|
||||
r22 = placeholder;
|
||||
} else {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r22 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XqMe3N);
|
||||
}
|
||||
allowCustomValue = !(allowCustomValue === undefined) && allowCustomValue;
|
||||
const env0_3 = allowCustomValue;
|
||||
isDisabled = !(isDisabled === undefined) && isDisabled;
|
||||
const styles = useStyles();
|
||||
const binding = env0_3;
|
||||
const useState = binding.useState;
|
||||
const value9 = env0_2(Reflect.apply(useState, binding, [value ?? '']), 2);
|
||||
const property = value9[0];
|
||||
const env0_7 = value9[1];
|
||||
const [property2, env0_8] = env0_2(env0_3.useState(false), 2);
|
||||
const [property3, env0_10] = env0_2(env0_3.useState(false), 2);
|
||||
env0_3.useEffect(_fun104225, [value, property, property3]);
|
||||
value = env0_3.useMemo(_fun104226, [options, property, allowCustomValue]);
|
||||
const value14 = env0_3.useCallback(_fun104229, [options.length]);
|
||||
const value15 = env0_3.useCallback(_fun104230, [property, onChange]);
|
||||
const env0_12 = env0_3.useCallback(_fun104231, [onChange]);
|
||||
const value16 = env0_3.useCallback(_fun104232, [property.length, options.length]);
|
||||
const value17 = env0_3.useCallback(_fun104233, []);
|
||||
const TextField = (require(6985) /* metro dependency 6985: TextFieldNative */).TextField;
|
||||
const MagnifyingGlassIcon = (require(6998) /* metro dependency 6998: MagnifyingGlassIcon */).MagnifyingGlassIcon;
|
||||
const textField = <TextField placeholder={r22} value={property} onChange={value14} onSubmitEditing={value15} onFocus={value16} onBlur={value17} leadingIcon={MagnifyingGlassIcon} isClearable returnKeyType="search" accessibilityRole="search" autoCorrect={false} autoCapitalize="none" isDisabled={isDisabled} />;
|
||||
let r5 = property2 && value.length > 0;
|
||||
if (r5) {
|
||||
value = <View style={styles.dropdownContainer}><ScrollView nestedScrollEnabled showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled">{value.map(_fun104234)}</ScrollView></View>;
|
||||
r5 = value;
|
||||
}
|
||||
return (
|
||||
<View style={{'position': 'relative', 'zIndex': 100, 'overflow': 'visible'}}>
|
||||
{textField}
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104225() { // fn#104225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1036, offset: 0x0228b2aa, size: 57 bytes, params: 1, frame: 12
|
||||
let r1 = value == null || value === env0_6;
|
||||
r1 = !r1 ? env0_9 : r1;
|
||||
if (!r1) {
|
||||
env0_7(value);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104226() { // fn#104226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1093, offset: 0x0228b2e3, size: 128 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var object2;
|
||||
const optionsBinding = options;
|
||||
let binding = env0_6;
|
||||
const value2 = ((a0, a1) => {
|
||||
if (a1.trim() === '') {
|
||||
return a0;
|
||||
}
|
||||
var env0_0 = a1.toLowerCase();
|
||||
return a0.filter(_fun104228);
|
||||
})(optionsBinding, binding);
|
||||
if (allowCustomValue) {
|
||||
if (value2.length !== 0) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
binding = env0_6;
|
||||
if (binding.trim() === '') {
|
||||
r0 = value2;
|
||||
} else {
|
||||
object2 = {};
|
||||
binding = env0_6;
|
||||
object2.label = binding.trim();
|
||||
binding = env0_6;
|
||||
object2.value = binding.trim();
|
||||
r0 = [object2];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun104229(a0) { // fn#104229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1361, offset: 0x0228b3e5, size: 66 bytes, params: 2, frame: 14
|
||||
env0_10(true);
|
||||
env0_7(a0);
|
||||
env0_8(a0.length > 0 || options.length > 0);
|
||||
}
|
||||
|
||||
function _fun104230() { // fn#104230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1433, offset: 0x0228b427, size: 64 bytes, params: 1, frame: 12
|
||||
if (env0_6.trim() !== '') {
|
||||
onChange(env0_6);
|
||||
env0_10(false);
|
||||
env0_8(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104231(a0) { // fn#104231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1498, offset: 0x0228b467, size: 48 bytes, params: 2, frame: 12
|
||||
env0_7(a0);
|
||||
onChange(a0);
|
||||
env0_10(false);
|
||||
env0_8(false);
|
||||
}
|
||||
|
||||
function _fun104232() { // fn#104232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1548, offset: 0x0228b497, size: 47 bytes, params: 1, frame: 13
|
||||
env0_8(env0_6.length > 0 || options.length > 0);
|
||||
}
|
||||
|
||||
function _fun104233() { // fn#104233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1619, offset: 0x0228b4c6, size: 27 bytes, params: 1, frame: 12
|
||||
env0_8(false);
|
||||
env0_10(false);
|
||||
}
|
||||
|
||||
function _fun104234(a0, a1) { // fn#104234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:2137, offset: 0x0228b4e1, size: 243 bytes, params: 3, frame: 21
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
const touchableOpacityProps = {style: [styles.dropdownItem, a1 === env0_11.length - 1 && styles.dropdownItemLast],
|
||||
activeOpacity: 0.7, onPress: onPress_104235, disabled: isDisabled};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<TouchableOpacity {...touchableOpacityProps} key={'option-' + a0.value + '-' + a1}>
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="text-default"
|
||||
style={styles.dropdownItemText}
|
||||
>
|
||||
{a0.label}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104227(a0, a1) { // fn#104227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1105, offset: 0x0228b363, size: 61 bytes, params: 3, frame: 13
|
||||
if (a1.trim() === '') {
|
||||
return a0;
|
||||
}
|
||||
const env0_0 = a1.toLowerCase();
|
||||
return a0.filter(_fun104228);
|
||||
}
|
||||
|
||||
function onPress_104235() { // fn#104235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:2232, offset: 0x0228b5d4, size: 28 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
env1_12(env0_0.value);
|
||||
}
|
||||
|
||||
function _fun104228(a0) { // fn#104228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13845:1178, offset: 0x0228b3a0, size: 69 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
let value = a0.label.toLowerCase();
|
||||
value = value.includes(env0_0);
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = a0.value;
|
||||
value = value.toLowerCase();
|
||||
value = value.includes(env0_0);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 13649; source: modules/user_settings/quests/native/QuestBarPreview.tsx; dependencies: [31, 27, 33, 4501, 697, 13576, 13650, 13651, 2] */
|
||||
function _fun104236(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13846:6, offset: 0x0228b5f0, size: 278 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {'position': 'absolute', 'bottom': 0, 'left': null, 'right': null, 'zIndex': 1001, 'elevation': 1001};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.left = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.right = PX_16;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{overlay: {'position': 'absolute', 'bottom': 0,
|
||||
'left': 0, 'right': 0, 'zIndex': 1000, 'elevation': 1000, 'pointerEvents': 'box-none'},
|
||||
questDockContainer: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/QuestBarPreview.tsx');
|
||||
exports.QuestBarPreview = QuestBarPreview;
|
||||
}
|
||||
|
||||
function QuestBarPreview({quest, isVisible}) { // fn#104237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13846:498, offset: 0x0228b706, size: 225 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
return quest != null && isVisible ? <View style={styles.overlay}><View style={styles.questDockContainer}>{((QuestDockExternalCoordinationContextProvider) => <QuestDockExternalCoordinationContextProvider>{((Provider) => <Provider value={{'isRendered': true,
|
||||
'isVisibleToUser': true,
|
||||
quest: quest}}>{((QuestDockWithEntranceAnimation) => <QuestDockWithEntranceAnimation />)((require(13651) /* metro dependency 13651: QuestDock */).QuestDockWithEntranceAnimation)}</Provider>)((importDefault(13650) /* metro dependency 13650: QuestDockContext */).Provider)}</QuestDockExternalCoordinationContextProvider>)((require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContextProvider)}</View></View> : null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 13641; source: modules/user_settings/quests/native/QuestCardPreview.tsx; dependencies: [33, 10183, 6531, 13642, 1244, 13567, 697, 2] */
|
||||
function _fun104168(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13838:6, offset: 0x02288bf7, size: 123 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;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/QuestCardPreview.tsx');
|
||||
exports.QuestCardPreview = QuestCardPreview;
|
||||
}
|
||||
|
||||
function QuestCardPreview({quest}) { // fn#104169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13838:219, offset: 0x02288c72, size: 138 bytes, params: 2, frame: 18
|
||||
const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
const object2 = {questOrQuests: quest};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let INTERNAL_PREVIEW_TOOL = QuestContent.INTERNAL_PREVIEW_TOOL;
|
||||
object2.questContent = INTERNAL_PREVIEW_TOOL;
|
||||
INTERNAL_PREVIEW_TOOL = QuestContent.INTERNAL_PREVIEW_TOOL;
|
||||
object2.sourceQuestContent = INTERNAL_PREVIEW_TOOL;
|
||||
object2.trackGuildAndChannelMetadata = false;
|
||||
return (
|
||||
<QuestContentImpressionTrackerNative {...object2}>
|
||||
{children_104170}
|
||||
</QuestContentImpressionTrackerNative>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestCardPreviewChildren() { // fn#104170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13838:454, owner: QuestCardPreview.children, offset: 0x02288cfc, size: 192 bytes, params: 1, frame: 19
|
||||
const MobileQuestPreviewContainer = importDefault(13642) /* metro dependency 13642: MobileQuestPreviewContainer */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const BDUDau = (require(1244) /* metro dependency 1244: indexNative */).t.BDUDau;
|
||||
const QuestCard = (require(13567) /* metro dependency 13567: QuestCard */).QuestCard;
|
||||
const questBinding = quest;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const INTERNAL_PREVIEW_TOOL = QuestContent.INTERNAL_PREVIEW_TOOL;
|
||||
return (
|
||||
<MobileQuestPreviewContainer title={Reflect.apply(string, intl, [BDUDau])}>
|
||||
<QuestCard
|
||||
quest={questBinding}
|
||||
containerPadding={PX_16}
|
||||
sourceQuestContent={INTERNAL_PREVIEW_TOOL}
|
||||
/>
|
||||
</MobileQuestPreviewContainer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Metro module 13643; source: modules/user_settings/quests/native/QuestEmbedPreview.tsx; dependencies: [31, 3794, 1878, 661, 33, 8177, 566, 4101, 9505, 13642, 1244, 9773, 2] */
|
||||
function _fun104173(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13840:6, offset: 0x02288f4e, size: 196 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const messageRecord = importDefault(3794) /* metro dependency 3794: MessageRecord */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).MessageTypes;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/QuestEmbedPreview.tsx');
|
||||
exports.QuestEmbedPreview = QuestEmbedPreview;
|
||||
}
|
||||
|
||||
function QuestEmbedPreview({questId}) { // fn#104174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13840:275, offset: 0x02289012, size: 282 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
var MobileQuestPreviewContainer;
|
||||
var intl;
|
||||
var value;
|
||||
const binding = env0_3;
|
||||
const value2 = binding.useMemo(_fun104175, []);
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let object = [UserStore];
|
||||
const currentUser = Reflect.apply(useStateFromStores, fluxModule, [object, function() {
|
||||
return UserStore.getCurrentUser();
|
||||
}]);
|
||||
const value3 = binding.useMemo(_fun104177, [questId, currentUser]);
|
||||
if (value3 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
MobileQuestPreviewContainer = importDefault(13642) /* metro dependency 13642: MobileQuestPreviewContainer */;
|
||||
object = {};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['habP/M']);
|
||||
value = importDefault(9773) /* metro dependency 9773: ChatItem */;
|
||||
value = <MobileQuestPreviewContainer {...object}>{((Component) => <Component rowGenerator={value2} message={value3} horizontalOffset={0} pointerEvents="none" />)(value)}</MobileQuestPreviewContainer>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun104175() { // fn#104175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13840:332, offset: 0x0228912c, size: 72 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
|
||||
value = new value();
|
||||
value.setOptions({'renderCodedLinks': true, 'renderEmbeds': true, 'renderComponents': true,
|
||||
'shouldDisableInteractiveComponents': true});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun104177() { // fn#104177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13840:553, offset: 0x02289174, size: 288 bytes, params: 1, frame: 17
|
||||
var r0;
|
||||
var value3;
|
||||
var object3;
|
||||
var Date;
|
||||
var prototype;
|
||||
var value4;
|
||||
var date;
|
||||
var object4;
|
||||
var messageRecord;
|
||||
var value;
|
||||
let questIdBinding = questId;
|
||||
const value2 = null;
|
||||
if (value2 == questIdBinding) {
|
||||
r0 = value2;
|
||||
} else if (value2 == currentUser) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
object3 = {'id': '1000000000000000000', 'type': null, 'channel_id': '1000000000000000001', 'author': null,
|
||||
'content': '', 'timestamp': null, 'edited_timestamp': null, 'tts': false, 'mention_everyone': false};
|
||||
object3.type = MessageTypes.DEFAULT;
|
||||
object3.author = currentUser;
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value4 = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
object3.timestamp = date instanceof Object ? date : value4;
|
||||
object3.mentions = [];
|
||||
object3.mention_roles = [];
|
||||
object3.attachments = [];
|
||||
object3.embeds = [];
|
||||
object3.reactions = [];
|
||||
object3.pinned = false;
|
||||
object3.webhook_id = value2;
|
||||
object4 = {};
|
||||
object4.type = (require(4101) /* metro dependency 4101: CodedLink */).CodedLinkType.QUESTS_EMBED;
|
||||
questIdBinding = questId;
|
||||
object4.code = questIdBinding;
|
||||
value = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
object4.url = value.getQuestUrl(questIdBinding);
|
||||
object3.codedLinks = [object4];
|
||||
prototype = MessageRecord.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: MessageRecord}});
|
||||
messageRecord = new MessageRecord();
|
||||
value = messageRecord instanceof Object ? messageRecord : value;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
/* Metro module 13645; source: modules/user_settings/quests/native/QuestThemePicker.tsx; dependencies: [31, 27, 1311, 1310, 3965, 482, 33, 4501, 697, 6771, 6789, 4045, 566, 3966, 3860, 1861, 13646, 4573, 13127, 1244, 2] */
|
||||
function _fun104194(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:6, offset: 0x02289d84, size: 575 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = QuestThemePicker;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.TouchableOpacity;
|
||||
const selectivelySyncedUserSettingsStore = importDefault(1311) /* metro dependency 1311: SelectivelySyncedUserSettingsStore */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const env0_8 = (require(3965) /* metro dependency 3965: ClientThemesConstants */).LEGACY_STANDARD_BACKGROUND_THEMES;
|
||||
const env0_9 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.themeSection = {marginBottom: PX_8};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.themeSelector = {flexDirection: 'row', gap: PX_12};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.themeOption = {alignItems: 'center', gap: PX_4};
|
||||
const object3 = {'width': 32, 'height': 32, 'borderRadius': null, 'borderWidth': 2, 'borderColor': 'transparent'};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.themeCircle = object3;
|
||||
const MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT;
|
||||
object2.themeCircleSelected = {borderColor: MOBILE_LEGACY_BUTTON_SECONDARY_BORDER_DEFAULT};
|
||||
object2.themeLabel = {fontSize: 11};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.resetButton = {alignItems: 'center', gap: PX_4};
|
||||
const object4 = {'width': 32, 'height': 32, 'borderRadius': null, 'borderWidth': 2, 'borderColor': 'transparent',
|
||||
'justifyContent': 'center', 'alignItems': 'center'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.resetIcon = object4;
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/QuestThemePicker.tsx');
|
||||
exports.default = closure;
|
||||
exports.QuestThemePicker = closure;
|
||||
}
|
||||
|
||||
function QuestThemePicker() { // fn#104195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:879, offset: 0x02289fc3, size: 865 bytes, params: 1, frame: 31
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const USER_SETTINGS = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).USER_SETTINGS;
|
||||
const analyticsLocations = defaultImport(USER_SETTINGS).analyticsLocations;
|
||||
const value2 = (require(4045) /* metro dependency 4045: MobileThemesUtils */).useAllMobileThemes();
|
||||
const theme = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThemeStore], function() {
|
||||
return ThemeStore.theme;
|
||||
});
|
||||
const env0_3 = theme;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
const isSynced = Reflect.apply(useStateFromStoresObject, fluxModule, [[SelectivelySyncedUserSettingsStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.isSynced = SelectivelySyncedUserSettingsStore.shouldSync('appearance');
|
||||
return object;
|
||||
}]).isSynced;
|
||||
const env0_5 = env0_3.useRef(null);
|
||||
env0_3.useEffect(_fun104198, [theme]);
|
||||
const value3 = env0_3.useMemo(_fun104199, [value2]);
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const LIGHT = ThemeTypes.LIGHT;
|
||||
const value4 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOW, LIGHT]);
|
||||
const moduleValue5 = useTokenModule;
|
||||
useToken = moduleValue5.useToken;
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
const value5 = Reflect.apply(useToken, moduleValue5, [BACKGROUND_BASE_LOW, DARKER]);
|
||||
const moduleValue6 = useTokenModule;
|
||||
useToken = moduleValue6.useToken;
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const MIDNIGHT = ThemeTypes.MIDNIGHT;
|
||||
const value7 = env0_3.useMemo(_fun104201, [value3, value4, value5, Reflect.apply(useToken, moduleValue6,
|
||||
[BACKGROUND_BASE_LOW, MIDNIGHT])]);
|
||||
const value9 = env0_3.useCallback(_fun104205, [env0_3.useCallback(_fun104203, [analyticsLocations, isSynced])]);
|
||||
const value10 = value7.map(_fun104206);
|
||||
const RefreshIcon = (require(13127) /* metro dependency 13127: RefreshIcon */).RefreshIcon;
|
||||
const view = <View style={styles.resetIcon}><RefreshIcon size="sm" /></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.themeSection}>
|
||||
<View style={styles.themeSelector}>
|
||||
{value10}
|
||||
<TouchableOpacity style={styles.resetButton} onPress={value9}>
|
||||
{view}
|
||||
<Text
|
||||
variant="text-xs/medium"
|
||||
color="text-muted"
|
||||
style={styles.themeLabel}
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yBZMsQ)}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104198() { // fn#104198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1177, offset: 0x0228a343, size: 36 bytes, params: 1, frame: 3
|
||||
if (env0_5.current == null) {
|
||||
env0_5.current = theme;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104199() { // fn#104199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1237, offset: 0x0228a367, size: 80 bytes, params: 1, frame: 12
|
||||
const LIGHT = ThemeTypes.LIGHT;
|
||||
const items2 = [LIGHT];
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
items2[1] = DARKER;
|
||||
const MIDNIGHT = ThemeTypes.MIDNIGHT;
|
||||
items2[2] = MIDNIGHT;
|
||||
return env0_2.filter(_fun104200);
|
||||
}
|
||||
|
||||
function _fun104201() { // fn#104201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1617, offset: 0x0228a415, size: 93 bytes, params: 1, frame: 14
|
||||
const object2 = {};
|
||||
const LIGHT = ThemeTypes.LIGHT;
|
||||
object2[LIGHT] = env0_7;
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
object2[DARKER] = env0_8;
|
||||
const MIDNIGHT = ThemeTypes.MIDNIGHT;
|
||||
object2[MIDNIGHT] = env0_9;
|
||||
return env0_6.map(_fun104202);
|
||||
}
|
||||
|
||||
function _fun104203(a0) { // fn#104203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1828, offset: 0x0228a4da, size: 90 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
const value2 = LEGACY_STANDARD_BACKGROUND_THEMES.find(_fun104204);
|
||||
if (value2 != null) {
|
||||
value = require(13646) /* metro dependency 13646: UserSettingsAppearanceThemeUtils */;
|
||||
value.handleSaveTheme(value2, analyticsLocations, isSynced);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104205() { // fn#104205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1930, offset: 0x0228a534, size: 42 bytes, params: 1, frame: 11
|
||||
if (env0_5.current != null) {
|
||||
env0_10(env0_5.current);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104206(a0) { // fn#104206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:2058, offset: 0x0228a55e, size: 231 bytes, params: 2, frame: 22
|
||||
const env0_0 = a0;
|
||||
const object2 = {};
|
||||
const stylesBinding = styles;
|
||||
object2.style = stylesBinding.themeOption;
|
||||
object2.onPress = onPress_104207;
|
||||
const view = <View style={[stylesBinding.themeCircle, {backgroundColor: a0.color},
|
||||
theme === a0.theme && styles.themeCircleSelected]} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<TouchableOpacity {...object2} key={a0.theme}>
|
||||
{view}
|
||||
<Text
|
||||
variant="text-xs/medium"
|
||||
color="text-muted"
|
||||
style={styles.themeLabel}
|
||||
>
|
||||
{a0.name}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104200(a0) { // fn#104200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1295, offset: 0x0228a3b7, size: 94 bytes, params: 2, frame: 13
|
||||
const type = a0.type;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const ClientThemeType = (require(3966) /* metro dependency 3966: ClientThemesTypes */).ClientThemeType;
|
||||
const STANDARD_BACKGROUND_THEME = ClientThemeType.STANDARD_BACKGROUND_THEME;
|
||||
return type === STANDARD_BACKGROUND_THEME && env0_0.includes(a0.theme) && a0.theme !== 'system';
|
||||
}
|
||||
|
||||
function _fun104202(a0) { // fn#104202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:1684, offset: 0x0228a472, size: 104 bytes, params: 2, frame: 14
|
||||
const theme = a0.theme;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(1861) /* metro dependency 1861: StringUtils */;
|
||||
value = value.isNullOrEmpty(env0_0[theme]);
|
||||
const r1 = value ? '#000000' : env0_0[theme];
|
||||
const object2 = {};
|
||||
object2.theme = a0.theme;
|
||||
object2.name = a0.getName();
|
||||
object2.color = r1;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function onPress_104207() { // fn#104207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13842:2094, offset: 0x0228a645, size: 29 bytes, params: 1, frame: 11
|
||||
return env1_10(env0_0.theme);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,237 @@
|
||||
/* Metro module 13640; source: modules/user_settings/quests/native/SettingsQuestPreviewScreen.tsx; dependencies: [57, 31, 27, 7093, 1310, 33, 697, 4501, 1485, 566, 13641, 13643, 1244, 8853, 9484, 694, 13644, 9221, 8861, 13649, 2] */
|
||||
function _fun104150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:6, offset: 0x022880a8, size: 451 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ActivityIndicator;
|
||||
const env0_7 = value.ScrollView;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
const env0_12 = value.Fragment;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.controlBarContainer = {paddingHorizontal: PX_16, paddingTop: PX_16 / 2, paddingBottom: PX_16};
|
||||
object2.segmentedControlContainer = {paddingHorizontal: PX_16};
|
||||
object2.pagesContainer = {'flex': 1, 'width': '100%'};
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object2.activityIndicator = {marginTop: PX_32};
|
||||
const PX_80 = (importDefault(697) /* metro dependency 697: native */).space.PX_80;
|
||||
object2.allSectionsContainer = {marginBottom: PX_80};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/quests/native/SettingsQuestPreviewScreen.tsx');
|
||||
exports.default = SettingsQuestPreviewScreen;
|
||||
}
|
||||
|
||||
function SettingsQuestPreviewScreen() { // fn#104151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:725, offset: 0x0228826b, size: 1214 bytes, params: 1, frame: 33
|
||||
var r6;
|
||||
var view;
|
||||
var items4;
|
||||
var jsxRuntimeEnv0_12Binding;
|
||||
var items5;
|
||||
const value2 = undefined;
|
||||
const moduleValue = require(1485) /* metro dependency 1485 */;
|
||||
const useRoute = moduleValue.useRoute;
|
||||
const params = Reflect.apply(useRoute, moduleValue, []).params;
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value4 = env0_3(Reflect.apply(useState, binding, [params == null ? value2 : params.questId]), 2);
|
||||
const property = value4[0];
|
||||
const property2 = value4[1];
|
||||
var env0_3 = property2;
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun104152,
|
||||
[property]);
|
||||
var env0_4 = value5;
|
||||
const theme = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThemeStore], function() {
|
||||
return ThemeStore.theme;
|
||||
});
|
||||
binding = env0_4;
|
||||
let useCallback = binding.useCallback;
|
||||
const value6 = Reflect.apply(useCallback, binding, [_fun104154, [value5]]);
|
||||
useCallback = binding.useCallback;
|
||||
const userStatus = value5 == null ? value2 : value5.userStatus;
|
||||
const value7 = Reflect.apply(useCallback, binding, [_fun104155, [property, theme, userStatus]]);
|
||||
binding = env0_4;
|
||||
const value9 = binding.useMemo(_fun104157, [value5, property, value6, value7, binding.useCallback(function() {
|
||||
return null;
|
||||
}, []), styles.allSectionsContainer]);
|
||||
const value10 = binding.useState(0);
|
||||
const binding2 = env0_3;
|
||||
const value11 = binding2(value10, 2);
|
||||
const property3 = value11[0];
|
||||
const env0_10 = value11[1];
|
||||
useState = binding.useState;
|
||||
const value12 = binding2(Reflect.apply(useState, binding, [0]), 2);
|
||||
const property4 = value12[0];
|
||||
const property5 = value12[1];
|
||||
const value13 = binding.useCallback(_fun104158, []);
|
||||
const value14 = (require(8853) /* metro dependency 8853: SegmentedControlStateNative */).useSegmentedControlState({items: value9,
|
||||
pageWidth: property3, defaultIndex: 0, onPageChange: property5});
|
||||
const value15 = binding.useMemo(_fun104159, [property4, value9]);
|
||||
binding.useEffect(_fun104160, [params == null ? value2 : params.questId]);
|
||||
binding = env0_4;
|
||||
binding.useEffect(_fun104161, [property]);
|
||||
binding.useEffect(_fun104162, [property]);
|
||||
const value16 = binding.useCallback(_fun104165, [property]);
|
||||
const value17 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun104166,
|
||||
[property]);
|
||||
const value18 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun104167,
|
||||
[property]);
|
||||
if (value17) {
|
||||
if (value5 == null) {
|
||||
view = <View style={styles.container}><ActivityIndicator animating size="large" style={styles.activityIndicator} /></View>;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items4 = [<View style={styles.controlBarContainer}>{((MobileQuestPreviewControlBar) => <MobileQuestPreviewControlBar questId={property} setQuestId={property2} refreshQuest={value16} />)((require(13644) /* metro dependency 13644: MobileQuestPreviewControlBar */).MobileQuestPreviewControlBar)}</View>];
|
||||
r6 = value5 != null && value18 == null;
|
||||
if (r6) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
items5 = [<View style={styles.segmentedControlContainer}>{((SegmentedControl) => <SegmentedControl state={value14} />)((require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl)}</View>];
|
||||
items5[1] = <ScrollView style={styles.pagesContainer} onLayout={value13}>{((SegmentedControlPages) => <SegmentedControlPages state={value14} />)((require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages)}</ScrollView>;
|
||||
r6 = <>{items5}</>;
|
||||
}
|
||||
items4[1] = r6;
|
||||
items4[2] = ((QuestBarPreview) => <QuestBarPreview quest={value5} isVisible={value15} />)((require(13649) /* metro dependency 13649: QuestBarPreview */).QuestBarPreview);
|
||||
view = <View {...viewBindingProps}>{items4}</View>;
|
||||
}
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
items4 = [<View style={styles.controlBarContainer}>{((MobileQuestPreviewControlBar) => <MobileQuestPreviewControlBar questId={property} setQuestId={property2} refreshQuest={value16} />)((require(13644) /* metro dependency 13644: MobileQuestPreviewControlBar */).MobileQuestPreviewControlBar)}</View>];
|
||||
r6 = value5 != null && value18 == null;
|
||||
if (r6) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
items5 = [<View style={styles.segmentedControlContainer}>{((SegmentedControl) => <SegmentedControl state={value14} />)((require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl)}</View>];
|
||||
items5[1] = <ScrollView style={styles.pagesContainer} onLayout={value13}>{((SegmentedControlPages) => <SegmentedControlPages state={value14} />)((require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages)}</ScrollView>;
|
||||
r6 = <>{items5}</>;
|
||||
}
|
||||
items4[1] = r6;
|
||||
items4[2] = ((QuestBarPreview) => <QuestBarPreview quest={value5} isVisible={value15} />)((require(13649) /* metro dependency 13649: QuestBarPreview */).QuestBarPreview);
|
||||
view = <View {...viewBindingProps}>{items4}</View>;
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
||||
function _fun104152() { // fn#104152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:897, offset: 0x02288729, size: 42 bytes, params: 1, frame: 12
|
||||
return env0_2 != null ? QuestStore.getQuest(env0_2) : undefined;
|
||||
}
|
||||
|
||||
function _fun104154() { // fn#104154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:1001, offset: 0x02288762, size: 70 bytes, params: 1, frame: 15
|
||||
const value2 = null;
|
||||
if (value2 == env0_4) {
|
||||
return value2;
|
||||
} else {
|
||||
const QuestCardPreview = (require(13641) /* metro dependency 13641: QuestCardPreview */).QuestCardPreview;
|
||||
return <QuestCardPreview quest={env0_4} />;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104155() { // fn#104155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:1080, offset: 0x022887a8, size: 203 bytes, params: 1, frame: 24
|
||||
if (env0_2 == null) {
|
||||
return null;
|
||||
}
|
||||
const binding = env0_2;
|
||||
const themeBinding = theme;
|
||||
const value2 = undefined;
|
||||
const value3 = '' + binding + '-' + themeBinding + '-' + (env0_4 == null || env0_4.userStatus == null ? value2 : env0_4.userStatus.completedAt) + '-' + (env0_4 == null || env0_4.userStatus == null ? value2 : env0_4.userStatus.progress);
|
||||
const QuestEmbedPreview = (require(13643) /* metro dependency 13643: QuestEmbedPreview */).QuestEmbedPreview;
|
||||
return <QuestEmbedPreview questId={env0_2} key={value3} />;
|
||||
}
|
||||
|
||||
function _fun104157() { // fn#104157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:1375, offset: 0x02288873, size: 423 bytes, params: 1, frame: 20
|
||||
let object2 = {id: 'all'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const Y9DnPa = (require(1244) /* metro dependency 1244: indexNative */).t.Y9DnPa;
|
||||
object2.label = Reflect.apply(string, intl, [Y9DnPa]);
|
||||
const value3 = null;
|
||||
object2.page = value3 != env0_4 && value3 != env0_2 ? <View style={styles.allSectionsContainer}>{[env0_6(),
|
||||
env0_7()]}</View> : value3;
|
||||
const items2 = [object2];
|
||||
object2 = {id: 'bar'};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uL4oBf);
|
||||
object2.page = env0_8();
|
||||
items2[1] = object2;
|
||||
object2 = {id: 'card'};
|
||||
string = intl.string;
|
||||
const MAvIf1 = (require(1244) /* metro dependency 1244: indexNative */).t.MAvIf1;
|
||||
object2.label = Reflect.apply(string, intl, [MAvIf1]);
|
||||
object2.page = env0_6();
|
||||
items2[2] = object2;
|
||||
object2 = {id: 'embed'};
|
||||
string = intl.string;
|
||||
const AswoU2 = (require(1244) /* metro dependency 1244: indexNative */).t.AswoU2;
|
||||
object2.label = Reflect.apply(string, intl, [AswoU2]);
|
||||
object2.page = env0_7();
|
||||
items2[3] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun104158({nativeEvent}) { // fn#104158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:1853, offset: 0x02288a1a, size: 36 bytes, params: 2, frame: 11
|
||||
env0_10(nativeEvent.layout.width);
|
||||
}
|
||||
|
||||
function _fun104159() { // fn#104159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2003, offset: 0x02288a3e, size: 52 bytes, params: 1, frame: 3
|
||||
const id = env0_9[env0_11]?.id;
|
||||
return id === 'all' || id === 'bar';
|
||||
}
|
||||
|
||||
function _fun104160() { // fn#104160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2092, offset: 0x02288a72, size: 55 bytes, params: 1, frame: 13
|
||||
const paramsBinding = params;
|
||||
const value2 = undefined;
|
||||
if ((paramsBinding == null ? value2 : params.questId) != null) {
|
||||
env0_3(params.questId);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun104161() { // fn#104161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2187, offset: 0x02288aa9, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_2 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).fetchQuestPreview(env0_2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104162() { // fn#104162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2251, offset: 0x02288ae2, size: 65 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const closure = listener_104163;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('QUEST_PREVIEW_UPDATE', closure);
|
||||
return _fun104164;
|
||||
}
|
||||
|
||||
function _fun104166() { // fn#104166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2565, offset: 0x02288ba7, size: 40 bytes, params: 1, frame: 12
|
||||
return env0_2 != null && QuestStore.isFetchingQuestPreview(env0_2);
|
||||
}
|
||||
|
||||
function _fun104167() { // fn#104167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2646, offset: 0x02288bcf, size: 40 bytes, params: 1, frame: 12
|
||||
const value2 = null;
|
||||
return value2 != env0_2 ? QuestStore.getFetchQuestPreviewError(env0_2) : value2;
|
||||
}
|
||||
|
||||
function listener_104163({quest_id}) { // fn#104163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2269, offset: 0x02288b23, size: 80 bytes, params: 2, frame: 12
|
||||
var value4;
|
||||
if (env1_2 != null && quest_id === env1_2) {
|
||||
value4 = environment.__proto__.__proto__;
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).fetchQuestPreview(env1_2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104164() { // fn#104164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13837:2392, offset: 0x02288b73, size: 52 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.unsubscribe('QUEST_PREVIEW_UPDATE', listener_104163);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user