// Module ID: 11121 // Function ID: 11122 // Name: UploadActionCreators // Dependencies: [5201, 7261, 585, 2] // Module 11121 (UploadActionCreators) import DispatcherDefault from "Dispatcher" /* 585 */; import DraftStore2 from "DraftStore" /* 5201 */; import UploadStore from "UploadStore" /* 7261 */; import size from "module_2" /* 2 */; const DraftStore = DraftStore2; const DraftType = DraftStore2.DraftType; let obj = { restoreFailedUpload(messageId, file) { const obj = DispatcherDefault; const obj2 = { type: "UPLOAD_RESTORE_FAILED_UPLOAD", messageId, file }; obj.dispatch(obj2); }, cancel(channelId, file) { const obj = DispatcherDefault; const obj2 = { type: "UPLOAD_CANCEL_REQUEST", channelId, file }; obj.dispatch(obj2); const messageForFile = UploadStore.getMessageForFile(file.id); if (null != messageForFile) { const tmp6 = DraftType; if ("" === DraftStore.getDraft(messageForFile.channel_id, DraftType.ChannelMessage)) { const obj3 = { type: "DRAFT_SAVE", channelId: null, draft: null, draftType: tmp6.ChannelMessage }; ({ channel_id: obj4.channelId, content: obj4.draft } = messageForFile); const tmpResult = DispatcherDefault; tmpResult.dispatch(obj3); } } }, cancelUploadItem(found, itemId) { const obj = DispatcherDefault; const obj2 = { type: "UPLOAD_ITEM_CANCEL_REQUEST", file: found, itemId }; obj.dispatch(obj2); } }; const result = size.fileFinishedImporting("actions/native/UploadActionCreators.tsx"); export default obj;