165 lines
7.9 KiB
React
165 lines
7.9 KiB
React
/* Metro module 409; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 410] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun5809(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:6, offset: 0x00ce6349, size: 238 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const env0_3 = ['tintColor', 'titleColor', 'title'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Component = ReactModule.Component;
|
|
exports.default = _fun5813(Component);
|
|
function _isNativeReflectConstruct_5810() { // fn#5810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:223, offset: 0x00ce6437, size: 94 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_5810_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun5813(a0) { // fn#5813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:448, offset: 0x00ce6495, size: 114 bytes, params: 2, frame: 16
|
|
const RefreshControl2 = RefreshControl;
|
|
Inherits(RefreshControl2, a0);
|
|
return CreateClass(RefreshControl2, [{key: 'componentDidMount', value: function() {
|
|
this._lastNativeRefreshing = this.props.refreshing;
|
|
}}, {key: 'componentDidUpdate', value: value_5818}, {key: 'render', value: value_5819}]);
|
|
function RefreshControl() { // fn#5814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:460, offset: 0x00ce6507, size: 223 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var r2;
|
|
var r6;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let value = environment.__proto__;
|
|
let binding = env1_5;
|
|
binding(this, RefreshControl);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
r2 = value6;
|
|
reducibleLoop1: while (true) {
|
|
array[r2] = arguments[r2];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value8 = [].concat(array);
|
|
const value9 = env1_8(RefreshControl);
|
|
binding = env1_7;
|
|
if (_isNativeReflectConstruct_5810()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r6 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r6 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r6, env1_8(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value._lastNativeRefreshing = false;
|
|
value._onRefresh = _onRefresh;
|
|
value._setNativeRef = _setNativeRef;
|
|
return value;
|
|
function _onRefresh() { // fn#5815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:801, owner: RefreshControl._onRefresh, offset: 0x00ce65e6, size: 70 bytes, params: 1, frame: 10
|
|
env0_0._lastNativeRefreshing = true;
|
|
if (env0_0.props.onRefresh) {
|
|
env0_0.props.onRefresh();
|
|
}
|
|
env0_0.forceUpdate();
|
|
}
|
|
|
|
function _setNativeRef(a0) { // fn#5816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:911, owner: RefreshControl._setNativeRef, offset: 0x00ce662c, size: 20 bytes, params: 2, frame: 2
|
|
env0_0._nativeRef = a0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_5818({refreshing}) { // fn#5818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:1129, offset: 0x00ce6658, size: 160 bytes, params: 2, frame: 14
|
|
var value;
|
|
var _nativeRef;
|
|
var Commands;
|
|
var setNativeRefreshing;
|
|
let props = this.props;
|
|
let refreshing = props.refreshing;
|
|
if (refreshing !== refreshing) {
|
|
this._lastNativeRefreshing = this.props.refreshing;
|
|
} else {
|
|
props = this.props;
|
|
refreshing = props.refreshing;
|
|
value = refreshing !== this._lastNativeRefreshing;
|
|
if (value && this._nativeRef) {
|
|
value = environment.__proto__;
|
|
Commands = (require(410) /* metro dependency 410 */).Commands;
|
|
setNativeRefreshing = Commands.setNativeRefreshing;
|
|
_nativeRef = this._nativeRef;
|
|
props = this.props;
|
|
refreshing = props.refreshing;
|
|
Reflect.apply(setNativeRefreshing, Commands, [_nativeRef, refreshing]);
|
|
props = this.props;
|
|
refreshing = props.refreshing;
|
|
this._lastNativeRefreshing = refreshing;
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_5819() { // fn#5819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:450:1464, offset: 0x00ce66f8, size: 121 bytes, params: 1, frame: 19
|
|
const props = this.props;
|
|
props.tintColor;
|
|
props.titleColor;
|
|
props.title;
|
|
let value = environment.__proto__;
|
|
const value2 = env1_4(props, env1_3);
|
|
value = importDefault(410) /* metro dependency 410 */;
|
|
const Object = global.Object;
|
|
return ((Component) => <Component {...Object.assign({}, value2, {ref: this._setNativeRef,
|
|
onRefresh: this._onRefresh})} />)(value);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun5809, 409, [29, 6, 7, 15, 17, 18, 31, 33,
|
|
410]) /* metro module 409, dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 410] */;
|