/* Metro module 16129; source: modules/notification_settings/native/NotificationSettingChannelOverrides.native.tsx; dependencies: [57, 31, 27, 1383, 5098, 3793, 1878, 661, 33, 4501, 697, 566, 5463, 5099, 4805, 6590, 1244, 3869, 7705, 6238, 6242, 6647, 7699, 6984, 1305, 8754, 8671, 2] */ function _fun124536(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:6, offset: 0x025bc48e, size: 396 bytes, params: 8, frame: 24 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; let value = importAll(31) /* metro dependency 31 */; const env0_5 = (require(27) /* metro dependency 27 */).View; const env0_6 = (require(1383) /* metro dependency 1383: ChannelRecord */).isGuildReadableType; const guildCategoryStore = importDefault(5098) /* metro dependency 5098: GuildCategoryStore */; const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_10 = constantsModule.ChannelTypes; const env0_11 = constantsModule.NotificationSettingsSections; const value3 = require(33) /* metro dependency 33 */; const env0_12 = value3.jsx; const env0_13 = value3.jsxs; const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createStyles = createStylesModule.createStyles; object2 = {}; const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object2.container = {marginHorizontal: PX_8, flex: 1}; const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.searchContainer = {paddingVertical: PX_16}; const env0_14 = Reflect.apply(createStyles, createStylesModule, [object2]); value = value.memo(NotificationSettingChannelOverrides); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notification_settings/native/NotificationSettingChannelOverrides.native.tsx'); exports.default = value; } function NotificationSettingChannelOverrides({guildId, navigation}) { // fn#124537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:429, offset: 0x025bc61a, size: 704 bytes, params: 2, frame: 31 var r5; var EmptyState; var value; const styles = useStyles(); const categories = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildCategoryStore], function() { return GuildCategoryStore.getCategories(guildId); }); const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets; const binding = env0_4; const [property, property2] = env0_3(binding.useState(''), 2); const {channels, sections} = binding.useMemo(_fun124539, [categories, property]); binding.useEffect(_fun124542, [channels, property]); const value5 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)(); const value6 = binding.useCallback(_fun124543, [channels, navigation]); const value7 = (importDefault(7699) /* metro dependency 7699: useFastestListTableRowPlaceholderConfigNative */)(); const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; const view = ; if (channels.length === 0) { EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState; r5 = ; } else { value = importDefault(8671) /* metro dependency 8671: FastestListAndroid */; value = ((Component) => )(value); r5 = value; } return ( {view} {r5} ); } function _fun124539() { // fn#124539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:643, offset: 0x025bc8da, size: 98 bytes, params: 1, frame: 16 var environment; let value = environment.__proto__; value = importDefault(5099) /* metro dependency 5099: getFlattedChannelList */; const categoriesBinding = categories; value = value(categoriesBinding._categories, categoriesBinding, _fun124540); value = value.map(function(a0) { return a0.channel; }); return {channels: value, sections: [value.length]}; } function _fun124542() { // fn#124542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:1019, offset: 0x025bca22, size: 221 bytes, params: 1, frame: 17 var r2; var length; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const t = (require(1244) /* metro dependency 1244: indexNative */).t; var value; if (env0_3 != null) { if (env0_3 !== '') { length = channels.length; if (length > 0) { value = environment.__proto__; value = intl.formatToPlainString(t.ZGVL3g, {count: length}); r2 = value; } else { value = environment.__proto__; value = intl.string(t.f5cMAg); r2 = value; } value = environment.__proto__; (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer.announce(r2); } } } function _fun124543(a0, a1) { // fn#124543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:1256, offset: 0x025bcaff, size: 212 bytes, params: 3, frame: 25 const channelsBinding = channels; const property = channelsBinding[a1]; const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow; const object2 = {}; const TableRowIcon = (require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon; object2.icon = ; object2.start = a1 === 0; object2.end = a1 === channelsBinding.length - 1; const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */; object2.label = useChannelNameModule.computeChannelName(property, UserStore, RelationshipStore); object2.labelLineClamp = 1; object2.arrow = true; object2.onPress = onPress_124544; return ; } function _fun124540({channel}) { // fn#124540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:680, offset: 0x025bc93c, size: 230 bytes, params: 2, frame: 20 var r1; var r0; var value7; var value8; var binding; let value = environment.__proto__.__proto__; const isGuildReadableType2 = isGuildReadableType(channel.type); if (isGuildReadableType2) { r0 = isGuildReadableType2; } else { r1 = channel.type === ChannelTypes.GUILD_CATEGORY && categories[channel.id] != null; r1 = r1 && categories[channel.id].length > 0; r0 = r1; } if (r0) { value7 = environment.__proto__; if (env1_3 === '') { return r0; } if (env1_3 == null) { return r0; } value8 = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel, UserStore, RelationshipStore).toLowerCase(); value = importDefault(6590) /* metro dependency 6590 */; binding = env1_3; return value(binding.toLowerCase(), value8); } return false; } function onPress_124544() { // fn#124544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16337:1491, offset: 0x025bcbd3, size: 53 bytes, params: 1, frame: 14 const navigationBinding = navigation; const push = navigationBinding.push; const CHANNEL_OVERRIDE = NotificationSettingsSections.CHANNEL_OVERRIDE; Reflect.apply(push, navigationBinding, [CHANNEL_OVERRIDE, {channelId: env0_0.id}]); }