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,124 +1,130 @@
/* Metro module 7897; source: modules/image/native/APNGPlayer.android.tsx; dependencies: [31, 33, 7601, 2] */
import APNGDecorationNativeComponent from '../../../external/discord_common/js/packages/rtn-codegen/js/APNGDecorationNativeComponent.tsx'; /* Metro dependency 7601 */
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 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as APNGDecorationNativeComponentModule from '../../../external/discord_common/js/packages/rtn-codegen/js/APNGDecorationNativeComponent.tsx'; /* Metro dependency 7601 */
function _fun63249(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:6, offset: 0x01b77a2d, size: 162 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.forwardRef(_fun63250);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image/native/APNGPlayer.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/image/native/APNGPlayer.android.tsx');
exports.useAPNGPlayerControls = useAPNGPlayerControls;
exports.APNGPlayer = value;
}
function _fun63250(a0, a1) { // fn#63250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:136, offset: 0x01b77acf, size: 159 bytes, params: 3, frame: 18
const onLoad = a0.onLoad;
const value = Object.create(null);
value.onLoad = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const binding = env0_3;
const value4 = binding.useRef(null);
const value5 = binding.useCallback(function(a0) {
if (onLoad != null) {
onLoad(a0.nativeEvent.url);
}
}, [onLoad]);
binding.useImperativeHandle(a1, function() {
return {play: _fun63253, pause: _fun63254, stop: _fun63255, seek: _fun63256};
});
return ((Component) => <Component ref={value4} onLoad={value5} {...value2} />)(APNGDecorationNativeComponent);
function _fun63252() { // fn#63252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:275, offset: 0x01b77b98, size: 46 bytes, params: 1, frame: 3
return {play: play_63253, pause: pause_63254, stop: stop_63255, seek: seek_63256};
function play_63253() { // fn#63253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:286, offset: 0x01b77bc6, size: 73 bytes, params: 1, frame: 12
var value2;
var Commands;
if (env1_1.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
Commands.play(env1_1.current);
}
}
function pause_63254() { // fn#63254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:348, offset: 0x01b77c0f, size: 73 bytes, params: 1, frame: 12
var value2;
var Commands;
if (env1_1.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
Commands.pause(env1_1.current);
}
}
function stop_63255() { // fn#63255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:410, offset: 0x01b77c58, size: 107 bytes, params: 1, frame: 18
var value2;
const Commands = (APNGDecorationNativeComponentModule).Commands;
var seek;
var binding;
var pause;
let current = env1_1.current;
if (current != null) {
value2 = environment.__proto__.__proto__;
seek = Commands.seek;
binding = env1_1;
current = binding.current;
Reflect.apply(seek, Commands, [current, 0]);
pause = Commands.pause;
current = binding.current;
Reflect.apply(pause, Commands, [current]);
}
}
function seek_63256(a0) { // fn#63256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:509, offset: 0x01b77cc3, size: 77 bytes, params: 2, frame: 13
var value2;
var Commands;
if (env1_1.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
Commands.seek(env1_1.current, a0);
}
}
function _fun63250(a0, a1) { // fn#63250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:136, offset: 0x01b77acf, size: 159 bytes, params: 3, frame: 18
const onLoad = a0.onLoad;
const value = Object.create(null);
value.onLoad = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const binding = env0_3;
const value4 = binding.useRef(null);
const value5 = binding.useCallback(function(a0) {
if (onLoad != null) {
onLoad(a0.nativeEvent.url);
}
}, [onLoad]);
binding.useImperativeHandle(a1, function() {
return {play: _fun63253, pause: _fun63254, stop: _fun63255, seek: _fun63256};
});
return ((Component) => <Component ref={value4} onLoad={value5} {...value2} />)(importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */);
}
function useAPNGPlayerControls(a0) { // fn#63257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:707, offset: 0x01b77d10, size: 58 bytes, params: 2, frame: 14
const env0_0 = a0;
const binding = env0_3;
const env0_1 = binding.useRef(false);
return binding.useMemo(function() {
return {play: _fun63259, pause: _fun63260, stop: _fun63261, seek: _fun63262};
}, [a0]);
}
function _fun63252() { // fn#63252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:275, offset: 0x01b77b98, size: 46 bytes, params: 1, frame: 3
return {play: play_63253, pause: pause_63254, stop: stop_63255, seek: seek_63256};
}
function _fun63258() { // fn#63258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:748, offset: 0x01b77d4a, size: 46 bytes, params: 1, frame: 3
return {play: play_63259, pause: pause_63260, stop: stop_63261, seek: seek_63262};
}
function play_63253() { // fn#63253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:286, offset: 0x01b77bc6, size: 73 bytes, params: 1, frame: 12
var value2;
var Commands;
if (env1_1.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
Commands.play(env1_1.current);
}
}
function pause_63254() { // fn#63254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:348, offset: 0x01b77c0f, size: 73 bytes, params: 1, frame: 12
var value2;
var Commands;
if (env1_1.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
Commands.pause(env1_1.current);
}
}
function useAPNGPlayerControls(a0) { // fn#63257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:707, offset: 0x01b77d10, size: 58 bytes, params: 2, frame: 14
const env0_0 = a0;
const binding = env0_3;
const env0_1 = binding.useRef(false);
return binding.useMemo(function() {
return {play: _fun63259, pause: _fun63260, stop: _fun63261, seek: _fun63262};
}, [a0]);
function _fun63258() { // fn#63258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:748, offset: 0x01b77d4a, size: 46 bytes, params: 1, frame: 3
return {play: play_63259, pause: pause_63260, stop: stop_63261, seek: seek_63262};
function play_63259() { // fn#63259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:759, offset: 0x01b77d78, size: 68 bytes, params: 1, frame: 10
if (!(env1_0.current == null || env1_1.current)) {
env1_0.current.play();
env1_1.current = true;
}
}
function stop_63255() { // fn#63255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:410, offset: 0x01b77c58, size: 107 bytes, params: 1, frame: 18
var value2;
const Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
var seek;
var binding;
var pause;
let current = env1_1.current;
if (current != null) {
value2 = environment.__proto__.__proto__;
seek = Commands.seek;
binding = env1_1;
current = binding.current;
Reflect.apply(seek, Commands, [current, 0]);
pause = Commands.pause;
current = binding.current;
Reflect.apply(pause, Commands, [current]);
}
}
function pause_63260() { // fn#63260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:831, offset: 0x01b77dbc, size: 68 bytes, params: 1, frame: 10
if (env1_0.current != null && env1_1.current) {
env1_0.current.pause();
env1_1.current = false;
}
}
function seek_63256(a0) { // fn#63256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:509, offset: 0x01b77cc3, size: 77 bytes, params: 2, frame: 13
var value2;
var Commands;
if (env1_1.current != null) {
value2 = environment.__proto__.__proto__;
Commands = (require(7601) /* metro dependency 7601: APNGDecorationNativeComponent */).Commands;
Commands.seek(env1_1.current, a0);
}
}
function stop_63261() { // fn#63261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:903, offset: 0x01b77e00, size: 68 bytes, params: 1, frame: 10
if (env1_0.current != null && env1_1.current) {
env1_0.current.stop();
env1_1.current = false;
}
}
function play_63259() { // fn#63259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:759, offset: 0x01b77d78, size: 68 bytes, params: 1, frame: 10
if (!(env1_0.current == null || env1_1.current)) {
env1_0.current.play();
env1_1.current = true;
}
}
function seek_63262(a0) { // fn#63262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:974, offset: 0x01b77e44, size: 45 bytes, params: 2, frame: 11
if (env1_0.current != null) {
env1_0.current.seek(a0);
}
}
function pause_63260() { // fn#63260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:831, offset: 0x01b77dbc, size: 68 bytes, params: 1, frame: 10
if (env1_0.current != null && env1_1.current) {
env1_0.current.pause();
env1_1.current = false;
}
}
}
function stop_63261() { // fn#63261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:903, offset: 0x01b77e00, size: 68 bytes, params: 1, frame: 10
if (env1_0.current != null && env1_1.current) {
env1_0.current.stop();
env1_1.current = false;
}
}
function seek_63262(a0) { // fn#63262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8075:974, offset: 0x01b77e44, size: 45 bytes, params: 2, frame: 11
if (env1_0.current != null) {
env1_0.current.seek(a0);
}
}
global.__d(_fun63249, 7897, [31, 33, 7601, 2]) /* metro module 7897, dependencies: [31, 33, 7601, 2] */;
+16 -10
View File
@@ -1,18 +1,24 @@
/* Metro module 11626; source: modules/image/native/BrokenImage.tsx; dependencies: [31, 33, 7744, 2] */
import Module07744 from '../../../by-id/module-07744.js'; /* Metro dependency 7744 */
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 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as Module07744Module from '../../../by-id/module-07744.js'; /* Metro dependency 7744 */
function _fun89191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11812:6, offset: 0x02003702, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image/native/BrokenImage.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/image/native/BrokenImage.tsx');
exports.default = _default_89192;
function _default_89192(a0) { // fn#89192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11812:127, offset: 0x0200378c, size: 107 bytes, params: 2, frame: 17
const defaultImport = Module07744;
const defaultImportProps = {'width': 24, 'height': 24, 'fill': 'hsl(217, 7.6%, 33.5%)', ...a0};
const Path = (Module07744Module).Path;
return ((Component) => <Component {...defaultImportProps}><Path d="M21 5v6.59l-3-3-4 4-4-4-4 4-3-3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Zm-3 6.42 3 3V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6.58l3 3 4-4 4 4 4-4Z" /></Component>)(defaultImport);
}
}
function _default_89192(a0) { // fn#89192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11812:127, offset: 0x0200378c, size: 107 bytes, params: 2, frame: 17
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
const defaultImportProps = {'width': 24, 'height': 24, 'fill': 'hsl(217, 7.6%, 33.5%)', ...a0};
const Path = (require(7744) /* metro dependency 7744 */).Path;
return ((Component) => <Component {...defaultImportProps}><Path d="M21 5v6.59l-3-3-4 4-4-4-4 4-3-3V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Zm-3 6.42 3 3V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6.58l3 3 4-4 4 4 4-4Z" /></Component>)(defaultImport);
}
global.__d(_fun89191, 11626, [31, 33, 7744, 2]) /* metro module 11626, dependencies: [31, 33, 7744, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 11092; source: modules/image/native/ImageCarouselConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun84932(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11278:6, offset: 0x01f5d317, size: 99 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image/native/ImageCarouselConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/image/native/ImageCarouselConstants.tsx');
exports.IMAGE_CAROUSEL_TILE_HEIGHT = 60;
exports.IMAGE_CAROUSEL_EXPERIMENT_TILE_MARGIN = 6;
exports.IMAGE_CAROUSEL_TILE_CLOSE_BUTTON_PADDING = 8;
}
global.__d(_fun84932, 11092, [2]) /* metro module 11092, dependencies: [2] */;
+135 -122
View File
@@ -1,147 +1,160 @@
/* Metro module 4673; source: modules/image/native/ImagePicker.tsx; dependencies: [1310, 482, 477, 4674, 4675, 697, 4677, 1244, 2] */
import ThemeStore from '../../user_settings/ThemeStore.tsx'; /* Metro dependency 1310 */
import Module04677 from '../../../by-id/module-04677.js'; /* Metro dependency 4677 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as moduleValue2 from '../../../by-id/module-04675-launch.js'; /* Metro dependency 4675 */
function _fun40449(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:6, offset: 0x01100c6f, size: 195 bytes, params: 8, frame: 21
var object2;
let env0_0 = require;
const closure = launchImageLibrary;
const closure2 = launchCamera;
const launchImageLibrary2 = launchImageLibrary;
const launchCamera2 = launchCamera;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
const env0_4 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
object2 = {launchImageLibrary: closure, launchImageLibraryAsync: function(a0) {
object = {launchImageLibrary: launchImageLibrary2, launchImageLibraryAsync: function(a0) {
var env0_0 = a0;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun40453);
return value2 instanceof Object ? value2 : value;
}, launchCamera: closure2, launchCameraAsync: function(a0) {
}, launchCamera: launchCamera2, launchCameraAsync: function(a0) {
var env0_0 = a0;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun40456);
return value2 instanceof Object ? value2 : value;
}, launchCropper: launchCropper};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image/native/ImagePicker.tsx');
exports.default = object2;
}
function launchImageLibrary(a0, a1) { // fn#40450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:127, offset: 0x01100d32, size: 261 bytes, params: 3, frame: 19
var value;
let mediaType = a0.mediaType;
if (mediaType !== 'any') {
mediaType = a0.mediaType;
} else {
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isIOS();
mediaType = value ? 'mixed' : a0.mediaType;
(FileImportTrackerModule).fileFinishedImporting('modules/image/native/ImagePicker.tsx');
exports.default = object;
function launchImageLibrary(a0, a1) { // fn#40450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:127, offset: 0x01100d32, size: 261 bytes, params: 3, frame: 19
var value;
let mediaType = a0.mediaType;
if (mediaType !== 'any') {
mediaType = a0.mediaType;
} else {
value = require(477) /* metro dependency 477: PlatformUtils */;
value = value.isIOS();
mediaType = value ? 'mixed' : a0.mediaType;
}
const r7 = a0.selections ?? [];
const disableNewIOSPicker = a0.disableNewIOSPicker;
const value3 = undefined;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
const r8 = platformUtilsModule.isIOS() ? 'pageSheet' : value3;
value = !Reflect.apply((require(4674) /* metro dependency 4674: ImagePickerUtils */).isActionPickSupported, value,
[]);
const launchImageLibrary = moduleValue2.launchImageLibrary;
const object = {};
copyDataProperties(object, a0, mediaType);
object['mediaType'] = mediaType;
object['presentationStyle'] = r8;
object['selection'] = r7;
object['useNewIOSPicker'] = !disableNewIOSPicker;
object['forceGetContent'] = value;
Reflect.apply(launchImageLibrary, moduleValue2, [object, a1]);
return value3;
}
const r7 = a0.selections ?? [];
const disableNewIOSPicker = a0.disableNewIOSPicker;
const value3 = undefined;
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
const r8 = platformUtilsModule.isIOS() ? 'pageSheet' : value3;
value = !Reflect.apply((require(4674) /* metro dependency 4674: ImagePickerUtils */).isActionPickSupported, value,
[]);
const moduleValue2 = require(4675) /* metro dependency 4675 */;
const launchImageLibrary = moduleValue2.launchImageLibrary;
const object2 = {};
copyDataProperties(object2, a0, mediaType);
object2['mediaType'] = mediaType;
object2['presentationStyle'] = r8;
object2['selection'] = r7;
object2['useNewIOSPicker'] = !disableNewIOSPicker;
object2['forceGetContent'] = value;
Reflect.apply(launchImageLibrary, moduleValue2, [object2, a1]);
return value3;
}
function launchCamera(a0, a1) { // fn#40451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:469, offset: 0x01100e37, size: 45 bytes, params: 3, frame: 14
(require(4675) /* metro dependency 4675 */).launchCamera(a0, a1);
}
function launchCamera(a0, a1) { // fn#40451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:469, offset: 0x01100e37, size: 45 bytes, params: 3, frame: 14
(moduleValue2).launchCamera(a0, a1);
}
function launchImageLibraryAsync(a0) { // fn#40452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:591, offset: 0x01100e64, size: 44 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(function(a0) {
launchImageLibrary(a0, _fun40454);
});
return promise instanceof Object ? promise : value;
}
function launchImageLibraryAsync(a0) { // fn#40452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:591, offset: 0x01100e64, size: 44 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(function(a0) {
launchImageLibrary(a0, _fun40454);
});
return promise instanceof Object ? promise : value;
function _fun40453(a0) { // fn#40453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:647, offset: 0x01100e90, size: 38 bytes, params: 2, frame: 13
launchImageLibrary(a0, _fun40454);
function _fun40454(a0) { // fn#40454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:673, offset: 0x00cee816, size: 19 bytes, params: 2, frame: 11
env0_0(a0);
}
function launchCameraAsync(a0) { // fn#40455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:733, offset: 0x01100eb6, size: 44 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(function(a0) {
launchCamera(a0, _fun40457);
});
return promise instanceof Object ? promise : value;
}
}
function launchCropper({uri, width, height, includeBase64, mimeType, freeStyleCropEnabled}) { // fn#40458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:833, offset: 0x01100f08, size: 821 bytes, params: 2, frame: 29
const theme = ThemeStore.theme;
let internal = (importDefault(697) /* metro dependency 697: native */).internal;
let resolveSemanticColor = internal.resolveSemanticColor;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
const semanticColor = Reflect.apply(resolveSemanticColor, internal, [theme, BACKGROUND_BASE_LOW]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
const semanticColor2 = Reflect.apply(resolveSemanticColor, internal, [theme, BACKGROUND_SURFACE_HIGH]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
const semanticColor3 = Reflect.apply(resolveSemanticColor, internal, [theme, MOBILE_TEXT_HEADING_PRIMARY]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
const semanticColor4 = Reflect.apply(resolveSemanticColor, internal, [theme, TEXT_MUTED]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
const semanticColor5 = Reflect.apply(resolveSemanticColor, internal, [theme, TEXT_BRAND]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
const semanticColor6 = Reflect.apply(resolveSemanticColor, internal, [theme, TEXT_DEFAULT]);
const defaultImport = importDefault(4677) /* metro dependency 4677 */;
const openCropper = defaultImport.openCropper;
const object2 = {mediaType: 'photo', path: uri, width: width, height: height, includeBase64: includeBase64,
mimeType: mimeType, freeStyleCropEnabled: freeStyleCropEnabled};
let LIGHT = ThemeTypes.LIGHT;
object2.cropperStatusBarLight = theme === LIGHT;
LIGHT = ThemeTypes.LIGHT;
object2.cropperNavigationBarLight = theme === LIGHT;
object2.cropperActiveWidgetColor = semanticColor3;
object2.cropperInactiveWidgetColor = semanticColor4;
object2.cropperControlsColor = semanticColor2;
object2.cropperControlsBarColor = semanticColor;
object2.cropperChooseColor = semanticColor5;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.cropperChooseText = Reflect.apply(string, intl, [t['1Qm822']]);
object2.cropperCancelColor = semanticColor6;
object2.cropperCancelText = intl.string(t['ETE/oC']);
object2.cropperToolbarColor = semanticColor;
object2.cropperToolbarWidgetColor = semanticColor3;
object2.cropperToolbarTitle = intl.string(t.b0y3DL);
string = intl.string;
const Izf9u1 = t.Izf9u1;
object2.cropperRotateByAngleAccessibilityLabel = Reflect.apply(string, intl, [Izf9u1]);
object2.cropperResetRotationAccessibilityLabel = intl.string(t.iz4w1M);
string = intl.string;
const QHvDTL = t.QHvDTL;
object2.cropperClampButtonAccessibilityLabel = Reflect.apply(string, intl, [QHvDTL]);
return Reflect.apply(openCropper, defaultImport, [object2]);
}
}
function _fun40453(a0) { // fn#40453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:647, offset: 0x01100e90, size: 38 bytes, params: 2, frame: 13
launchImageLibrary(a0, _fun40454);
}
function launchCameraAsync(a0) { // fn#40455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:733, offset: 0x01100eb6, size: 44 bytes, params: 2, frame: 11
const env0_0 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(function(a0) {
launchCamera(a0, _fun40457);
});
return promise instanceof Object ? promise : value;
function _fun40456(a0) { // fn#40456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:783, offset: 0x01100ee2, size: 38 bytes, params: 2, frame: 13
launchCamera(a0, _fun40457);
function _fun40457(a0) { // fn#40457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:803, offset: 0x00cee816, size: 19 bytes, params: 2, frame: 11
env0_0(a0);
}
}
}
function launchCropper({uri, width, height, includeBase64, mimeType, freeStyleCropEnabled}) { // fn#40458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:833, offset: 0x01100f08, size: 821 bytes, params: 2, frame: 29
const theme = ThemeStore.theme;
let internal = (importDefault(697) /* metro dependency 697: native */).internal;
let resolveSemanticColor = internal.resolveSemanticColor;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
const semanticColor = Reflect.apply(resolveSemanticColor, internal, [theme, BACKGROUND_BASE_LOW]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
const semanticColor2 = Reflect.apply(resolveSemanticColor, internal, [theme, BACKGROUND_SURFACE_HIGH]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
const semanticColor3 = Reflect.apply(resolveSemanticColor, internal, [theme, MOBILE_TEXT_HEADING_PRIMARY]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
const semanticColor4 = Reflect.apply(resolveSemanticColor, internal, [theme, TEXT_MUTED]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const TEXT_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_BRAND;
const semanticColor5 = Reflect.apply(resolveSemanticColor, internal, [theme, TEXT_BRAND]);
internal = (importDefault(697) /* metro dependency 697: native */).internal;
resolveSemanticColor = internal.resolveSemanticColor;
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
const semanticColor6 = Reflect.apply(resolveSemanticColor, internal, [theme, TEXT_DEFAULT]);
const defaultImport = Module04677;
const openCropper = defaultImport.openCropper;
const object = {mediaType: 'photo', path: uri, width: width, height: height, includeBase64: includeBase64,
mimeType: mimeType, freeStyleCropEnabled: freeStyleCropEnabled};
let LIGHT = ThemeTypes.LIGHT;
object.cropperStatusBarLight = theme === LIGHT;
LIGHT = ThemeTypes.LIGHT;
object.cropperNavigationBarLight = theme === LIGHT;
object.cropperActiveWidgetColor = semanticColor3;
object.cropperInactiveWidgetColor = semanticColor4;
object.cropperControlsColor = semanticColor2;
object.cropperControlsBarColor = semanticColor;
object.cropperChooseColor = semanticColor5;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.cropperChooseText = Reflect.apply(string, intl, [t['1Qm822']]);
object.cropperCancelColor = semanticColor6;
object.cropperCancelText = intl.string(t['ETE/oC']);
object.cropperToolbarColor = semanticColor;
object.cropperToolbarWidgetColor = semanticColor3;
object.cropperToolbarTitle = intl.string(t.b0y3DL);
string = intl.string;
const Izf9u1 = t.Izf9u1;
object.cropperRotateByAngleAccessibilityLabel = Reflect.apply(string, intl, [Izf9u1]);
object.cropperResetRotationAccessibilityLabel = intl.string(t.iz4w1M);
string = intl.string;
const QHvDTL = t.QHvDTL;
object.cropperClampButtonAccessibilityLabel = Reflect.apply(string, intl, [QHvDTL]);
return Reflect.apply(openCropper, defaultImport, [object]);
}
function _fun40456(a0) { // fn#40456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4851:783, offset: 0x01100ee2, size: 38 bytes, params: 2, frame: 13
launchCamera(a0, _fun40457);
}
global.__d(_fun40449, 4673, [1310, 482, 477, 4674, 4675, 697, 4677, 1244,
2]) /* metro module 4673, dependencies: [1310, 482, 477, 4674, 4675, 697, 4677, 1244, 2] */;
@@ -1,10 +1,22 @@
/* Metro module 4674; source: modules/image/native/ImagePickerUtils.tsx; dependencies: [1581, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MetaQuestUtilsAndroidModule from '../../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
function _fun40459(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4852:6, offset: 0x0110123d, size: 105 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/image/native/ImagePickerUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/image/native/ImagePickerUtils.tsx');
exports.isActionPickSupported = isActionPickSupported;
exports.isImageCaptureIntentSupported = isImageCaptureIntentSupported;
function isActionPickSupported() { // fn#40460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4852:191, offset: 0x00fc3e69, size: 39 bytes, params: 1, frame: 11
return !MetaQuestUtilsAndroidModule.isMetaQuest();
}
function isImageCaptureIntentSupported() { // fn#40461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4852:286, offset: 0x00fc3e69, size: 39 bytes, params: 1, frame: 11
return !MetaQuestUtilsAndroidModule.isMetaQuest();
}
}
global.__d(_fun40459, 4674, [1581, 2]) /* metro module 4674, dependencies: [1581, 2] */;