197 lines
14 KiB
TypeScript
197 lines
14 KiB
TypeScript
/* Metro module 15171; source: components_native/channel_settings/ChannelSettingsModal.tsx; dependencies: [31, 27, 661, 9615, 33, 4501, 697, 15172, 1244, 10935, 15107, 15182, 15183, 15185, 15190, 15191, 15200, 15203, 15210, 15212, 15213, 15214, 15215, 15216, 2] */
|
|
function _fun115812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:6, offset: 0x0246e727, size: 325 bytes, params: 8, frame: 23
|
|
var object2;
|
|
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;
|
|
let value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_4 = value.ChannelSettingsSections;
|
|
const env0_5 = value.SearchTypes;
|
|
const env0_6 = value.WebhookTypes;
|
|
const env0_7 = (require(9615) /* metro dependency 9615: SearchConstants */).SearchTabs;
|
|
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
|
const createStyles = (require(4501) /* metro dependency 4501: createStyles */).createStyles;
|
|
object2 = {};
|
|
let MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
|
object2.container = {flex: 1, backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND};
|
|
MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
|
object2.pinsScreen = {flex: 1, backgroundColor: MOBILE_ACTIONSHEET_BACKGROUND};
|
|
value = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/channel_settings/ChannelSettingsModal.tsx');
|
|
exports.useChannelSettingsScreensStyles = value;
|
|
exports.getChannelSettingsScreens = getChannelSettingsScreens;
|
|
}
|
|
|
|
function getChannelSettingsScreens(a0, a1, a2) { // fn#115813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:570, offset: 0x0246e86c, size: 1165 bytes, params: 4, frame: 21
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const object2 = {};
|
|
const OVERVIEW = ChannelSettingsSections.OVERVIEW;
|
|
object2[OVERVIEW] = {render: render_115814};
|
|
const NOTIFICATIONS = ChannelSettingsSections.NOTIFICATIONS;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
object2[NOTIFICATIONS] = {title: Reflect.apply(string, intl, [t.h850Ss]), render: render_115815};
|
|
const PINNED_MESSAGES = ChannelSettingsSections.PINNED_MESSAGES;
|
|
const object3 = {};
|
|
object3.title = intl.string(t['mp1N/2']);
|
|
object3.render = render_115816;
|
|
object2[PINNED_MESSAGES] = object3;
|
|
const PINNED_CHAT = ChannelSettingsSections.PINNED_CHAT;
|
|
object2[PINNED_CHAT] = {postponeRender: true, render: render_115817};
|
|
const INSTANT_INVITES = ChannelSettingsSections.INSTANT_INVITES;
|
|
object2[INSTANT_INVITES] = {title: intl.string(t.ngRFjZ), postponeRender: true, render: render_115818};
|
|
const PERMISSIONS = ChannelSettingsSections.PERMISSIONS;
|
|
object2[PERMISSIONS] = {title: intl.string(t.xrmhRX), render: render_115819};
|
|
const NEW_PERMISSION = ChannelSettingsSections.NEW_PERMISSION;
|
|
object2[NEW_PERMISSION] = {title: intl.string(t.vPHdP5), postponeRender: true, render: render_115820};
|
|
const PERMISSION_OVERRIDES = ChannelSettingsSections.PERMISSION_OVERRIDES;
|
|
string = intl.string;
|
|
const D4p9TR = t.D4p9TR;
|
|
object2[PERMISSION_OVERRIDES] = {title: Reflect.apply(string, intl, [D4p9TR]), render: render_115821};
|
|
const INTEGRATIONS = ChannelSettingsSections.INTEGRATIONS;
|
|
string = intl.string;
|
|
const CIsNZw = t.CIsNZw;
|
|
object2[INTEGRATIONS] = {title: Reflect.apply(string, intl, [CIsNZw]), render: render_115822};
|
|
const WEBHOOKS = ChannelSettingsSections.WEBHOOKS;
|
|
object2[WEBHOOKS] = {title: intl.string(t.jp25Id), render: render_115823};
|
|
const EDIT_WEBHOOK = ChannelSettingsSections.EDIT_WEBHOOK;
|
|
const object5 = {};
|
|
object5.title = intl.string(t['6SE3L3']);
|
|
object5.render = render_115824;
|
|
object2[EDIT_WEBHOOK] = object5;
|
|
const EDIT_LINKED_LOBBY = ChannelSettingsSections.EDIT_LINKED_LOBBY;
|
|
string = intl.string;
|
|
const OJknhi = t.OJknhi;
|
|
object2[EDIT_LINKED_LOBBY] = {title: Reflect.apply(string, intl, [OJknhi]), render: render_115825};
|
|
const CHANNELS_FOLLOWED = ChannelSettingsSections.CHANNELS_FOLLOWED;
|
|
string = intl.string;
|
|
const OrV60r = t.OrV60r;
|
|
object2[CHANNELS_FOLLOWED] = {title: Reflect.apply(string, intl, [OrV60r]), render: render_115826};
|
|
const CHANGE_CATEGORY = ChannelSettingsSections.CHANGE_CATEGORY;
|
|
const object6 = {};
|
|
object6.title = intl.string(t['+caQHK']);
|
|
object6.render = render_115827;
|
|
object2[CHANGE_CATEGORY] = object6;
|
|
const CHANGE_RTC_REGION = ChannelSettingsSections.CHANGE_RTC_REGION;
|
|
const object7 = {};
|
|
object7.title = intl.string(t['Ms8bX+']);
|
|
object7.render = render_115828;
|
|
object2[CHANGE_RTC_REGION] = object7;
|
|
const EDIT_FORUM_TAG = ChannelSettingsSections.EDIT_FORUM_TAG;
|
|
object2[EDIT_FORUM_TAG] = {render: render_115829};
|
|
const DEFAULT_FORUM_LAYOUT = ChannelSettingsSections.DEFAULT_FORUM_LAYOUT;
|
|
const object8 = {};
|
|
object8.title = intl.string(t['kQvoC/']);
|
|
object8.render = render_115830;
|
|
object2[DEFAULT_FORUM_LAYOUT] = object8;
|
|
return object2;
|
|
}
|
|
|
|
function getChannelSettingsScreensRender(a0) { // fn#115814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:640, owner: getChannelSettingsScreens.render, offset: 0x0246ecf9, size: 75 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} autoFocusElement={a0?.autoFocusElement} />)(importDefault(15172) /* metro dependency 15172: ChannelSettingsOverview */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115815() { // fn#115815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:790, owner: getChannelSettingsScreens.render, offset: 0x0246ed44, size: 50 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} />)(importDefault(10935) /* metro dependency 10935: ChannelSettingsNotifications */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115816() { // fn#115816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:888, owner: getChannelSettingsScreens.render, offset: 0x0246ed76, size: 131 bytes, params: 1, frame: 17
|
|
const object2 = {};
|
|
const GUILD_CHANNEL = SearchTypes.GUILD_CHANNEL;
|
|
object2.type = GUILD_CHANNEL;
|
|
object2.guildId = require;
|
|
object2.channelId = env0_0;
|
|
const pinsScreen = importDefault.pinsScreen;
|
|
const PinsScreen = importDefault(15107) /* metro dependency 15107: PinsScreen */;
|
|
const PINS = SearchTabs.PINS;
|
|
return (
|
|
<View style={pinsScreen}>
|
|
<PinsScreen
|
|
searchContext={object2}
|
|
tab={PINS}
|
|
isFocused
|
|
/>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115817() { // fn#115817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1088, owner: getChannelSettingsScreens.render, offset: 0x0246edf9, size: 50 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} />)(importDefault(15182) /* metro dependency 15182: ChatPreview */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115818() { // fn#115818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1209, owner: getChannelSettingsScreens.render, offset: 0x0246ee2b, size: 39 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component />)(importDefault(15183) /* metro dependency 15183: ChannelSettingsInstantInvites */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115819(a0) { // fn#115819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1297, owner: getChannelSettingsScreens.render, offset: 0x0246ee52, size: 65 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component {...a0} {...{['channelId']: env0_0}} />)(importDefault(15185) /* metro dependency 15185: EasyChannelPermissionSettings */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115820(a0) { // fn#115820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1421, owner: getChannelSettingsScreens.render, offset: 0x0246ee93, size: 60 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} {...a0} />)(importDefault(15190) /* metro dependency 15190: ChannelSettingsPermissionsList */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115821(a0) { // fn#115821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1533, owner: getChannelSettingsScreens.render, offset: 0x0246eecf, size: 60 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} {...a0} />)(importDefault(15191) /* metro dependency 15191: ChannelSettingsPermissionsOverrides */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115822(a0) { // fn#115822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1637, owner: getChannelSettingsScreens.render, offset: 0x0246ef0b, size: 60 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} {...a0} />)(importDefault(15200) /* metro dependency 15200: ChannelSettingsIntegrationsOverview */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115823() { // fn#115823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1737, owner: getChannelSettingsScreens.render, offset: 0x0246ef47, size: 65 bytes, params: 1, frame: 15
|
|
const IntegrationsSettingsWebhooksOverview = importDefault(15203) /* metro dependency 15203: IntegrationsSettingsWebhooksOverview */;
|
|
const INCOMING = WebhookTypes.INCOMING;
|
|
return <IntegrationsSettingsWebhooksOverview channelId={env0_0} webhookType={INCOMING} />;
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115824(a0) { // fn#115824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1863, owner: getChannelSettingsScreens.render, offset: 0x0246ef88, size: 49 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component {...a0} />)(importDefault(15210) /* metro dependency 15210: IntegrationsSettingsEditWebhook */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115825(a0) { // fn#115825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:1960, owner: getChannelSettingsScreens.render, offset: 0x0246efb9, size: 49 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component {...a0} />)(importDefault(15212) /* metro dependency 15212: IntegrationsSettingsEditLinkedLobby */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115826() { // fn#115826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:2057, owner: getChannelSettingsScreens.render, offset: 0x0246efea, size: 65 bytes, params: 1, frame: 15
|
|
const IntegrationsSettingsWebhooksOverview = importDefault(15203) /* metro dependency 15203: IntegrationsSettingsWebhooksOverview */;
|
|
const CHANNEL_FOLLOWER = WebhookTypes.CHANNEL_FOLLOWER;
|
|
return <IntegrationsSettingsWebhooksOverview channelId={env0_0} webhookType={CHANNEL_FOLLOWER} />;
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115827() { // fn#115827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:2194, owner: getChannelSettingsScreens.render, offset: 0x0246f02b, size: 50 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} />)(importDefault(15213) /* metro dependency 15213: ChannelSettingsChangeCategory */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115828() { // fn#115828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:2302, owner: getChannelSettingsScreens.render, offset: 0x0246f05d, size: 50 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} />)(importDefault(15214) /* metro dependency 15214: ChannelSettingsChangeRTCRegion */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115829(a0) { // fn#115829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:2360, owner: getChannelSettingsScreens.render, offset: 0x0246f08f, size: 60 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} {...a0} />)(importDefault(15215) /* metro dependency 15215: ChannelSettingsEditForumTag */);
|
|
}
|
|
|
|
function getChannelSettingsScreensRender_115830() { // fn#115830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15368:2475, owner: getChannelSettingsScreens.render, offset: 0x0246f0cb, size: 50 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
return ((Component) => <Component channelId={env0_0} />)(importDefault(15216) /* metro dependency 15216: ChannelSettingsChangeDefaultForumLayout */);
|
|
}
|
|
|