154 lines
7.8 KiB
JavaScript
154 lines
7.8 KiB
JavaScript
/* Metro module 1151; source: unknown; dependencies: [65, 826] */
|
|
import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */
|
|
|
|
function _fun12750(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1278:6, offset: 0x00dd468b, size: 126 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
object = {attachReduxState: true, actionTransformer: function(a0) {
|
|
return a0;
|
|
}, stateTransformer: function(a0) {
|
|
return a0 || null;
|
|
}};
|
|
exports.createReduxEnhancer = createReduxEnhancer;
|
|
function createReduxEnhancer(a0) { // fn#12753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1278:275, offset: 0x00dd4713, size: 45 bytes, params: 2, frame: 16
|
|
const Object = global.Object;
|
|
let env0_0 = Object.assign({}, env0_3, a0);
|
|
return function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun12755;
|
|
};
|
|
function _fun12754(a0) { // fn#12754, offset: 0x00dd4740, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun12755;
|
|
function _fun12755(a0, a1) { // fn#12755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1278:361, offset: 0x00dd4750, size: 160 bytes, params: 3, frame: 14
|
|
var environment;
|
|
const closure = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun12757;
|
|
};
|
|
let value = environment.__proto__;
|
|
if (env1_0.attachReduxState) {
|
|
value = environment.__proto__.__proto__;
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.getGlobalScope();
|
|
value.addEventProcessor(_fun12758);
|
|
}
|
|
const binding = env0_0;
|
|
value = closure(a0);
|
|
value = binding(value, a1);
|
|
const Proxy = global.Proxy;
|
|
const replaceReducer = value.replaceReducer;
|
|
const object = {apply: apply_12759};
|
|
const value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
const proxy = new Proxy(replaceReducer, object);
|
|
value.replaceReducer = proxy instanceof Object ? proxy : value2;
|
|
return value;
|
|
function sentryWrapReducer(a0) { // fn#12756, offset: 0x00dd47f0, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun12757;
|
|
function _fun12757(a0, a1) { // fn#12757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1278:412, offset: 0x00dd4800, size: 343 bytes, params: 3, frame: 21
|
|
var r6;
|
|
var normalizeDepth;
|
|
var object;
|
|
var client;
|
|
const value = undefined;
|
|
const value2 = env0_0(a0, a1);
|
|
const currentScope = (require(826) /* metro dependency 826 */).getCurrentScope();
|
|
const value6 = env3_0.actionTransformer(a1);
|
|
if (value6 != null) {
|
|
(require(826) /* metro dependency 826 */).addBreadcrumb({'category': 'redux.action', 'data': null,
|
|
'type': 'info',
|
|
data: value6});
|
|
}
|
|
const value7 = env3_0.stateTransformer(value2);
|
|
if (value7 != null) {
|
|
client = (require(826) /* metro dependency 826 */).getClient();
|
|
r6 = client == null ? value : client.getOptions();
|
|
normalizeDepth = r6 == null ? value : r6.normalizeDepth;
|
|
normalizeDepth = !normalizeDepth ? 3 : normalizeDepth;
|
|
object = {};
|
|
object.state = {type: 'redux', value: value7};
|
|
(require(826) /* metro dependency 826 */).addNonEnumerableProperty(object,
|
|
'__sentry_override_normalization_depth__', 3 + normalizeDepth);
|
|
currentScope.setContext('state', object);
|
|
} else {
|
|
currentScope.setContext('state', null);
|
|
}
|
|
const configureScopeWithState = env3_0.configureScopeWithState;
|
|
if (typeof configureScopeWithState === 'function') {
|
|
configureScopeWithState(currentScope, value2);
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12758(a0, a1) { // fn#12758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1278:1011, offset: 0x00dd4957, size: 189 bytes, params: 3, frame: 18
|
|
var r2;
|
|
var r1;
|
|
var type;
|
|
var value;
|
|
var contexts;
|
|
var state;
|
|
var items2;
|
|
var concat;
|
|
var binding;
|
|
var attachments;
|
|
var JSON;
|
|
var stringify;
|
|
var value2;
|
|
var value3;
|
|
var error;
|
|
try {
|
|
type = a0.type;
|
|
value = type === undefined;
|
|
if (value) {
|
|
contexts = a0.contexts;
|
|
state = contexts.state;
|
|
state = state.state;
|
|
type = state.type;
|
|
value = type === 'redux';
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
if (r2) {
|
|
items2 = [];
|
|
concat = items2.concat;
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_2;
|
|
attachments = a1.attachments;
|
|
r1 = attachments || [];
|
|
value = binding(r1);
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
contexts = a0.contexts;
|
|
state = contexts.state;
|
|
state = state.state;
|
|
value2 = state.value;
|
|
value3 = Reflect.apply(stringify, JSON, [value2]);
|
|
value = Reflect.apply(concat, items2, [value, [{filename: 'redux_state.json', data: value3}]]);
|
|
a1.attachments = value;
|
|
}
|
|
} catch (error) {
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function apply_12759(a0, a1, a2) { // fn#12759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1278:1327, offset: 0x00dd4a14, size: 50 bytes, params: 4, frame: 14
|
|
a0.apply(a1, [sentryWrapReducer(a2[0])]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun12750, 1151, [65, 826]) /* metro module 1151, dependencies: [65, 826] */;
|