34 lines
1.5 KiB
TypeScript
34 lines
1.5 KiB
TypeScript
// Module ID: 11417
|
|
// Function ID: 11418
|
|
// Name: openAddMembersActionSheet
|
|
// Dependencies: [673, 695, 4445, 9733, 2008, 11418, 2]
|
|
// Exports: openAddMembersActionSheet, openChannelMembersActionSheet
|
|
|
|
// Module 11417 (openAddMembersActionSheet)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 673 */;
|
|
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 2008 */;
|
|
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4445 */;
|
|
|
|
const AnalyticEvents = ME.AnalyticEvents;
|
|
const result = set.fileFinishedImporting("modules/channel_permissions/native/ChannelPermissionsUtils.tsx");
|
|
|
|
export const openAddMembersActionSheet = function openAddMembersActionSheet(closure_0) {
|
|
let flag = arg1;
|
|
if (arg1 === undefined) {
|
|
flag = false;
|
|
}
|
|
let obj = expandEventPropertiesDefault;
|
|
obj.track(AnalyticEvents.OPEN_POPOUT, { type: "Grant Channel Access" });
|
|
const obj2 = ACTION_SHEET_HEIGHT_HALFDefault;
|
|
obj = { channel: closure_0, canSkip: flag };
|
|
obj2.openLazy(asyncRequireImpl(9733, dependencyMap.paths), "channel-add-members-" + closure_0.id, obj);
|
|
};
|
|
export const openChannelMembersActionSheet = function openChannelMembersActionSheet(id, guild_id) {
|
|
let obj = expandEventPropertiesDefault;
|
|
obj.track(AnalyticEvents.OPEN_POPOUT, { type: "Manage Channel Access" });
|
|
const obj2 = ACTION_SHEET_HEIGHT_HALFDefault;
|
|
obj = { channelId: id, guildId: guild_id };
|
|
obj2.openLazy(asyncRequireImpl(11418, dependencyMap.paths), "channel-members-" + id, obj);
|
|
};
|