931 lines
40 KiB
TypeScript
931 lines
40 KiB
TypeScript
/* Metro module 8907; source: modules/video_backgrounds/VideoBackgroundActionCreators.tsx; dependencies: [5, 4259, 1878, 661, 507, 694, 8908, 8909, 8906, 1362, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import MediaEngineStore from '../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun69485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:6, offset: 0x01c74d16, size: 306 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const closure = function() {
|
|
return _saveLastUsedBackgroundOption.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundActionCreators.tsx');
|
|
exports.fetchVideoFilterAssets = function() {
|
|
return _fetchVideoFilterAssets.apply(this, arguments);
|
|
};
|
|
exports.uploadVideoFilterAsset = function() {
|
|
return _uploadVideoFilterAsset.apply(this, arguments);
|
|
};
|
|
exports.deleteVideoFilterAsset = function() {
|
|
return _deleteVideoFilterAsset.apply(this, arguments);
|
|
};
|
|
exports.saveLastUsedBackgroundOption = closure;
|
|
exports.applyMediaFilterSettings = applyMediaFilterSettings;
|
|
exports.startApplyMediaFilterSettings = startApplyMediaFilterSettings;
|
|
exports.errorApplyingMediaFilterSettings = errorApplyingMediaFilterSettings;
|
|
function _fetchVideoFilterAssets() { // fn#69486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:146, offset: 0x01c74e48, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun69488).apply(this, arguments);
|
|
function* _fun69488() { // fn#69488, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:215, offset: 0x01c74e85, size: 198 bytes, params: 1, frame: 15
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var VIDEO_FILTER_ASSETS;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var binding3;
|
|
var value7;
|
|
var dispatch;
|
|
var body;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
VIDEO_FILTER_ASSETS = binding.VIDEO_FILTER_ASSETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.url = VIDEO_FILTER_ASSETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
if (!value6) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[5];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
dispatch = value7.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.type = 'VIDEO_FILTER_ASSETS_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value5.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.assets = body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value7, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[5]);
|
|
value.dispatch({type: 'VIDEO_FILTER_ASSETS_FETCH_FAILURE', error: error});
|
|
throw error;
|
|
}
|
|
}
|
|
return value5;
|
|
}
|
|
|
|
}
|
|
|
|
function _uploadVideoFilterAsset() { // fn#69489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:505, offset: 0x01c74f4b, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun69491).apply(this, arguments);
|
|
function* _fun69491(a0, a1, a2) { // fn#69491, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:574, offset: 0x01c74f88, size: 257 bytes, params: 4, frame: 18
|
|
var r7;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var HTTP;
|
|
var post;
|
|
var object;
|
|
var VIDEO_FILTER_ASSETS;
|
|
var object2;
|
|
var value5;
|
|
var toISOString;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var dispatch;
|
|
var body;
|
|
var error;
|
|
var prototype;
|
|
var value11;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
const value3 = undefined;
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
HTTP = value4.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
VIDEO_FILTER_ASSETS = binding.VIDEO_FILTER_ASSETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.url = VIDEO_FILTER_ASSETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.type = a1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.asset = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
value5 = a2 == null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
if (value5) {
|
|
try {
|
|
object2.last_used = value3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding3[5];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.type = 'VIDEO_FILTER_ASSET_UPLOAD_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.videoFilterAsset = body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
} else {
|
|
try {
|
|
toISOString = a2.toISOString;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(toISOString, a2, []);
|
|
r7 = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.last_used = r7;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding3[5];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.type = 'VIDEO_FILTER_ASSET_UPLOAD_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.videoFilterAsset = body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
prototype = value.prototype;
|
|
value11 = Object.create(prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
value = value instanceof Object ? value : value11;
|
|
throw value;
|
|
}
|
|
}
|
|
return body;
|
|
}
|
|
|
|
}
|
|
|
|
function _deleteVideoFilterAsset() { // fn#69492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:893, offset: 0x01c75089, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun69494).apply(this, arguments);
|
|
function* _fun69494(a0) { // fn#69494, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:962, offset: 0x01c750c6, size: 253 bytes, params: 2, frame: 19
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var HTTP = binding(env2_2[4]).HTTP;
|
|
var del = HTTP.del;
|
|
binding = env2_6;
|
|
var VIDEO_FILTER_ASSET = binding.VIDEO_FILTER_ASSET;
|
|
yield Reflect.apply(del, HTTP, [{url: Reflect.apply(VIDEO_FILTER_ASSET, binding, [a0.id]),
|
|
rejectWithError: false}]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_0;
|
|
var binding2 = env2_2;
|
|
var value5 = binding(binding2[7]);
|
|
var getLastUsedVideoBackgroundOption = value5.getLastUsedVideoBackgroundOption;
|
|
var binding3 = env2_5;
|
|
var getCurrentUser = binding3.getCurrentUser;
|
|
var value6 = Reflect.apply(getLastUsedVideoBackgroundOption, value5, [Reflect.apply(getCurrentUser, binding3,
|
|
[])]);
|
|
if (binding(binding2[8]).isCustomBackgroundOption(value6) && value6.id === a0.id) {
|
|
env2_10(null);
|
|
}
|
|
env2_1(env2_2[5]).dispatch({type: 'VIDEO_FILTER_ASSET_DELETE_SUCCESS', videoFilterAsset: a0});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _saveLastUsedBackgroundOption() { // fn#69496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:1408, offset: 0x01c751c3, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun69498).apply(this, arguments);
|
|
function* _fun69498(a0) { // fn#69498, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:1489, offset: 0x01c75200, size: 336 bytes, params: 2, frame: 20
|
|
var environment;
|
|
var HTTP;
|
|
var post;
|
|
var value6;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var binding2 = env2_2;
|
|
var PreloadedUserSettingsActionCreators = binding(binding2[9]).PreloadedUserSettingsActionCreators;
|
|
var updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
|
|
var UserSettingsDelay = binding(binding2[9]).UserSettingsDelay;
|
|
var FREQUENT_USER_ACTION = UserSettingsDelay.FREQUENT_USER_ACTION;
|
|
yield Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['voiceAndVideo', _fun69499,
|
|
FREQUENT_USER_ACTION]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
var value5 = env2_0(env2_2[8]);
|
|
if (value5.isCustomBackgroundOption(a0)) {
|
|
binding = env2_0;
|
|
HTTP = binding(env2_2[4]).HTTP;
|
|
post = HTTP.post;
|
|
binding = env2_6;
|
|
yield Reflect.apply(post, HTTP, [{url: binding.VIDEO_FILTER_ASSET_LAST_USED(a0.id),
|
|
rejectWithError: false}]);
|
|
value6 = undefined;
|
|
if (false) {
|
|
return value6;
|
|
}
|
|
binding = env2_1;
|
|
binding(env2_2[5]).dispatch({type: 'VIDEO_SAVE_LAST_USED_BACKGROUND_OPTION',
|
|
backgroundOption: value6.body});
|
|
} else {
|
|
env2_1(env2_2[5]).dispatch({type: 'VIDEO_SAVE_LAST_USED_BACKGROUND_OPTION', backgroundOption: a0});
|
|
}
|
|
}
|
|
function _fun69499(a0) { // fn#69499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:1584, offset: 0x01c75350, size: 54 bytes, params: 2, frame: 12
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_0(env3_2[8]);
|
|
value = value.getVideoBackgroundProtoFromOption(env0_0);
|
|
a0.videoBackgroundFilterDesktop = value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function applyMediaFilterSettings(a0) { // fn#69503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:2570, offset: 0x01c75386, size: 74 bytes, params: 2, frame: 12
|
|
const mediaEngineStoreBinding = MediaEngineStore;
|
|
if (mediaEngineStoreBinding.isSupported()) {
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_APPLY_MEDIA_FILTER_SETTINGS',
|
|
|
|
settings: a0});
|
|
}
|
|
}
|
|
|
|
function startApplyMediaFilterSettings() { // fn#69504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:2736, offset: 0x01c753d0, size: 68 bytes, params: 1, frame: 12
|
|
const mediaEngineStoreBinding = MediaEngineStore;
|
|
if (mediaEngineStoreBinding.isSupported()) {
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_APPLY_MEDIA_FILTER_SETTINGS_START'});
|
|
}
|
|
}
|
|
|
|
function errorApplyingMediaFilterSettings() { // fn#69505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9092:2904, offset: 0x01c75414, size: 49 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'MEDIA_ENGINE_APPLY_MEDIA_FILTER_SETTINGS_ERROR'});
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69485, 8907, [5, 4259, 1878, 661, 507, 694, 8908, 8909, 8906, 1362,
|
|
2]) /* metro module 8907, dependencies: [5, 4259, 1878, 661, 507, 694, 8908, 8909, 8906, 1362, 2] */;
|