62 lines
3.7 KiB
TypeScript
62 lines
3.7 KiB
TypeScript
/* Metro module 10961; source: modules/notifications/settings/native/NotificationSettingsChannelPost.tsx; dependencies: [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613, 2] */
|
|
function _fun83966(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:6, offset: 0x01f31432, size: 175 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 env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
|
|
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications/settings/native/NotificationSettingsChannelPost.tsx');
|
|
exports.NotificationSettingsChannelPost = NotificationSettingsChannelPost;
|
|
}
|
|
|
|
function NotificationSettingsChannelPost(a0) { // fn#83967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:284, offset: 0x01f314e1, size: 329 bytes, params: 2, frame: 26
|
|
const env0_0 = a0;
|
|
const channel = a0.channel;
|
|
const env0_1 = channel.guild_id;
|
|
const env0_2 = channel.id;
|
|
const {muted, guildMuted,
|
|
newForumThreadsCreated} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserGuildSettingsStore],
|
|
_fun83968);
|
|
const style = a0.style;
|
|
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
object.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.bK11jO]);
|
|
object.hasIcons = false;
|
|
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
|
|
string = intl.string;
|
|
const Rkgjph = (require(1244) /* metro dependency 1244: indexNative */).t.Rkgjph;
|
|
return (
|
|
<View style={style}>
|
|
<TableRowGroup {...object}>
|
|
<TableCheckboxRow
|
|
label={Reflect.apply(string, intl, [Rkgjph])}
|
|
checked={newForumThreadsCreated}
|
|
disabled={muted || guildMuted}
|
|
onPress={onPress_83969}
|
|
/>
|
|
</TableRowGroup>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function _fun83968() { // fn#83968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:404, offset: 0x01f3162a, size: 80 bytes, params: 1, frame: 15
|
|
const object2 = {};
|
|
const isChannelMuted = UserGuildSettingsStore.isChannelMuted;
|
|
const guild_idBinding = guild_id;
|
|
object2.muted = Reflect.apply(isChannelMuted, UserGuildSettingsStore, [guild_idBinding, id]);
|
|
object2.guildMuted = UserGuildSettingsStore.isMuted(guild_idBinding);
|
|
object2.newForumThreadsCreated = UserGuildSettingsStore.getNewForumThreadsCreated(env0_0.channel);
|
|
return object2;
|
|
}
|
|
|
|
function NotificationSettingsChannelPostOnPress() { // fn#83969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11147:809, owner: NotificationSettingsChannelPost.onPress, offset: 0x01f3167a, size: 58 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
|
|
value.setForumThreadsCreated(env0_0.channel, !newForumThreadsCreated);
|
|
}
|
|
|