Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
165 lines
7.7 KiB
TypeScript
165 lines
7.7 KiB
TypeScript
// Module ID: 16905
|
|
// Function ID: 16906
|
|
// Name: ChannelSettingsModal
|
|
// Dependencies: [19, 17, 1074, 7930, 21, 4605, 576, 16906, 1114, 10213, 16813, 16915, 16916, 16918, 16925, 16926, 16935, 16938, 16947, 16949, 16950, 16951, 16952, 16953, 2]
|
|
// Exports: getChannelSettingsScreens
|
|
|
|
// Module 16905 (ChannelSettingsModal)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import ChannelSettingsNotificationsDefault from "ChannelSettingsNotifications" /* 10213 */;
|
|
import messages_PinsScreenDefault from "messages/PinsScreen" /* 16813 */;
|
|
import ChannelSettingsOverviewDefault from "ChannelSettingsOverview" /* 16906 */;
|
|
import MessagePreviewDefault from "MessagePreview" /* 16915 */;
|
|
import EasyChannelPermissionSettingsDefault from "EasyChannelPermissionSettings" /* 16918 */;
|
|
import ChannelSettingsPermissionsListDefault from "ChannelSettingsPermissionsList" /* 16925 */;
|
|
import ChannelSettingsPermissionsOverridesDefault from "ChannelSettingsPermissionsOverrides" /* 16926 */;
|
|
import ChannelSettingsIntegrationsOverviewDefault from "ChannelSettingsIntegrationsOverview" /* 16935 */;
|
|
import IntegrationsSettingsWebhooksOverviewDefault from "IntegrationsSettingsWebhooksOverview" /* 16938 */;
|
|
import ChannelSettingsChangeCategoryDefault from "ChannelSettingsChangeCategory" /* 16950 */;
|
|
import ChannelSettingsChangeRTCRegionDefault from "ChannelSettingsChangeRTCRegion" /* 16951 */;
|
|
import ChannelSettingsEditForumTagDefault from "ChannelSettingsEditForumTag" /* 16952 */;
|
|
import ChannelSettingsChangeDefaultForumLayoutDefault from "ChannelSettingsChangeDefaultForumLayout" /* 16953 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const View = fn(17).View;
|
|
const Constants = fn(1074);
|
|
({ ChannelSettingsSections: closure_4, SearchTypes: hasOwnProperty, WebhookTypes: metroRequire } = Constants);
|
|
const SearchTabs = fn(7930).SearchTabs;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4605);
|
|
let obj2 = { container: { flex: 1, backgroundColor: nativeDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND }, pinsScreen: null };
|
|
let obj3 = { flex: 1, backgroundColor: nativeDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND };
|
|
obj2.pinsScreen = { flex: 1, backgroundColor: nativeDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND };
|
|
const styles = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("components_native/channel_settings/ChannelSettingsModal.tsx");
|
|
|
|
export const useChannelSettingsScreensStyles = styles;
|
|
export const getChannelSettingsScreens = function getChannelSettingsScreens(channelId, guildId, channelSettingsScreensStyles) {
|
|
_require = channelId;
|
|
dependencyMap = channelSettingsScreensStyles;
|
|
let obj = { [closure_4.OVERVIEW]: obj2 };
|
|
const obj3 = { title: null, render: null };
|
|
const intl = require("util").intl;
|
|
obj3.title = intl.string(require("util").t.h850Ss);
|
|
obj3.render = function render() {
|
|
return jsx(ChannelSettingsNotificationsDefault, { channelId });
|
|
};
|
|
obj[constants.NOTIFICATIONS] = obj3;
|
|
const obj4 = { title: null, render: null };
|
|
const intl2 = require("util").intl;
|
|
obj4.title = intl2.string(require("util").t["mp1N/2"]);
|
|
obj4.render = function render() {
|
|
const obj2 = { style: pinsScreen.pinsScreen, children: jsx(messages_PinsScreenDefault, { searchContext: { type: constants2.GUILD_CHANNEL, guildId, channelId }, tab: SearchTabs.PINS, isFocused: true }) };
|
|
return <View style={pinsScreen.pinsScreen}>{jsx(messages_PinsScreenDefault, { searchContext: { type: constants2.GUILD_CHANNEL, guildId, channelId }, tab: SearchTabs.PINS, isFocused: true })}</View>;
|
|
};
|
|
obj[constants.PINNED_MESSAGES] = obj4;
|
|
obj[constants.PINNED_CHAT] = {
|
|
postponeRender: true,
|
|
render() {
|
|
return jsx(MessagePreviewDefault, { channelId });
|
|
}
|
|
};
|
|
const obj5 = { title: null, postponeRender: true, render: null };
|
|
const intl3 = require("util").intl;
|
|
obj5.title = intl3.string(require("util").t.ngRFjZ);
|
|
obj5.render = function render() {
|
|
return jsx(guildId(pinsScreen[12]), {});
|
|
};
|
|
obj[constants.INSTANT_INVITES] = obj5;
|
|
const obj6 = { title: null, render: null };
|
|
const intl4 = require("util").intl;
|
|
obj6.title = intl4.string(require("util").t.xrmhRX);
|
|
obj6.render = function render(arg0) {
|
|
const obj = {};
|
|
const merged = Object.assign(arg0);
|
|
obj.channelId = channelId;
|
|
return jsx(EasyChannelPermissionSettingsDefault, {});
|
|
};
|
|
obj[constants.PERMISSIONS] = obj6;
|
|
const obj7 = { title: null, postponeRender: true, render: null };
|
|
const intl5 = require("util").intl;
|
|
obj7.title = intl5.string(require("util").t.vPHdP5);
|
|
obj7.render = function render(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(ChannelSettingsPermissionsListDefault, { channelId });
|
|
};
|
|
obj[constants.NEW_PERMISSION] = obj7;
|
|
const obj8 = { title: null, render: null };
|
|
const intl6 = require("util").intl;
|
|
obj8.title = intl6.string(require("util").t.D4p9TR);
|
|
obj8.render = function render(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(ChannelSettingsPermissionsOverridesDefault, { channelId });
|
|
};
|
|
obj[constants.PERMISSION_OVERRIDES] = obj8;
|
|
const obj9 = { title: null, render: null };
|
|
const intl7 = require("util").intl;
|
|
obj9.title = intl7.string(require("util").t.CIsNZw);
|
|
obj9.render = function render(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(ChannelSettingsIntegrationsOverviewDefault, { channelId });
|
|
};
|
|
obj[constants.INTEGRATIONS] = obj9;
|
|
const obj10 = { title: null, render: null };
|
|
const intl8 = require("util").intl;
|
|
obj10.title = intl8.string(require("util").t.jp25Id);
|
|
obj10.render = function render() {
|
|
return jsx(IntegrationsSettingsWebhooksOverviewDefault, { channelId, webhookType: constants3.INCOMING });
|
|
};
|
|
obj[constants.WEBHOOKS] = obj10;
|
|
const obj11 = { title: null, render: null };
|
|
const intl9 = require("util").intl;
|
|
obj11.title = intl9.string(require("util").t["6SE3L3"]);
|
|
obj11.render = function render(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(guildId(pinsScreen[18]), {});
|
|
};
|
|
obj[constants.EDIT_WEBHOOK] = obj11;
|
|
const obj12 = { title: null, render: null };
|
|
const intl10 = require("util").intl;
|
|
obj12.title = intl10.string(require("util").t.OJknhi);
|
|
obj12.render = function render(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(guildId(pinsScreen[19]), {});
|
|
};
|
|
obj[constants.EDIT_LINKED_LOBBY] = obj12;
|
|
const obj13 = { title: null, render: null };
|
|
const intl11 = require("util").intl;
|
|
obj13.title = intl11.string(require("util").t.OrV60r);
|
|
obj13.render = function render() {
|
|
return jsx(IntegrationsSettingsWebhooksOverviewDefault, { channelId, webhookType: constants3.CHANNEL_FOLLOWER });
|
|
};
|
|
obj[constants.CHANNELS_FOLLOWED] = obj13;
|
|
const obj14 = { title: null, render: null };
|
|
const intl12 = require("util").intl;
|
|
obj14.title = intl12.string(require("util").t["+caQHK"]);
|
|
obj14.render = function render() {
|
|
return jsx(ChannelSettingsChangeCategoryDefault, { channelId });
|
|
};
|
|
obj[constants.CHANGE_CATEGORY] = obj14;
|
|
const obj15 = { title: null, render: null };
|
|
const intl13 = require("util").intl;
|
|
obj15.title = intl13.string(require("util").t["Ms8bX+"]);
|
|
obj15.render = function render() {
|
|
return jsx(ChannelSettingsChangeRTCRegionDefault, { channelId });
|
|
};
|
|
obj[constants.CHANGE_RTC_REGION] = obj15;
|
|
obj[constants.EDIT_FORUM_TAG] = {
|
|
render(arg0) {
|
|
const merged = Object.assign(arg0);
|
|
return jsx(ChannelSettingsEditForumTagDefault, { channelId });
|
|
}
|
|
};
|
|
const obj16 = { title: null, render: null };
|
|
const intl14 = require("util").intl;
|
|
obj16.title = intl14.string(require("util").t["kQvoC/"]);
|
|
obj16.render = function render() {
|
|
return jsx(ChannelSettingsChangeDefaultForumLayoutDefault, { channelId });
|
|
};
|
|
obj[constants.DEFAULT_FORUM_LAYOUT] = obj16;
|
|
return obj;
|
|
};
|