Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/* Metro module 12148; source: modules/channel/native/ChannelActionSheetUtils.tsx; dependencies: [4800, 6797, 3856, 2] */
|
||||
function _fun93209(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12334:6, offset: 0x020aada7, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/ChannelActionSheetUtils.tsx');
|
||||
exports.copyGuildChannelOrThreadLink = copyGuildChannelOrThreadLink;
|
||||
}
|
||||
|
||||
function copyGuildChannelOrThreadLink(a0, a1) { // fn#93210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12334:207, offset: 0x020aae07, size: 89 bytes, params: 3, frame: 16
|
||||
let value = require(4800) /* metro dependency 4800: ChannelUtils */;
|
||||
value = value.getChannelPermalink(a0, a1);
|
||||
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(value);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentLinkCopied();
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,98 @@
|
||||
/* Metro module 10294; source: modules/channel/native/ChannelPickerActionSheet.tsx; dependencies: [31, 3793, 1878, 33, 1585, 6806, 4080, 6758, 7987, 6242, 10295, 6805, 6277, 7988, 6647, 4805, 2] */
|
||||
function _fun79837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:6, offset: 0x01e6442f, size: 179 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/ChannelPickerActionSheet.tsx');
|
||||
exports.default = ChannelPickerActionSheet;
|
||||
}
|
||||
|
||||
function ChannelPickerActionSheet(a0) { // fn#79838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:247, offset: 0x01e644e2, size: 563 bytes, params: 2, frame: 27
|
||||
var r4;
|
||||
var r11;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const header = a0.header;
|
||||
const env0_1 = a0.guild;
|
||||
const channels = a0.channels;
|
||||
const env0_3 = a0.onSelect;
|
||||
const selectedChannel = a0.selectedChannel;
|
||||
if (header != null) {
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
r4 = <BottomSheetTitleHeader title={header.title} trailing={header.onClose != null ? ((ActionSheetCloseButton) => <ActionSheetCloseButton onPress={onPress_79839} />)((require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton) : value2} />;
|
||||
} else {
|
||||
r4 = value2;
|
||||
}
|
||||
if (a0.noChannelOptionLabel != null) {
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
r11 = <TableRadioRow value="" label={a0.noChannelOptionLabel} icon={((TableRowIcon) => <TableRowIcon source={importDefault(10295) /* metro dependency 10295 */} />)((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon)} />;
|
||||
} else {
|
||||
r11 = value2;
|
||||
}
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const object = {paddingBottom: bottom};
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
return (
|
||||
<ActionSheet scrollable header={r4}>
|
||||
<BottomSheetScrollView contentContainerStyle={object}>
|
||||
<TableRadioGroup
|
||||
defaultValue={(selectedChannel == null ? value2 : selectedChannel.id) ?? ''}
|
||||
accessibilityLabel={header == null ? value2 : header.title}
|
||||
onChange={onChange_79840}
|
||||
hasIcons
|
||||
>
|
||||
{[r11, channels.map(_fun79842)]}
|
||||
</TableRadioGroup>
|
||||
</BottomSheetScrollView>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function ChannelPickerActionSheetOnPress() { // fn#79839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:474, owner: ChannelPickerActionSheet.onPress, offset: 0x01e64715, size: 48 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
onClose();
|
||||
}
|
||||
|
||||
function ChannelPickerActionSheetOnChange(a0) { // fn#79840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:989, owner: ChannelPickerActionSheet.onChange, offset: 0x01e64745, size: 169 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
var value3;
|
||||
var value4;
|
||||
const env0_0 = a0;
|
||||
if (a0 === '') {
|
||||
if (env0_0.noChannelOptionLabel != null) {
|
||||
value4 = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
env0_0.onSelect(null);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
const value2 = channels.find(_fun79841);
|
||||
if (value2 != null) {
|
||||
value3 = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
onSelect(value2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun79842(a0) { // fn#79842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:1190, offset: 0x01e647ee, size: 186 bytes, params: 2, frame: 21
|
||||
const value = environment.__proto__;
|
||||
const channelIconWithGuild = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconWithGuild(a0,
|
||||
guild);
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
const tableRadioRowProps = {value: a0.id};
|
||||
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
tableRadioRowProps.label = useChannelNameModule.computeChannelName(a0, UserStore, RelationshipStore);
|
||||
const value4 = null;
|
||||
tableRadioRowProps.icon = value4 != channelIconWithGuild ? ((TableRowIcon) => <TableRowIcon source={channelIconWithGuild} />)((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon) : value4;
|
||||
return <TableRadioRow {...tableRadioRowProps} key={a0.id} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 4016; source: modules/channel/native/ScreenIndexFrozen.tsx; dependencies: [31, 4017, 2] */
|
||||
function _fun33072(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:6, offset: 0x01027162, size: 232 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = isScreenIndexFrozen;
|
||||
const closure2 = addFrozenScreenIndexesChangedListener;
|
||||
const closure3 = removeFrozenScreenIndexesChangedListener;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/ScreenIndexFrozen.tsx');
|
||||
exports.freezeScreenIndex = freezeScreenIndex;
|
||||
exports.isScreenIndexFrozen = closure;
|
||||
exports.addFrozenScreenIndexesChangedListener = closure2;
|
||||
exports.removeFrozenScreenIndexesChangedListener = closure3;
|
||||
exports.useIsScreenIndexFrozenSharedValue = useIsScreenIndexFrozenSharedValue;
|
||||
}
|
||||
|
||||
function addFrozenScreenIndexesChangedListener(a0) { // fn#33074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:174, offset: 0x01027260, size: 33 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
env0_4.add(a0);
|
||||
return _fun33075;
|
||||
}
|
||||
|
||||
function freezeScreenIndex(a0, a1) { // fn#33077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:451, offset: 0x01027298, size: 63 bytes, params: 3, frame: 12
|
||||
const binding = env0_3;
|
||||
if (a0) {
|
||||
binding.add(a1);
|
||||
} else {
|
||||
binding.delete(a1);
|
||||
}
|
||||
env0_4.forEach(function(a0) {
|
||||
return a0();
|
||||
});
|
||||
}
|
||||
|
||||
function useIsScreenIndexFrozenSharedValue(a0) { // fn#33079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:767, offset: 0x010272d7, size: 92 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(isScreenIndexFrozen(a0));
|
||||
env0_2.useEffect(function() {
|
||||
return addFrozenScreenIndexesChangedListener(_fun33081);
|
||||
}, [a0, value2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun33075() { // fn#33075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:240, offset: 0x01027281, size: 23 bytes, params: 1, frame: 11
|
||||
removeFrozenScreenIndexesChangedListener(env0_0);
|
||||
}
|
||||
|
||||
function _fun33080() { // fn#33080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:886, offset: 0x01027333, size: 23 bytes, params: 1, frame: 11
|
||||
return addFrozenScreenIndexesChangedListener(_fun33081);
|
||||
}
|
||||
|
||||
function _fun33081() { // fn#33081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4174:929, offset: 0x0102734a, size: 37 bytes, params: 1, frame: 13
|
||||
const binding = env1_1;
|
||||
binding.set(isScreenIndexFrozen(env1_0));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 9091; source: modules/channel/native/components/CreateChannelTypeDescription.tsx; dependencies: [31, 27, 9092, 661, 33, 9093, 6721, 4573, 1244, 2] */
|
||||
function _fun71094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9276:6, offset: 0x01d14856, size: 200 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(9092) /* metro dependency 9092: GuildProfileStore */).GuildProfileFetchStatus;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/components/CreateChannelTypeDescription.tsx');
|
||||
exports.default = CreateChannelTypeDescription;
|
||||
}
|
||||
|
||||
function CreateChannelTypeDescription({guildId, channelType}) { // fn#71095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9276:302, offset: 0x01d1491e, size: 328 bytes, params: 2, frame: 22
|
||||
var r3;
|
||||
var r0;
|
||||
var VISIBLE;
|
||||
var Text;
|
||||
var intl;
|
||||
const {guildProfile, fetchGuildProfile,
|
||||
fetchStatus} = (require(9093) /* metro dependency 9093: useGuildProfile */).useGuildProfile(guildId);
|
||||
const FETCHED = GuildProfileFetchStatus.FETCHED;
|
||||
const value3 = fetchStatus !== FETCHED;
|
||||
const value5 = guildProfile != null;
|
||||
if (value5) {
|
||||
VISIBLE = (require(6721) /* metro dependency 6721: GuildProfileVisibility */).GuildProfileVisibilitySets.VISIBLE;
|
||||
r3 = VISIBLE.has(guildProfile.visibility);
|
||||
} else {
|
||||
r3 = value5;
|
||||
}
|
||||
const r1 = !value3 && !r3 && channelType === ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
env0_2.useEffect(function() {
|
||||
fetchGuildProfile();
|
||||
}, [guildId, fetchGuildProfile]);
|
||||
if (r1) {
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <View><Text variant="text-sm/normal" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2Ab4Id'])}</Text></View>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
/* Metro module 14694; source: modules/channel/native/getChannelSubtitleData.tsx; dependencies: [1244, 2] */
|
||||
function _fun110867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14891:6, offset: 0x0238a48a, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/getChannelSubtitleData.tsx');
|
||||
exports.getChannelSubtitleData = getChannelSubtitleData;
|
||||
}
|
||||
|
||||
function getChannelSubtitleData(a0) { // fn#110868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14891:200, offset: 0x0238a4ea, size: 190 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
var intl;
|
||||
if (a0 == null) {
|
||||
return null;
|
||||
}
|
||||
const type = a0.type;
|
||||
if (type === 'embedded-activities') {
|
||||
return {subtitle: a0.name, type: a0.type};
|
||||
}
|
||||
if (type === 'event') {
|
||||
return {subtitle: a0.name, type: a0.type};
|
||||
}
|
||||
if (type === 'go-live') {
|
||||
object2 = {};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.subtitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Pa817q);
|
||||
object2.type = a0.type;
|
||||
return object2;
|
||||
}
|
||||
if (type === 'voice') {
|
||||
return {subtitle: a0.text, type: a0.type};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 12129; source: modules/channel/native/openChannelLongPressActionSheet.tsx; dependencies: [4080, 12130, 1962, 2] */
|
||||
function _fun93065(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12315:6, offset: 0x020a5094, size: 103 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/openChannelLongPressActionSheet.tsx');
|
||||
exports.openChannelLongPressActionSheet = function(a0) {
|
||||
var value = 'ChannelLongPress-' + a0;
|
||||
var env0_0 = value;
|
||||
importDefault(dependencyMap[0]).openLazy(require(dependencyMap[2])(dependencyMap[1], dependencyMap.paths),
|
||||
value,
|
||||
{channelId: a0, onClose: _fun93067});
|
||||
};
|
||||
}
|
||||
|
||||
function openChannelLongPressActionSheet(a0) { // fn#93066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12315:218, offset: 0x020a50fb, size: 124 bytes, params: 2, frame: 19
|
||||
const value = 'ChannelLongPress-' + a0;
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
defaultImport.openLazy(require(dependencyMap[2])(dependencyMap[1], dependencyMap.paths), value, {channelId: a0,
|
||||
onClose: onClose_93067});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 11265; source: modules/channel/native/openChannelPicker.tsx; dependencies: [1935, 1867, 4080, 10294, 1962, 1244, 2] */
|
||||
function _fun86064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11451:6, offset: 0x01f86848, size: 134 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/openChannelPicker.tsx');
|
||||
exports.default = openChannelPicker;
|
||||
}
|
||||
|
||||
function openChannelPicker(a0) { // fn#86065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11451:204, offset: 0x01f868ce, size: 319 bytes, params: 2, frame: 28
|
||||
const selectedChannel = a0.selectedChannel;
|
||||
const guildId = a0.guildId;
|
||||
const channelType = a0.channelType;
|
||||
const filterFn = a0.filterFn;
|
||||
const r10 = filterFn !== undefined ? filterFn : function() {
|
||||
return true;
|
||||
};
|
||||
const onClose = a0.onClose;
|
||||
const object4 = {'selectedChannel': 0, 'guildId': 0, 'channelType': 0, 'filterFn': 0, 'onClose': 0};
|
||||
silentSetPrototypeOf(object4, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object4, undefined);
|
||||
const guild = GuildStore.getGuild(guildId);
|
||||
const getChannels = GuildChannelStore.getChannels;
|
||||
const r9 = Reflect.apply(getChannels, GuildChannelStore, [guildId])[channelType] ?? [];
|
||||
const defaultImport = importDefault(dependencyMap[2]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const value4 = require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths);
|
||||
const object5 = {};
|
||||
const object6 = {};
|
||||
const intl = require(dependencyMap[5]).intl;
|
||||
object6.title = intl.string(require(dependencyMap[5]).t.r2ptsz);
|
||||
object6.onClose = onClose;
|
||||
object5.header = object6;
|
||||
object5.guild = guild;
|
||||
object5.channels = r9.filter(r10).map(function(a0) {
|
||||
return a0.channel;
|
||||
});
|
||||
object5.selectedChannel = selectedChannel;
|
||||
copyDataProperties(object5, value, object4);
|
||||
Reflect.apply(openLazy, defaultImport, [value4, 'ChannelPicker', object5]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user