// Module ID: 17018 // Function ID: 17019 // Name: ChannelSettingsModal // Dependencies: [19, 17, 1074, 7994, 21, 4638, 576, 17019, 1115, 10281, 16925, 17028, 17029, 17031, 17038, 17039, 17048, 17051, 17060, 17062, 17063, 17064, 17065, 17066, 2] // Exports: getChannelSettingsScreens // Module 17018 (ChannelSettingsModal) import nativeDefault from "native" /* 576 */; import ChannelSettingsNotificationsDefault from "ChannelSettingsNotifications" /* 10281 */; import messages_PinsScreenDefault from "messages/PinsScreen" /* 16925 */; import ChannelSettingsOverviewDefault from "ChannelSettingsOverview" /* 17019 */; import MessagePreviewDefault from "MessagePreview" /* 17028 */; import EasyChannelPermissionSettingsDefault from "EasyChannelPermissionSettings" /* 17031 */; import ChannelSettingsPermissionsListDefault from "ChannelSettingsPermissionsList" /* 17038 */; import ChannelSettingsPermissionsOverridesDefault from "ChannelSettingsPermissionsOverrides" /* 17039 */; import ChannelSettingsIntegrationsOverviewDefault from "ChannelSettingsIntegrationsOverview" /* 17048 */; import IntegrationsSettingsWebhooksOverviewDefault from "IntegrationsSettingsWebhooksOverview" /* 17051 */; import ChannelSettingsChangeCategoryDefault from "ChannelSettingsChangeCategory" /* 17063 */; import ChannelSettingsChangeRTCRegionDefault from "ChannelSettingsChangeRTCRegion" /* 17064 */; import ChannelSettingsEditForumTagDefault from "ChannelSettingsEditForumTag" /* 17065 */; import ChannelSettingsChangeDefaultForumLayoutDefault from "ChannelSettingsChangeDefaultForumLayout" /* 17066 */; 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(7994).SearchTabs; const jsx = fn(21).jsx; const createStyles = fn(4638); 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 {jsx(messages_PinsScreenDefault, { searchContext: { type: constants2.GUILD_CHANNEL, guildId, channelId }, tab: SearchTabs.PINS, isFocused: true })}; }; 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; };