/* Metro module 10294; source: modules/channel/native/ChannelPickerActionSheet.tsx; dependencies: [31, 3793, 1878, 33, 1585, 6806, 4080, 6758, 7987, 6242, 10295, 6805, 6277, 7988, 6647, 4805, 2] */ function _fun79837(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:6, offset: 0x01e6442f, size: 179 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 relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const value = require(33) /* metro dependency 33 */; const env0_5 = value.jsx; const env0_6 = value.jsxs; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/ChannelPickerActionSheet.tsx'); exports.default = ChannelPickerActionSheet; } function ChannelPickerActionSheet(a0) { // fn#79838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:247, offset: 0x01e644e2, size: 563 bytes, params: 2, frame: 27 var r4; var r11; const env0_0 = a0; const value2 = undefined; const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom; const header = a0.header; const env0_1 = a0.guild; const channels = a0.channels; const env0_3 = a0.onSelect; const selectedChannel = a0.selectedChannel; if (header != null) { const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader; r4 = )((require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton) : value2} />; } else { r4 = value2; } if (a0.noChannelOptionLabel != null) { const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow; r11 = )((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon)} />; } else { r11 = value2; } const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet; const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView; const object = {paddingBottom: bottom}; const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup; return ( {[r11, channels.map(_fun79842)]} ); } function ChannelPickerActionSheetOnPress() { // fn#79839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:474, owner: ChannelPickerActionSheet.onPress, offset: 0x01e64715, size: 48 bytes, params: 1, frame: 11 const value = environment.__proto__; (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(); onClose(); } function ChannelPickerActionSheetOnChange(a0) { // fn#79840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:989, owner: ChannelPickerActionSheet.onChange, offset: 0x01e64745, size: 169 bytes, params: 2, frame: 15 var environment; var value3; var value4; const env0_0 = a0; if (a0 === '') { if (env0_0.noChannelOptionLabel != null) { value4 = environment.__proto__; (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(); env0_0.onSelect(null); return undefined; } } const value2 = channels.find(_fun79841); if (value2 != null) { value3 = environment.__proto__; (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(); onSelect(value2); } } function _fun79842(a0) { // fn#79842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10480:1190, offset: 0x01e647ee, size: 186 bytes, params: 2, frame: 21 const value = environment.__proto__; const channelIconWithGuild = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconWithGuild(a0, guild); const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow; const tableRadioRowProps = {value: a0.id}; const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */; tableRadioRowProps.label = useChannelNameModule.computeChannelName(a0, UserStore, RelationshipStore); const value4 = null; tableRadioRowProps.icon = value4 != channelIconWithGuild ? ((TableRowIcon) => )((require(6242) /* metro dependency 6242: TableRowIconNative */).TableRowIcon) : value4; return ; }