71 lines
4.8 KiB
TypeScript
71 lines
4.8 KiB
TypeScript
/* Metro module 10961; source: modules/notifications/settings/native/NotificationSettingsChannelPost.tsx; dependencies: [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613, 2] */
|
|
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
|
|
import * as TableCheckboxRowNativeModule from '../../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
|
|
|
|
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});
|
|
ReactModule;
|
|
(FileImportTrackerModule).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} = (FluxModule).useStateFromStoresObject([UserGuildSettingsStore],
|
|
_fun83968);
|
|
const style = a0.style;
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
object2.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.bK11jO]);
|
|
object2.hasIcons = false;
|
|
const TableCheckboxRow = (TableCheckboxRowNativeModule).TableCheckboxRow;
|
|
string = intl.string;
|
|
const Rkgjph = (require(1244) /* metro dependency 1244: indexNative */).t.Rkgjph;
|
|
return (
|
|
<View style={style}>
|
|
<TableRowGroup {...object2}>
|
|
<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 object = {};
|
|
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
|
|
const isChannelMuted = userGuildSettingsStoreBinding.isChannelMuted;
|
|
const guild_idBinding = guild_id;
|
|
object.muted = Reflect.apply(isChannelMuted, userGuildSettingsStoreBinding, [guild_idBinding, id]);
|
|
object.guildMuted = userGuildSettingsStoreBinding.isMuted(guild_idBinding);
|
|
object.newForumThreadsCreated = userGuildSettingsStoreBinding.getNewForumThreadsCreated(env0_0.channel);
|
|
return object;
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun83966, 10961, [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613,
|
|
2]) /* metro module 10961, dependencies: [31, 27, 4864, 33, 566, 6231, 1244, 8950, 6613, 2] */;
|