96 lines
4.0 KiB
React
96 lines
4.0 KiB
React
/* Metro module 939; source: unknown; dependencies: [895, 831, 938] */
|
|
function _fun9993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1066:6, offset: 0x00d78b28, size: 109 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const _wrapAndCaptureBooleanResult = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun9995;
|
|
};
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.growthbookIntegration = (require(895) /* metro dependency 895 */).defineIntegration(function({growthbookClass}) {
|
|
return {name: 'GrowthBook', setupOnce: _fun9997, processEvent: _fun9998};
|
|
});
|
|
}
|
|
|
|
function _wrapAndCaptureBooleanResult(a0) { // fn#9994, offset: 0x00d78b95, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun9995;
|
|
}
|
|
|
|
function _fun9996({growthbookClass}) { // fn#9996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1066:124, offset: 0x00d78c53, size: 49 bytes, params: 2, frame: 3
|
|
return {name: 'GrowthBook', setupOnce: setupOnce, processEvent: processEvent_9998};
|
|
}
|
|
|
|
function _fun9995() { // fn#9995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1066:564, offset: 0x00d78ba5, size: 174 bytes, params: 1, frame: 17
|
|
var r1;
|
|
var value5;
|
|
var value7;
|
|
var value8;
|
|
var moduleValue;
|
|
var _INTERNAL_insertFlagToScope;
|
|
var moduleValue2;
|
|
var _INTERNAL_addFeatureFlagToActiveSpan;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
r1 = value4;
|
|
reducibleLoop1: while (true) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value5 < value) {
|
|
r1 = value5;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const property = array[value4];
|
|
value = env0_0.apply(this, array);
|
|
const value6 = typeof property === 'string';
|
|
reducibleJoin4: while (true) {
|
|
if (value6) {
|
|
value7 = typeof value === 'boolean';
|
|
r1 = value7;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value6;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r1) {
|
|
value8 = environment.__proto__;
|
|
moduleValue = require(938) /* metro dependency 938 */;
|
|
_INTERNAL_insertFlagToScope = moduleValue._INTERNAL_insertFlagToScope;
|
|
Reflect.apply(_INTERNAL_insertFlagToScope, moduleValue, [property, value]);
|
|
moduleValue2 = require(938) /* metro dependency 938 */;
|
|
_INTERNAL_addFeatureFlagToActiveSpan = moduleValue2._INTERNAL_addFeatureFlagToActiveSpan;
|
|
Reflect.apply(_INTERNAL_addFeatureFlagToActiveSpan, moduleValue2, [property, value]);
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function setupOnce() { // fn#9997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1066:195, offset: 0x00d78c84, size: 138 bytes, params: 1, frame: 16
|
|
var moduleValue;
|
|
var moduleValue2;
|
|
const prototype = growthbookClass.prototype;
|
|
if (typeof prototype.isOn === 'function') {
|
|
value = environment.__proto__;
|
|
moduleValue = require(831) /* metro dependency 831 */;
|
|
moduleValue.fill(prototype, 'isOn', _wrapAndCaptureBooleanResult);
|
|
}
|
|
const getFeatureValue = prototype.getFeatureValue;
|
|
if (typeof getFeatureValue === 'function') {
|
|
value = environment.__proto__;
|
|
moduleValue2 = require(831) /* metro dependency 831 */;
|
|
moduleValue2.fill(prototype, 'getFeatureValue', _wrapAndCaptureBooleanResult);
|
|
}
|
|
}
|
|
|