This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,72 +1,76 @@
/* Metro module 8909; source: modules/video_backgrounds/LastUsedVideoBackgroundOption.tsx; dependencies: [31, 1348, 1878, 8906, 3802, 566, 2] */
import UserSettingsProtoStore from '../user_settings/UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun69512(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:6, offset: 0x01c756fd, size: 179 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/LastUsedVideoBackgroundOption.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/LastUsedVideoBackgroundOption.tsx');
exports.getLastUsedVideoBackgroundOption = getLastUsedVideoBackgroundOption;
exports.useLastUsedVideoBackgroundOption = useLastUsedVideoBackgroundOption;
}
function getOptionFromSettingsFiltered(a0, a1) { // fn#69513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:126, offset: 0x01c757b0, size: 159 bytes, params: 3, frame: 19
var r1;
var r0;
var value;
const videoBackgroundOptionFromProto = (require(8906) /* metro dependency 8906: VideoBackgroundUtils */).getVideoBackgroundOptionFromProto(a0,
a1.id);
const videoBackgroundUtilsModule = require(8906) /* metro dependency 8906: VideoBackgroundUtils */;
if (videoBackgroundUtilsModule.isCustomBackgroundOption(videoBackgroundOptionFromProto)) {
if ((importDefault(3802) /* metro dependency 3802: PremiumUtils */).canUseCustomBackgrounds(a1)) {
function getOptionFromSettingsFiltered(a0, a1) { // fn#69513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:126, offset: 0x01c757b0, size: 159 bytes, params: 3, frame: 19
var r1;
var r0;
var value;
const videoBackgroundOptionFromProto = (require(8906) /* metro dependency 8906: VideoBackgroundUtils */).getVideoBackgroundOptionFromProto(a0,
a1.id);
const videoBackgroundUtilsModule = require(8906) /* metro dependency 8906: VideoBackgroundUtils */;
if (videoBackgroundUtilsModule.isCustomBackgroundOption(videoBackgroundOptionFromProto)) {
if ((importDefault(3802) /* metro dependency 3802: PremiumUtils */).canUseCustomBackgrounds(a1)) {
if (typeof videoBackgroundOptionFromProto !== 'number') {
r1 = videoBackgroundOptionFromProto;
} else {
value = videoBackgroundUtilsModule;
value = value.isDefaultBackgroundOption(videoBackgroundOptionFromProto);
r1 = value ? videoBackgroundOptionFromProto : null;
}
r0 = r1;
} else {
r0 = null;
}
} else {
if (typeof videoBackgroundOptionFromProto !== 'number') {
r1 = videoBackgroundOptionFromProto;
} else {
value = videoBackgroundUtilsModule;
value = require(8906) /* metro dependency 8906: VideoBackgroundUtils */;
value = value.isDefaultBackgroundOption(videoBackgroundOptionFromProto);
r1 = value ? videoBackgroundOptionFromProto : null;
}
r0 = r1;
} else {
r0 = null;
}
} else {
if (typeof videoBackgroundOptionFromProto !== 'number') {
r1 = videoBackgroundOptionFromProto;
} else {
value = require(8906) /* metro dependency 8906: VideoBackgroundUtils */;
value = value.isDefaultBackgroundOption(videoBackgroundOptionFromProto);
r1 = value ? videoBackgroundOptionFromProto : null;
}
r0 = r1;
return r0;
}
return r0;
}
function getLastUsedVideoBackgroundOption(a0) { // fn#69514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:503, offset: 0x01c7584f, size: 53 bytes, params: 2, frame: 14
return getOptionFromSettingsFiltered(UserSettingsProtoStore.settings.voiceAndVideo?.videoBackgroundFilterDesktop,
a0);
}
function getLastUsedVideoBackgroundOption(a0) { // fn#69514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:503, offset: 0x01c7584f, size: 53 bytes, params: 2, frame: 14
return getOptionFromSettingsFiltered(UserSettingsProtoStore.settings.voiceAndVideo?.videoBackgroundFilterDesktop,
a0);
}
function useLastUsedVideoBackgroundOption() { // fn#69515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:703, offset: 0x01c75884, size: 161 bytes, params: 1, frame: 19
const value2 = undefined;
const settings = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
function() {
return UserSettingsProtoStore.settings;
});
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const voiceAndVideo = settings.voiceAndVideo;
return env0_3.useMemo(_fun69518, [voiceAndVideo == null ? value2 : voiceAndVideo.videoBackgroundFilterDesktop,
currentUser]);
}
function useLastUsedVideoBackgroundOption() { // fn#69515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:703, offset: 0x01c75884, size: 161 bytes, params: 1, frame: 19
const value2 = undefined;
const settings = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
function() {
return UserSettingsProtoStore.settings;
});
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const voiceAndVideo = settings.voiceAndVideo;
return ReactModule.useMemo(_fun69518, [voiceAndVideo == null ? value2 : voiceAndVideo.videoBackgroundFilterDesktop,
currentUser]);
function _fun69518() { // fn#69518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:947, offset: 0x01c75934, size: 41 bytes, params: 1, frame: 14
const currentUserBinding = currentUser;
const value2 = null;
return value2 == currentUserBinding ? value2 : getOptionFromSettingsFiltered(videoBackgroundFilterDesktop,
currentUser);
}
}
function _fun69518() { // fn#69518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9094:947, offset: 0x01c75934, size: 41 bytes, params: 1, frame: 14
const currentUserBinding = currentUser;
const value2 = null;
return value2 == currentUserBinding ? value2 : getOptionFromSettingsFiltered(videoBackgroundFilterDesktop,
currentUser);
}
global.__d(_fun69512, 8909, [31, 1348, 1878, 8906, 3802, 566,
2]) /* metro module 8909, dependencies: [31, 1348, 1878, 8906, 3802, 566, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,42 +1,43 @@
/* Metro module 7617; source: modules/video_backgrounds/VideoBackgroundConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun61014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7795:6, offset: 0x01718205, size: 442 bytes, params: 8, frame: 19
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object3 = {BACKGROUND: 0};
object3[0] = 'BACKGROUND';
const object4 = {OPTION_1: 0};
object4[0] = 'OPTION_1';
object4.OPTION_2 = 1;
object4[1] = 'OPTION_2';
object4.OPTION_3 = 2;
object4[2] = 'OPTION_3';
object4.OPTION_4 = 3;
object4[3] = 'OPTION_4';
object4.OPTION_7 = 7;
object4[7] = 'OPTION_7';
object4.OPTION_8 = 8;
object4[8] = 'OPTION_8';
object4.OPTION_9 = 9;
object4[9] = 'OPTION_9';
object4.OPTION_10 = 10;
object4[10] = 'OPTION_10';
let OPTION_7 = object4.OPTION_7;
object = {BACKGROUND: 0};
object[0] = 'BACKGROUND';
const object2 = {OPTION_1: 0};
object2[0] = 'OPTION_1';
object2.OPTION_2 = 1;
object2[1] = 'OPTION_2';
object2.OPTION_3 = 2;
object2[2] = 'OPTION_3';
object2.OPTION_4 = 3;
object2[3] = 'OPTION_4';
object2.OPTION_7 = 7;
object2[7] = 'OPTION_7';
object2.OPTION_8 = 8;
object2[8] = 'OPTION_8';
object2.OPTION_9 = 9;
object2[9] = 'OPTION_9';
object2.OPTION_10 = 10;
object2[10] = 'OPTION_10';
let OPTION_7 = object2.OPTION_7;
const items2 = [OPTION_7];
let OPTION_8 = object4.OPTION_8;
let OPTION_8 = object2.OPTION_8;
items2[1] = OPTION_8;
let OPTION_9 = object4.OPTION_9;
let OPTION_9 = object2.OPTION_9;
items2[2] = OPTION_9;
let OPTION_10 = object4.OPTION_10;
let OPTION_10 = object2.OPTION_10;
items2[3] = OPTION_10;
OPTION_7 = object4.OPTION_7;
OPTION_8 = object4.OPTION_8;
OPTION_9 = object4.OPTION_9;
OPTION_10 = object4.OPTION_10;
const OPTION_1 = object4.OPTION_1;
const OPTION_2 = object4.OPTION_2;
const OPTION_3 = object4.OPTION_3;
const OPTION_4 = object4.OPTION_4;
OPTION_7 = object2.OPTION_7;
OPTION_8 = object2.OPTION_8;
OPTION_9 = object2.OPTION_9;
OPTION_10 = object2.OPTION_10;
const OPTION_1 = object2.OPTION_1;
const OPTION_2 = object2.OPTION_2;
const OPTION_3 = object2.OPTION_3;
const OPTION_4 = object2.OPTION_4;
const value = [OPTION_7, OPTION_8, OPTION_9, OPTION_10, OPTION_1, OPTION_2, OPTION_3, OPTION_4].reduce(function(a0,
a1, a2) {
var r2;
@@ -45,9 +46,9 @@ function _fun61014(global, require, importDefault, importAll, module, exports, d
object[a1] = a2;
return object;
}, {});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundConstants.tsx');
exports.VideoFilterType = object3;
exports.DefaultVideoBackground = object4;
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundConstants.tsx');
exports.VideoFilterType = object;
exports.DefaultVideoBackground = object2;
exports.ANIMATED_DEFAULT_VIDEO_BACKGROUNDS = items2;
exports.DEFAULT_VIDEO_BACKGROUND_SORT = value;
exports.BLUR_BACKGROUND_OPTION = 'blur';
@@ -55,3 +56,4 @@ function _fun61014(global, require, importDefault, importAll, module, exports, d
exports.MAX_BACKGROUND_IMAGE_UPLOAD_FILESIZE_BYTES = 10485760;
}
global.__d(_fun61014, 7617, [2]) /* metro module 7617, dependencies: [2] */;
@@ -1,19 +1,22 @@
/* Metro module 8905; source: modules/video_backgrounds/VideoBackgroundStore.tsx; dependencies: [6, 7, 15, 17, 18, 1348, 4259, 1934, 1878, 8906, 4406, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import UserSettingsProtoStore from '../user_settings/UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import MediaEngineStore from '../../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun69452(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:6, offset: 0x01c7415a, size: 469 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let env0_14 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun69458(Store);
value.displayName = 'VideoBackgroundStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
@@ -42,111 +45,143 @@ function _fun69452(global, require, importDefault, importAll, module, exports, d
env0_15 = false;
env0_16 = false;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_69453() { // fn#69453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:188, offset: 0x01c7432f, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_69453() { // fn#69453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:188, offset: 0x01c7432f, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_69453_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_69453_isNativeReflectConstruct = function() {
return !!result;
})();
}
function hasVideoBackgroundLive(a0) { // fn#69456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:417, offset: 0x01c74391, size: 145 bytes, params: 2, frame: 18
var r2;
var moduleValue;
var getVideoBackgroundOptionFromProto;
var voiceAndVideo;
let value = a0;
const currentUser = UserStore.getCurrentUser();
if (currentUser == null) {
return false;
function hasVideoBackgroundLive(a0) { // fn#69456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:417, offset: 0x01c74391, size: 145 bytes, params: 2, frame: 18
var r2;
var moduleValue;
var getVideoBackgroundOptionFromProto;
var voiceAndVideo;
let value = a0;
const currentUser = UserStore.getCurrentUser();
if (currentUser == null) {
return false;
}
if (value != null) {
r2 = value;
} else {
value = undefined;
moduleValue = require(8906) /* metro dependency 8906: VideoBackgroundUtils */;
getVideoBackgroundOptionFromProto = moduleValue.getVideoBackgroundOptionFromProto;
voiceAndVideo = UserSettingsProtoStore.settings.voiceAndVideo;
value = Reflect.apply(getVideoBackgroundOptionFromProto, moduleValue,
[voiceAndVideo == null ? value : voiceAndVideo.videoBackgroundFilterDesktop, currentUser.id]);
r2 = value;
}
const selectedChannelStoreBinding = SelectedChannelStore;
const getVoiceChannelId = selectedChannelStoreBinding.getVoiceChannelId;
return Reflect.apply(getVoiceChannelId, selectedChannelStoreBinding,
[]) != null && MediaEngineStore.isVideoEnabled() && r2 != null;
}
if (value != null) {
r2 = value;
} else {
value = undefined;
moduleValue = require(8906) /* metro dependency 8906: VideoBackgroundUtils */;
getVideoBackgroundOptionFromProto = moduleValue.getVideoBackgroundOptionFromProto;
voiceAndVideo = UserSettingsProtoStore.settings.voiceAndVideo;
value = Reflect.apply(getVideoBackgroundOptionFromProto, moduleValue,
[voiceAndVideo == null ? value : voiceAndVideo.videoBackgroundFilterDesktop, currentUser.id]);
r2 = value;
function handleSyncedStoresUpdate() { // fn#69457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:700, offset: 0x01c74422, size: 78 bytes, params: 1, frame: 11
const binding = voiceChannelId;
const selectedChannelStoreBinding = SelectedChannelStore;
const getVoiceChannelId = selectedChannelStoreBinding.getVoiceChannelId;
if (binding === Reflect.apply(getVoiceChannelId, selectedChannelStoreBinding, [])) {
}
if (hasVideoBackgroundLive()) {
}
voiceChannelId = SelectedChannelStore.getVoiceChannelId();
}
const getVoiceChannelId = SelectedChannelStore.getVoiceChannelId;
return Reflect.apply(getVoiceChannelId, SelectedChannelStore,
[]) != null && MediaEngineStore.isVideoEnabled() && r2 != null;
}
function handleSyncedStoresUpdate() { // fn#69457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:700, offset: 0x01c74422, size: 78 bytes, params: 1, frame: 11
const binding = env0_12;
const getVoiceChannelId = SelectedChannelStore.getVoiceChannelId;
if (binding === Reflect.apply(getVoiceChannelId, SelectedChannelStore, [])) {
function _fun69458(a0) { // fn#69458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:843, offset: 0x01c74470, size: 207 bytes, params: 2, frame: 16
const VideoBackgroundStore2 = VideoBackgroundStore;
Inherits(VideoBackgroundStore2, a0);
return CreateClass(VideoBackgroundStore2, [{key: 'initialize', value: function() {
this.waitFor(MediaEngineStore, SelectedChannelStore, UserSettingsProtoStore, UserStore);
this.syncWith([SelectedChannelStore, MediaEngineStore], handleSyncedStoresUpdate);
}}, {key: 'videoFilterAssets', get: get_69461}, {key: 'hasBeenApplied', get: get_69462},
{key: 'hasUsedBackgroundInCall', get: get_69463}, {key: 'videoBackgroundUnavailable', get: get_69464},
{key: 'videoBackgroundPreviewUnavailable', get: get_69465}]);
function VideoBackgroundStore() { // fn#69459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:855, offset: 0x010992b7, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, VideoBackgroundStore);
const value3 = env1_5(VideoBackgroundStore);
return env1_4(this, _isNativeReflectConstruct_69453() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function get_69461() { // fn#69461, offset: 0x00df0f5a, size: 9 bytes, params: 1, frame: 1
return env1_14;
}
function get_69462() { // fn#69462, offset: 0x00ef8482, size: 9 bytes, params: 1, frame: 1
return env1_11;
}
function get_69463() { // fn#69463, offset: 0x00e2f9d5, size: 9 bytes, params: 1, frame: 1
return env1_13;
}
function get_69464() { // fn#69464, offset: 0x00df0e8b, size: 9 bytes, params: 1, frame: 1
return env1_15;
}
function get_69465() { // fn#69465, offset: 0x00df0e94, size: 9 bytes, params: 1, frame: 1
return env1_16;
}
}
if (hasVideoBackgroundLive()) {
function VIDEO_FILTER_ASSETS_FETCH_SUCCESS({assets}) { // fn#69466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1649, offset: 0x01c7458a, size: 45 bytes, params: 2, frame: 12
const object = {};
assets.forEach(_fun69467);
function _fun69467(a0) { // fn#69467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1725, offset: 0x01c745b7, size: 21 bytes, params: 2, frame: 3
env0_0[a0.id] = a0;
return a0;
}
}
env0_12 = SelectedChannelStore.getVoiceChannelId();
}
function _fun69458(a0) { // fn#69458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:843, offset: 0x01c74470, size: 207 bytes, params: 2, frame: 16
const closure = VideoBackgroundStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: function() {
this.waitFor(MediaEngineStore, SelectedChannelStore, UserSettingsProtoStore, UserStore);
this.syncWith([SelectedChannelStore, MediaEngineStore], handleSyncedStoresUpdate);
}}, {key: 'videoFilterAssets', get: get_69461}, {key: 'hasBeenApplied', get: get_69462},
{key: 'hasUsedBackgroundInCall', get: get_69463}, {key: 'videoBackgroundUnavailable', get: get_69464},
{key: 'videoBackgroundPreviewUnavailable', get: get_69465}]);
}
function VIDEO_FILTER_ASSETS_FETCH_SUCCESS({assets}) { // fn#69466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1649, offset: 0x01c7458a, size: 45 bytes, params: 2, frame: 12
const object = {};
assets.forEach(_fun69467);
}
function VIDEO_FILTER_ASSET_UPLOAD_SUCCESS({videoFilterAsset}) { // fn#69468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1779, offset: 0x01c745cc, size: 43 bytes, params: 2, frame: 13
const object2 = {};
copyDataProperties(object2, env0_14, videoFilterAsset);
object2[videoFilterAsset.id] = videoFilterAsset;
}
function VIDEO_FILTER_ASSET_DELETE_SUCCESS({videoFilterAsset}) { // fn#69469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1883, offset: 0x01c745f7, size: 42 bytes, params: 2, frame: 13
const object2 = {};
copyDataProperties(object2, env0_14, undefined);
delete object2[videoFilterAsset.id];
}
function MEDIA_ENGINE_VIDEO_FILTER_ERROR({target}) { // fn#69472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:2363, offset: 0x01c746b0, size: 41 bytes, params: 2, frame: 2
if (target === 'live') {
function VIDEO_FILTER_ASSET_UPLOAD_SUCCESS({videoFilterAsset}) { // fn#69468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1779, offset: 0x01c745cc, size: 43 bytes, params: 2, frame: 13
const object = {};
copyDataProperties(object, env0_14, videoFilterAsset);
object[videoFilterAsset.id] = videoFilterAsset;
}
function VIDEO_FILTER_ASSET_DELETE_SUCCESS({videoFilterAsset}) { // fn#69469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1883, offset: 0x01c745f7, size: 42 bytes, params: 2, frame: 13
const object = {};
copyDataProperties(object, env0_14, undefined);
delete object[videoFilterAsset.id];
}
function MEDIA_ENGINE_VIDEO_FILTER_ERROR({target}) { // fn#69472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:2363, offset: 0x01c746b0, size: 41 bytes, params: 2, frame: 2
if (target === 'live') {
}
}
}
function _fun69467(a0) { // fn#69467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9090:1725, offset: 0x01c745b7, size: 21 bytes, params: 2, frame: 3
env0_0[a0.id] = a0;
return a0;
}
global.__d(_fun69452, 8905, [6, 7, 15, 17, 18, 1348, 4259, 1934, 1878, 8906, 4406, 566, 694,
2]) /* metro module 8905, dependencies: [6, 7, 15, 17, 18, 1348, 4259, 1934, 1878, 8906, 4406, 566, 694, 2] */;
@@ -1,28 +1,29 @@
/* Metro module 8906; source: modules/video_backgrounds/VideoBackgroundUtils.tsx; dependencies: [1379, 4294, 7617, 661, 1423, 4863, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import RTCConnectionStore from '../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as AppAnalyticsUtilsModule from '../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import * as VideoBackgroundConstantsModule from './VideoBackgroundConstants.tsx'; /* Metro dependency 7617 */
function _fun69474(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:6, offset: 0x01c746fe, size: 341 bytes, params: 8, frame: 24
const env0_0 = require;
const closure = isCustomBackgroundOption;
const closure2 = isDefaultBackgroundOption;
const closure3 = isAnimatedBackgroundOption;
const isCustomBackgroundOption2 = isCustomBackgroundOption;
const isDefaultBackgroundOption2 = isDefaultBackgroundOption;
const isAnimatedBackgroundOption2 = isAnimatedBackgroundOption;
const closure4 = function(a0) {
return a0 != null ? 'Video Background' : 'None';
};
const closure5 = getEffectDetailAnalyticsName;
const getEffectDetailAnalyticsName2 = getEffectDetailAnalyticsName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const videoBackgroundConstantsModule = require(7617) /* metro dependency 7617: VideoBackgroundConstants */;
const env0_5 = videoBackgroundConstantsModule.DefaultVideoBackground;
const env0_6 = videoBackgroundConstantsModule.VideoFilterType;
const env0_7 = videoBackgroundConstantsModule.ANIMATED_DEFAULT_VIDEO_BACKGROUNDS;
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundUtils.tsx');
exports.isCustomBackgroundOption = closure;
exports.isDefaultBackgroundOption = closure2;
exports.isAnimatedBackgroundOption = closure3;
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/VideoBackgroundUtils.tsx');
exports.isCustomBackgroundOption = isCustomBackgroundOption2;
exports.isDefaultBackgroundOption = isDefaultBackgroundOption2;
exports.isAnimatedBackgroundOption = isAnimatedBackgroundOption2;
exports.getEffectAnalyticsType = closure4;
exports.getEffectDetailAnalyticsName = closure5;
exports.getEffectDetailAnalyticsName = getEffectDetailAnalyticsName2;
exports.trackBackgroundOptionUpdated = trackBackgroundOptionUpdated;
exports.trackBackgroundOptionAdded = function(a0, a1, a2) {
var defaultImport = importDefault(dependencyMap[6]);
@@ -42,110 +43,114 @@ function _fun69474(global, require, importDefault, importAll, module, exports, d
};
exports.getVideoBackgroundProtoFromOption = getVideoBackgroundProtoFromOption;
exports.getVideoBackgroundOptionFromProto = getVideoBackgroundOptionFromProto;
}
function isCustomBackgroundOption(a0) { // fn#69475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:237, offset: 0x01c74853, size: 61 bytes, params: 2, frame: 4
return a0 != null && typeof a0 === 'object' && 'id' in a0 && a0.type === VideoFilterType.BACKGROUND;
}
function isCustomBackgroundOption(a0) { // fn#69475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:237, offset: 0x01c74853, size: 61 bytes, params: 2, frame: 4
return a0 != null && typeof a0 === 'object' && 'id' in a0 && a0.type === VideoFilterType.BACKGROUND;
}
function isDefaultBackgroundOption(a0) { // fn#69476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:342, offset: 0x01c74890, size: 30 bytes, params: 2, frame: 3
return typeof a0 === 'number' && a0 in DefaultVideoBackground;
}
function isDefaultBackgroundOption(a0) { // fn#69476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:342, offset: 0x01c74890, size: 30 bytes, params: 2, frame: 3
return typeof a0 === 'number' && a0 in DefaultVideoBackground;
}
function isAnimatedBackgroundOption(a0) { // fn#69477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:413, offset: 0x01c748ae, size: 133 bytes, params: 2, frame: 16
var r2;
var r0;
var isCustomBackgroundOption2;
var moduleValue;
var isAnimatedIconHash2;
var value;
if (isDefaultBackgroundOption(a0)) {
r0 = ANIMATED_DEFAULT_VIDEO_BACKGROUNDS.includes(a0);
} else {
isCustomBackgroundOption2 = isCustomBackgroundOption(a0);
if (isCustomBackgroundOption2) {
moduleValue = require(1423) /* metro dependency 1423: AvatarUtils */;
isAnimatedIconHash2 = moduleValue.isAnimatedIconHash(a0.asset);
if (isAnimatedIconHash2) {
r2 = isAnimatedIconHash2;
} else {
value = require(1423) /* metro dependency 1423: AvatarUtils */;
value = value.isVideoAssetHash(a0.asset);
r2 = value;
}
r0 = r2;
function isAnimatedBackgroundOption(a0) { // fn#69477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:413, offset: 0x01c748ae, size: 133 bytes, params: 2, frame: 16
var r2;
var r0;
var isCustomBackgroundOption2;
var moduleValue;
var isAnimatedIconHash2;
var value;
if (isDefaultBackgroundOption(a0)) {
r0 = ANIMATED_DEFAULT_VIDEO_BACKGROUNDS.includes(a0);
} else {
r0 = !!isCustomBackgroundOption2;
isCustomBackgroundOption2 = isCustomBackgroundOption(a0);
if (isCustomBackgroundOption2) {
moduleValue = require(1423) /* metro dependency 1423: AvatarUtils */;
isAnimatedIconHash2 = moduleValue.isAnimatedIconHash(a0.asset);
if (isAnimatedIconHash2) {
r2 = isAnimatedIconHash2;
} else {
value = require(1423) /* metro dependency 1423: AvatarUtils */;
value = value.isVideoAssetHash(a0.asset);
r2 = value;
}
r0 = r2;
} else {
r0 = !!isCustomBackgroundOption2;
}
}
return r0;
}
function getEffectDetailAnalyticsName(a0) { // fn#69479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:682, offset: 0x01c7494b, size: 260 bytes, params: 2, frame: 17
return a0 == null ? 'None' : isCustomBackgroundOption(a0) ? 'Custom' : a0 === 'blur' ? 'Blur' : 'Preset - ' + (DefaultVideoBackground.OPTION_1 === a0 ? 'Cybercity' : DefaultVideoBackground.OPTION_2 === a0 ? 'Discord the Movie' : DefaultVideoBackground.OPTION_3 === a0 ? 'Wumpus Vacation' : DefaultVideoBackground.OPTION_4 === a0 ? 'Vaporwave' : DefaultVideoBackground.OPTION_7 === a0 ? 'Capernite Day' : DefaultVideoBackground.OPTION_8 === a0 ? 'Capernite Night' : DefaultVideoBackground.OPTION_9 === a0 ? 'Hacker Den' : DefaultVideoBackground.OPTION_10 !== a0 ? undefined : 'Wumpice');
}
function trackBackgroundOptionUpdated(a0, a1, a2) { // fn#69480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:1556, offset: 0x01c74a4f, size: 270 bytes, params: 4, frame: 22
let rtcConnectionStoreBinding = RTCConnectionStore;
const guildId = rtcConnectionStoreBinding.getGuildId();
const channelId = rtcConnectionStoreBinding.getChannelId();
const channel = ChannelStore.getChannel(channelId);
const value5 = undefined;
const voiceStateMetadata = (AppAnalyticsUtilsModule).getVoiceStateMetadata(guildId,
channelId, true);
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const VIDEO_EFFECT_UPDATED = AnalyticEvents.VIDEO_EFFECT_UPDATED;
const object = {location: a1};
object.effect_type = getEffectAnalyticsType(a0);
object.effect_detail = getEffectDetailAnalyticsName(a0);
object.effect_state = a2;
object.channel_id = channelId;
object.channel_type = channel == null ? value5 : channel.type;
object.guild_id = guildId;
object.voice_state_count = voiceStateMetadata.voice_state_count;
object.video_stream_count = voiceStateMetadata.video_stream_count;
rtcConnectionStoreBinding = RTCConnectionStore;
object.media_session_id = rtcConnectionStoreBinding.getMediaSessionId();
object.rtc_connection_id = rtcConnectionStoreBinding.getRTCConnectionId();
object.is_animated = isAnimatedBackgroundOption(a0);
Reflect.apply(track, defaultImport, [VIDEO_EFFECT_UPDATED, object]);
return value5;
}
function getVideoBackgroundProtoFromOption(a0) { // fn#69483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:2488, offset: 0x01c74bf7, size: 135 bytes, params: 2, frame: 13
return a0 == null ? {oneofKind: undefined} : isCustomBackgroundOption(a0) ? {oneofKind: 'customAsset',
customAsset: {id: a0.id, assetHash: a0.asset}} : a0 === 'blur' ? {oneofKind: 'blur',
blur: {useBlur: true}} : {oneofKind: 'presetOption', presetOption: a0};
}
function getVideoBackgroundOptionFromProto(a0, a1) { // fn#69484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:2789, offset: 0x01c74c7e, size: 152 bytes, params: 3, frame: 6
var object;
var customAsset;
let value = null;
if (value == a0) {
return value;
}
let oneofKind = a0.oneofKind;
if (oneofKind === undefined) {
return value;
}
oneofKind = a0.oneofKind;
if (oneofKind === 'customAsset') {
object = {};
value = environment;
object.type = VideoFilterType.BACKGROUND;
customAsset = a0.customAsset;
object.id = customAsset.id;
object.user_id = a1;
customAsset = a0.customAsset;
object.asset = customAsset.assetHash;
return object;
}
const value2 = 'blur';
if (value2 === oneofKind) {
return a0.blur.useBlur ? value2 : value;
}
if (oneofKind === 'presetOption') {
return a0.presetOption;
}
}
return r0;
}
function getEffectDetailAnalyticsName(a0) { // fn#69479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:682, offset: 0x01c7494b, size: 260 bytes, params: 2, frame: 17
return a0 == null ? 'None' : isCustomBackgroundOption(a0) ? 'Custom' : a0 === 'blur' ? 'Blur' : 'Preset - ' + (DefaultVideoBackground.OPTION_1 === a0 ? 'Cybercity' : DefaultVideoBackground.OPTION_2 === a0 ? 'Discord the Movie' : DefaultVideoBackground.OPTION_3 === a0 ? 'Wumpus Vacation' : DefaultVideoBackground.OPTION_4 === a0 ? 'Vaporwave' : DefaultVideoBackground.OPTION_7 === a0 ? 'Capernite Day' : DefaultVideoBackground.OPTION_8 === a0 ? 'Capernite Night' : DefaultVideoBackground.OPTION_9 === a0 ? 'Hacker Den' : DefaultVideoBackground.OPTION_10 !== a0 ? undefined : 'Wumpice');
}
function trackBackgroundOptionUpdated(a0, a1, a2) { // fn#69480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:1556, offset: 0x01c74a4f, size: 270 bytes, params: 4, frame: 22
const guildId = RTCConnectionStore.getGuildId();
const channelId = RTCConnectionStore.getChannelId();
const channel = ChannelStore.getChannel(channelId);
const value5 = undefined;
const voiceStateMetadata = (require(4863) /* metro dependency 4863: AppAnalyticsUtils */).getVoiceStateMetadata(guildId,
channelId, true);
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const VIDEO_EFFECT_UPDATED = AnalyticEvents.VIDEO_EFFECT_UPDATED;
const object2 = {location: a1};
object2.effect_type = getEffectAnalyticsType(a0);
object2.effect_detail = getEffectDetailAnalyticsName(a0);
object2.effect_state = a2;
object2.channel_id = channelId;
object2.channel_type = channel == null ? value5 : channel.type;
object2.guild_id = guildId;
object2.voice_state_count = voiceStateMetadata.voice_state_count;
object2.video_stream_count = voiceStateMetadata.video_stream_count;
object2.media_session_id = RTCConnectionStore.getMediaSessionId();
object2.rtc_connection_id = RTCConnectionStore.getRTCConnectionId();
object2.is_animated = isAnimatedBackgroundOption(a0);
Reflect.apply(track, defaultImport, [VIDEO_EFFECT_UPDATED, object2]);
return value5;
}
function getVideoBackgroundProtoFromOption(a0) { // fn#69483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:2488, offset: 0x01c74bf7, size: 135 bytes, params: 2, frame: 13
return a0 == null ? {oneofKind: undefined} : isCustomBackgroundOption(a0) ? {oneofKind: 'customAsset',
customAsset: {id: a0.id, assetHash: a0.asset}} : a0 === 'blur' ? {oneofKind: 'blur',
blur: {useBlur: true}} : {oneofKind: 'presetOption', presetOption: a0};
}
function getVideoBackgroundOptionFromProto(a0, a1) { // fn#69484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9091:2789, offset: 0x01c74c7e, size: 152 bytes, params: 3, frame: 6
var object2;
var customAsset;
let value = null;
if (value == a0) {
return value;
}
let oneofKind = a0.oneofKind;
if (oneofKind === undefined) {
return value;
}
oneofKind = a0.oneofKind;
if (oneofKind === 'customAsset') {
object2 = {};
value = environment;
object2.type = VideoFilterType.BACKGROUND;
customAsset = a0.customAsset;
object2.id = customAsset.id;
object2.user_id = a1;
customAsset = a0.customAsset;
object2.asset = customAsset.assetHash;
return object2;
}
const value2 = 'blur';
if (value2 === oneofKind) {
return a0.blur.useBlur ? value2 : value;
}
if (oneofKind === 'presetOption') {
return a0.presetOption;
}
}
global.__d(_fun69474, 8906, [1379, 4294, 7617, 661, 1423, 4863, 683,
2]) /* metro module 8906, dependencies: [1379, 4294, 7617, 661, 1423, 4863, 683, 2] */;
@@ -1,76 +1,82 @@
/* Metro module 8908; source: modules/video_backgrounds/VideoFilterImageError.tsx; dependencies: [7, 6, 15, 17, 18, 1244, 507, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun69506(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:6, offset: 0x01c75445, size: 246 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
object = {ASSET_SIZE: 'BINARY_TYPE_MAX_SIZE'};
object = {ASSET: 'asset'};
const V8APIError = (require(507) /* metro dependency 507: HTTPUtils */).V8APIError;
const V8APIError = (HTTPUtilsModule).V8APIError;
const value = _fun69510(V8APIError);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/VideoFilterImageError.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/VideoFilterImageError.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_69507() { // fn#69507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:148, offset: 0x01c7553b, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_69507() { // fn#69507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:148, offset: 0x01c7553b, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_69507_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_69507_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun69510(a0) { // fn#69510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:461, offset: 0x01c7559d, size: 42 bytes, params: 2, frame: 14
const closure = VideoFilterImageError;
env0_6(closure, a0);
return env0_2(closure);
}
function _fun69510(a0) { // fn#69510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:461, offset: 0x01c7559d, size: 42 bytes, params: 2, frame: 14
const VideoFilterImageError2 = VideoFilterImageError;
Inherits(VideoFilterImageError2, a0);
return CreateClass(VideoFilterImageError2);
function VideoFilterImageError(a0, a1) { // fn#69511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:473, offset: 0x01c755c7, size: 310 bytes, params: 3, frame: 21
const binding = env1_3;
const value3 = undefined;
binding(this, VideoFilterImageError);
const items2 = [a0, a1];
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
const Mt8yDB = t.Mt8yDB;
items2[2] = Reflect.apply(string, intl, [Mt8yDB]);
const value4 = env1_5(VideoFilterImageError);
const value7 = env1_4(this, _isNativeReflectConstruct_69507() ? global.Reflect.construct(value4, items2,
env1_5(this).constructor) : value4.apply(this, items2));
const getFieldErrors = value7.getFieldErrors;
const ASSET = env1_8.ASSET;
const value8 = Reflect.apply(getFieldErrors, value7, [ASSET]);
if (value8 != null && (value8[0] == null ? value3 : value8[0].code) === env1_7.ASSET_SIZE) {
value7.message = intl.string(t.mrlScX);
}
return value7;
}
function VideoFilterImageError(a0, a1) { // fn#69511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9093:473, offset: 0x01c755c7, size: 310 bytes, params: 3, frame: 21
const binding = env1_3;
const value3 = undefined;
binding(this, VideoFilterImageError);
const items2 = [a0, a1];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const Mt8yDB = t.Mt8yDB;
items2[2] = Reflect.apply(string, intl, [Mt8yDB]);
const value4 = env1_5(VideoFilterImageError);
const value7 = env1_4(this, _isNativeReflectConstruct_69507() ? global.Reflect.construct(value4, items2,
env1_5(this).constructor) : value4.apply(this, items2));
const getFieldErrors = value7.getFieldErrors;
const ASSET = env1_8.ASSET;
const value8 = Reflect.apply(getFieldErrors, value7, [ASSET]);
if (value8 != null && (value8[0] == null ? value3 : value8[0].code) === env1_7.ASSET_SIZE) {
value7.message = intl.string(t.mrlScX);
}
return value7;
}
global.__d(_fun69506, 8908, [7, 6, 15, 17, 18, 1244, 507,
2]) /* metro module 8908, dependencies: [7, 6, 15, 17, 18, 1244, 507, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,27 +1,30 @@
/* Metro module 8910; source: modules/video_backgrounds/getDefaultBackgroundData.native.tsx; dependencies: [7617, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as VideoBackgroundConstantsModule from './VideoBackgroundConstants.tsx'; /* Metro dependency 7617 */
function _fun69519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9095:6, offset: 0x01c7595d, size: 139 bytes, params: 8, frame: 18
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const DefaultVideoBackground = (require(7617) /* metro dependency 7617: VideoBackgroundConstants */).DefaultVideoBackground;
object2 = {'id': null, 'source': '', 'name': ''};
const DefaultVideoBackground = (VideoBackgroundConstantsModule).DefaultVideoBackground;
object = {'id': null, 'source': '', 'name': ''};
const OPTION_1 = DefaultVideoBackground.OPTION_1;
object2.id = OPTION_1;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/getDefaultBackgroundData.native.tsx');
object.id = OPTION_1;
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/getDefaultBackgroundData.native.tsx');
exports.default = _default_69520;
function _default_69520() { // fn#69520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9095:174, offset: 0x01c759e8, size: 103 bytes, params: 1, frame: 4
const OPTION_1 = DefaultVideoBackground.OPTION_1;
const binding = env0_1;
const OPTION_2 = DefaultVideoBackground.OPTION_2;
const OPTION_3 = DefaultVideoBackground.OPTION_3;
const OPTION_4 = DefaultVideoBackground.OPTION_4;
const OPTION_7 = DefaultVideoBackground.OPTION_7;
const OPTION_8 = DefaultVideoBackground.OPTION_8;
const OPTION_9 = DefaultVideoBackground.OPTION_9;
const OPTION_10 = DefaultVideoBackground.OPTION_10;
return {[OPTION_1]: binding, [OPTION_2]: binding, [OPTION_3]: binding, [OPTION_4]: binding, [OPTION_7]: binding,
[OPTION_8]: binding, [OPTION_9]: binding, [OPTION_10]: binding};
}
}
function _default_69520() { // fn#69520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9095:174, offset: 0x01c759e8, size: 103 bytes, params: 1, frame: 4
const OPTION_1 = DefaultVideoBackground.OPTION_1;
const binding = env0_1;
const OPTION_2 = DefaultVideoBackground.OPTION_2;
const OPTION_3 = DefaultVideoBackground.OPTION_3;
const OPTION_4 = DefaultVideoBackground.OPTION_4;
const OPTION_7 = DefaultVideoBackground.OPTION_7;
const OPTION_8 = DefaultVideoBackground.OPTION_8;
const OPTION_9 = DefaultVideoBackground.OPTION_9;
const OPTION_10 = DefaultVideoBackground.OPTION_10;
return {[OPTION_1]: binding, [OPTION_2]: binding, [OPTION_3]: binding, [OPTION_4]: binding, [OPTION_7]: binding,
[OPTION_8]: binding, [OPTION_9]: binding, [OPTION_10]: binding};
}
global.__d(_fun69519, 8910, [7617, 2]) /* metro module 8910, dependencies: [7617, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 8911; source: modules/video_backgrounds/isVideoBackgroundSupported.tsx; dependencies: [4259, 4291, 2] */
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 '../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
function _fun69521(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9096:6, offset: 0x01c75a4f, size: 128 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
const env0_1 = (require(4291) /* metro dependency 4291: Constants */).Features;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_backgrounds/isVideoBackgroundSupported.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video_backgrounds/isVideoBackgroundSupported.tsx');
exports.default = isVideoBackgroundSupported;
function isVideoBackgroundSupported() { // fn#69522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9096:225, offset: 0x01c75acf, size: 87 bytes, params: 1, frame: 13
const value = a0;
const r1 = value !== undefined ? value : MediaEngineStore;
const supports = r1.supports;
const MEDIAPIPE = Features.MEDIAPIPE;
return Reflect.apply(supports, r1, [MEDIAPIPE]) && global.Object.values(r1.getVideoDevices()).length > 0;
}
}
function isVideoBackgroundSupported() { // fn#69522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9096:225, offset: 0x01c75acf, size: 87 bytes, params: 1, frame: 13
const value = a0;
const r1 = value !== undefined ? value : MediaEngineStore;
const supports = r1.supports;
const MEDIAPIPE = Features.MEDIAPIPE;
return Reflect.apply(supports, r1, [MEDIAPIPE]) && global.Object.values(r1.getVideoDevices()).length > 0;
}
global.__d(_fun69521, 8911, [4259, 4291, 2]) /* metro module 8911, dependencies: [4259, 4291, 2] */;