247 lines
13 KiB
React
247 lines
13 KiB
React
/* Metro module 428; source: unknown; dependencies: [429, 101, 268, 117] */
|
|
function _fun5952(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:6, offset: 0x00ceb549, size: 365 bytes, params: 8, frame: 17
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Map = global.Map;
|
|
const map = new Map([['change', 'touchExplorationDidChange'], ['reduceMotionChanged', 'reduceMotionDidChange'],
|
|
['highTextContrastChanged', 'highTextContrastDidChange'], ['screenReaderChanged', 'touchExplorationDidChange'],
|
|
['accessibilityServiceChanged', 'accessibilityServiceDidChange'], ['invertColorsChanged',
|
|
'invertColorDidChange'], ['grayscaleChanged', 'grayscaleModeDidChange']]);
|
|
exports.default = {isBoldTextEnabled: function() {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(false);
|
|
}, isGrayscaleEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5955);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, isInvertColorsEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5957);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, isReduceMotionEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5959);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, isHighTextContrastEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5961);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, isDarkerSystemColorsEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5963);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, prefersCrossFadeTransitions: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5965);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, isReduceTransparencyEnabled: function() {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(false);
|
|
}, isScreenReaderEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5968);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, isAccessibilityServiceEnabled: function() {
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5970);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}, addEventListener: addEventListener_5971, setAccessibilityFocus: setAccessibilityFocus,
|
|
sendAccessibilityEvent: sendAccessibilityEvent_5974, announceForAccessibility: announceForAccessibility,
|
|
announceForAccessibilityWithOptions: announceForAccessibilityWithOptions,
|
|
getRecommendedTimeoutMillis: function(a0) {
|
|
var env0_0 = a0;
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun5978);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}};
|
|
}
|
|
|
|
function isGrayscaleEnabled() { // fn#5954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:558, offset: 0x00ceb6cc, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun5955);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function isInvertColorsEnabled() { // fn#5956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:742, offset: 0x00ceb75a, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun5957);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function isReduceMotionEnabled() { // fn#5958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:935, offset: 0x00ceb7e8, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun5959);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function isHighTextContrastEnabled() { // fn#5960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1087, offset: 0x00ceb856, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun5961);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function isDarkerSystemColorsEnabled() { // fn#5962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1298, offset: 0x00ceb8e4, size: 37 bytes, params: 1, frame: 11
|
|
let Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(function(a0, a1) {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(false);
|
|
});
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function prefersCrossFadeTransitions() { // fn#5964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1430, offset: 0x00ceb909, size: 37 bytes, params: 1, frame: 11
|
|
let Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(function(a0, a1) {
|
|
var Promise = global.Promise;
|
|
return Promise.resolve(false);
|
|
});
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function isScreenReaderEnabled() { // fn#5967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1651, offset: 0x00ceb92e, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun5968);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function isAccessibilityServiceEnabled() { // fn#5969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1811, offset: 0x00ceb99c, size: 37 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun5970);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function addEventListener_5971(a0, a1) { // fn#5971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2015, offset: 0x00ceba25, size: 84 bytes, params: 3, frame: 13
|
|
var r0;
|
|
var value;
|
|
const value2 = env0_3.get(a0);
|
|
if (value2 == null) {
|
|
r0 = {remove: function() {
|
|
}};
|
|
} else {
|
|
value = importDefault(101) /* metro dependency 101 */;
|
|
value = value.addListener(value2, a1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function setAccessibilityFocus(a0) { // fn#5973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2153, offset: 0x00ceba79, size: 40 bytes, params: 2, frame: 13
|
|
(importDefault(268) /* metro dependency 268 */)(a0, 'focus');
|
|
}
|
|
|
|
function sendAccessibilityEvent_5974(a0, a1) { // fn#5974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2230, offset: 0x00cebaa1, size: 45 bytes, params: 3, frame: 14
|
|
(require(117) /* metro dependency 117 */).sendAccessibilityEvent(a0, a1);
|
|
}
|
|
|
|
function announceForAccessibility(a0) { // fn#5975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2329, offset: 0x00cebace, size: 63 bytes, params: 2, frame: 13
|
|
if ((importDefault(429) /* metro dependency 429 */) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).announceForAccessibility(a0);
|
|
}
|
|
}
|
|
|
|
function announceForAccessibilityWithOptions(a0, a1) { // fn#5976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2454, offset: 0x00cebace, size: 63 bytes, params: 3, frame: 13
|
|
if ((importDefault(429) /* metro dependency 429 */) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).announceForAccessibility(a0);
|
|
}
|
|
}
|
|
|
|
function getRecommendedTimeoutMillis(a0) { // fn#5977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2584, offset: 0x00cebb0d, 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(_fun5978);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function _fun5955(a0, a1) { // fn#5955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:608, offset: 0x00ceb6f1, size: 105 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__;
|
|
const value2 = undefined;
|
|
if (((importDefault(429) /* metro dependency 429 */) == null ? value2 : (importDefault(429) /* metro dependency 429 */).isGrayscaleEnabled) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).isGrayscaleEnabled(a0);
|
|
} else {
|
|
a1(null);
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function _fun5957(a0, a1) { // fn#5957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:795, offset: 0x00ceb77f, size: 105 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__;
|
|
const value2 = undefined;
|
|
if (((importDefault(429) /* metro dependency 429 */) == null ? value2 : (importDefault(429) /* metro dependency 429 */).isInvertColorsEnabled) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).isInvertColorsEnabled(a0);
|
|
} else {
|
|
a1(null);
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function _fun5959(a0, a1) { // fn#5959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:988, offset: 0x00ceb80d, size: 73 bytes, params: 3, frame: 13
|
|
const value = environment.__proto__;
|
|
if ((importDefault(429) /* metro dependency 429 */) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).isReduceMotionEnabled(a0);
|
|
} else {
|
|
a1(null);
|
|
}
|
|
}
|
|
|
|
function _fun5961(a0, a1) { // fn#5961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1144, offset: 0x00ceb87b, size: 105 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__;
|
|
const value2 = undefined;
|
|
if (((importDefault(429) /* metro dependency 429 */) == null ? value2 : (importDefault(429) /* metro dependency 429 */).isHighTextContrastEnabled) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).isHighTextContrastEnabled(a0);
|
|
} else {
|
|
a1(null);
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function _fun5968(a0, a1) { // fn#5968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1704, offset: 0x00ceb953, size: 73 bytes, params: 3, frame: 13
|
|
const value = environment.__proto__;
|
|
if ((importDefault(429) /* metro dependency 429 */) != null) {
|
|
(importDefault(429) /* metro dependency 429 */).isTouchExplorationEnabled(a0);
|
|
} else {
|
|
a1(null);
|
|
}
|
|
}
|
|
|
|
function _fun5970(a0, a1) { // fn#5970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:1872, offset: 0x00ceb9c1, size: 100 bytes, params: 3, frame: 14
|
|
const value = environment.__proto__;
|
|
if ((importDefault(429) /* metro dependency 429 */) == null) {
|
|
a1(null);
|
|
} else if ((importDefault(429) /* metro dependency 429 */).isAccessibilityServiceEnabled != null) {
|
|
(importDefault(429) /* metro dependency 429 */).isAccessibilityServiceEnabled(a0);
|
|
} else {
|
|
a1(null);
|
|
}
|
|
}
|
|
|
|
function _fun5978(a0, a1) { // fn#5978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:469:2644, offset: 0x00cebb39, size: 111 bytes, params: 3, frame: 15
|
|
const value = environment.__proto__;
|
|
if ((importDefault(429) /* metro dependency 429 */) == null) {
|
|
a0(env0_0);
|
|
} else if ((importDefault(429) /* metro dependency 429 */).getRecommendedTimeoutMillis) {
|
|
(importDefault(429) /* metro dependency 429 */).getRecommendedTimeoutMillis(env0_0, a0);
|
|
} else {
|
|
a0(env0_0);
|
|
}
|
|
}
|
|
|