Files
2026-07-28 01:06:53 +03:00

65 lines
4.0 KiB
TypeScript

/* Metro module 8055; source: modules/interactions/InteractionActionCreators.tsx; dependencies: [5, 661, 694, 507, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun63897(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8233:6, offset: 0x01b9504c, size: 180 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/interactions/InteractionActionCreators.tsx');
exports.queueInteractionComponentState = queueInteractionComponentState;
exports.addQueued = addQueued;
exports.setFailed = setFailed;
exports.fetchMessageInteractionData = function() {
return _fetchMessageInteractionData.apply(this, arguments);
};
function _fetchMessageInteractionData() { // fn#63898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8233:126, offset: 0x01b95100, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun63900).apply(this, arguments);
function* _fun63900(a0, a1) { // fn#63900, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8233:205, offset: 0x01b95139, size: 181 bytes, params: 3, frame: 19
var body;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[3]).HTTP;
const get = HTTP.get;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = env2_4.MESSAGE_INTERACTION_DATA(a0, a1);
yield Reflect.apply(get, HTTP, [object]);
const value3 = undefined;
if (false) {
return value3;
}
if (value3.ok) {
body = value3.body;
value = env2_1(env2_2[2]);
value.dispatch({type: 'LOAD_MESSAGE_INTERACTION_DATA_SUCCESS', channelId: a0, messageId: a1,
interactionData: body});
return body;
}
return null;
}
}
function queueInteractionComponentState(a0, a1, a2, a3) { // fn#63901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8233:617, offset: 0x01b951ee, size: 79 bytes, params: 5, frame: 13
(Dispatcher).dispatch({type: 'QUEUE_INTERACTION_COMPONENT_STATE',
messageId: a0, nonce: a1, state: a2, componentId: a3});
}
function addQueued(a0, {data, messageId, preflight, onCreate, onSuccess, onFailure}) { // fn#63902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8233:782, offset: 0x01b9523d, size: 120 bytes, params: 3, frame: 19
Dispatcher.dispatch({type: 'INTERACTION_QUEUE', data: data, nonce: a0, messageId: messageId, preflight: preflight,
onCreate: onCreate, onSuccess: onSuccess, onFailure: onFailure});
}
function setFailed(a0, a1, a2, a3) { // fn#63903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8233:1004, offset: 0x01b952b5, size: 78 bytes, params: 5, frame: 13
(Dispatcher).dispatch({type: 'INTERACTION_FAILURE', nonce: a0,
errorMessage: a2, errorCode: a1, status: a3});
}
}
global.__d(_fun63897, 8055, [5, 661, 694, 507, 2]) /* metro module 8055, dependencies: [5, 661, 694, 507, 2] */;