65 lines
4.7 KiB
TypeScript
65 lines
4.7 KiB
TypeScript
/* Metro module 7879; source: actions/UploadAttachmentActionCreators.tsx; dependencies: [694, 2] */
|
|
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun63170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:6, offset: 0x01b73431, size: 186 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {popFirstFile: popFirstFile, addFiles: addFiles, addFile: addFile, remove: remove_63174,
|
|
removeFiles: removeFiles, clearAll: clearAll_63176, update: update_63177, setUploads: setUploads_63178,
|
|
setFile: setFile};
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/UploadAttachmentActionCreators.tsx');
|
|
exports.default = object;
|
|
function popFirstFile(a0) { // fn#63171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:99, offset: 0x01b734eb, size: 55 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_POP_FILE',
|
|
channelId: a0});
|
|
}
|
|
|
|
function addFiles({files, channelId, draftType}) { // fn#63172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:182, offset: 0x01b73522, size: 82 bytes, params: 2, frame: 16
|
|
Dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_ADD_FILES', channelId: channelId, files: files, draftType: draftType});
|
|
}
|
|
|
|
function addFile({file, channelId, draftType, allowOptimization}) { // fn#63173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:314, offset: 0x01b73574, size: 101 bytes, params: 2, frame: 17
|
|
(Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_ADD_FILES',
|
|
channelId: channelId, files: [file], draftType: draftType, allowOptimization: allowOptimization});
|
|
}
|
|
|
|
function remove_63174(a0, a1, a2) { // fn#63174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:486, offset: 0x01b735d9, size: 70 bytes, params: 4, frame: 13
|
|
(Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_REMOVE_FILE',
|
|
channelId: a0, id: a1, draftType: a2});
|
|
}
|
|
|
|
function removeFiles(a0, a1, a2) { // fn#63175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:587, offset: 0x01b7361f, size: 71 bytes, params: 4, frame: 13
|
|
(Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_REMOVE_FILES',
|
|
channelId: a0, attachmentIds: a1, draftType: a2});
|
|
}
|
|
|
|
function clearAll_63176(a0, a1) { // fn#63176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:705, offset: 0x01b73666, size: 63 bytes, params: 3, frame: 13
|
|
(Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_CLEAR_ALL_FILES',
|
|
channelId: a0, draftType: a1});
|
|
}
|
|
|
|
function update_63177(a0, a1, a2, {description, filename, spoiler, thumbnail}) { // fn#63177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:805, offset: 0x01b736a5, size: 115 bytes, params: 5, frame: 17
|
|
Dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_UPDATE_FILE', channelId: a0, id: a1, filename: filename,
|
|
description: description, thumbnail: thumbnail, spoiler: spoiler, draftType: a2});
|
|
}
|
|
|
|
function setUploads_63178({uploads, channelId, draftType, resetState}) { // fn#63178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:1002, offset: 0x01b73718, size: 111 bytes, params: 2, frame: 17
|
|
const dispatch = Dispatcher.dispatch;
|
|
const object = {type: 'UPLOAD_ATTACHMENT_SET_UPLOADS', channelId: channelId};
|
|
object.uploads = resetState ? uploads.map(function(a0) {
|
|
return a0.resetState();
|
|
}) : uploads;
|
|
object.draftType = draftType;
|
|
Reflect.apply(dispatch, Dispatcher, [object]);
|
|
}
|
|
|
|
function setFile({file, channelId, id, draftType, allowOptimization}) { // fn#63180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:1184, offset: 0x01b73796, size: 102 bytes, params: 2, frame: 18
|
|
Dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_SET_FILE', channelId: channelId, id: id, file: file,
|
|
draftType: draftType, allowOptimization: allowOptimization});
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun63170, 7879, [694, 2]) /* metro module 7879, dependencies: [694, 2] */;
|