// Module ID: 10573 // Function ID: 10574 // Name: ChannelPickerActionSheet // Dependencies: [19, 4033, 1922, 21, 1629, 7214, 4346, 6987, 8139, 6327, 10574, 7213, 6990, 8140, 6870, 4989, 2] // Exports: default // Module 10573 (ChannelPickerActionSheet) import noopAll from "noop" /* 19 */; import closure_3 from "markAllUserIdListsStale" /* 4033 */; import closure_4 from "mergeGuildAvatar" /* 1922 */; import jsxProd from "jsxProd" /* 21 */; const require = arg1; noopAll; ({ jsx: c5, jsxs: closure_6 } = jsxProd); const result = require("set").fileFinishedImporting("modules/channel/native/ChannelPickerActionSheet.tsx"); export default function ChannelPickerActionSheet(noChannelOptionLabel) { const _require = noChannelOptionLabel; ({ header, guild: importDefault, channels } = noChannelOptionLabel); ({ onSelect: closure_3, selectedChannel } = noChannelOptionLabel); let tmp3; if (null != header) { const onClose = header.onClose; let tmp4; if (null != onClose) { let obj = { onPress: null }; obj[0] = function onPress() { closure_1_1(channels[6]).hideActionSheet(); onClose(); }; tmp4 = callback(_require(tmp2[5]).ActionSheetCloseButton, obj); } obj = { title: null, trailing: null }; obj[0] = header.title; obj[1] = tmp4; tmp3 = callback(_require(tmp2[7]).BottomSheetTitleHeader, obj); } let tmp9; if (null != noChannelOptionLabel.noChannelOptionLabel) { obj = { value: "", label: null, icon: null }; obj[1] = noChannelOptionLabel.noChannelOptionLabel; obj1 = { source: null }; obj1[0] = importDefault(tmp2[10]); obj[2] = callback(_require(tmp2[9]).TableRowIcon, obj1); tmp9 = callback(_require(tmp2[8]).TableRadioRow, obj); } let obj2 = { scrollable: true, header: tmp3, children: null }; const obj3 = { contentContainerStyle: { paddingBottom: importDefault(channels[4])().bottom }, children: null }; let str; if (selectedChannel != null) { str = selectedChannel.id; } if (str == null) { str = ""; } const obj4 = { defaultValue: str, accessibilityLabel: null, onChange: null, hasIcons: true, children: null }; let title; if (header != null) { title = header.title; } obj4[1] = title; obj4[2] = function onChange(arg0) { noChannelOptionLabel = arg0; if ("" === arg0) { if (null != noChannelOptionLabel.noChannelOptionLabel) { closure_1_1(channels[6]).hideActionSheet(); obj.onSelect(null); } obj = noChannelOptionLabel; } const found = channels.find((id) => id.id === closure_0); if (null != found) { closure_1_1(channels[6]).hideActionSheet(); callback(found); const obj2 = closure_1_1(channels[6]); } }; const items = [ tmp9, channels.map((id) => { let obj = noChannelOptionLabel(channels[14]); const channelIconWithGuild = obj.getChannelIconWithGuild(id, closure_1); obj = { value: id.id, label: noChannelOptionLabel(channels[15]).computeChannelName(id, onClose, closure_1_3), icon: null }; let tmp4Result = null; if (null != channelIconWithGuild) { obj = { source: null }; obj[0] = channelIconWithGuild; tmp4Result = tmp4(noChannelOptionLabel(channels[9]).TableRowIcon, obj); } obj[2] = tmp4Result; return closure_1_5(noChannelOptionLabel(channels[8]).TableRadioRow, obj, id.id); }) ]; obj4[4] = items; obj3[1] = closure_6(_require(channels[13]).TableRadioGroup, obj4); obj2[2] = callback(_require(channels[12]).BottomSheetScrollView, obj3); return callback(_require(channels[11]).ActionSheet, obj2); };