104 lines
5.4 KiB
TypeScript
104 lines
5.4 KiB
TypeScript
/* Metro module 11024; source: modules/forums/ForumGuidelinesManager.tsx; dependencies: [6, 7, 15, 17, 18, 587, 4860, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as StorageModule from '../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
|
|
|
|
function _fun84426(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11210:6, offset: 0x01f49fc8, size: 226 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun84430(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/forums/ForumGuidelinesManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_84427() { // fn#84427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11210:148, offset: 0x01f4a0aa, size: 98 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_84427_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun84430(a0) { // fn#84430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11210:380, offset: 0x01f4a10c, size: 147 bytes, params: 2, frame: 16
|
|
const ForumGuidelinesManager2 = ForumGuidelinesManager;
|
|
Inherits(ForumGuidelinesManager2, a0);
|
|
return CreateClass(ForumGuidelinesManager2, [{key: '_initialize', value: value_84432}, {key: '_terminate',
|
|
value: function() {
|
|
var Storage = require(dependencyMap[5]).Storage;
|
|
Storage.set('formGuidelinesStorageKey', this.seenForumGuidelines);
|
|
}}, {key: 'markAsSeen', value: function(a0) {
|
|
this.seenForumGuidelines.add(a0);
|
|
require(dependencyMap[5]).Storage.set('formGuidelinesStorageKey', this.seenForumGuidelines);
|
|
}}, {key: 'hasSeen', value: function(a0) {
|
|
return this.seenForumGuidelines.has(a0);
|
|
}}]);
|
|
function ForumGuidelinesManager(a0) { // fn#84431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11210:392, offset: 0x01f4a19f, size: 160 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, ForumGuidelinesManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(ForumGuidelinesManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_84427()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
const Set = global.Set;
|
|
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
const set = new Set();
|
|
value.seenForumGuidelines = set instanceof Object ? set : value4;
|
|
return value;
|
|
}
|
|
|
|
function value_84432() { // fn#84432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11210:762, offset: 0x01f4a23f, size: 95 bytes, params: 1, frame: 12
|
|
let value = environment.__proto__;
|
|
const Storage = (StorageModule).Storage;
|
|
value = Storage.get('formGuidelinesStorageKey');
|
|
if (value != null) {
|
|
this.seenForumGuidelines = new global.Set(value);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun84426, 11024, [6, 7, 15, 17, 18, 587, 4860,
|
|
2]) /* metro module 11024, dependencies: [6, 7, 15, 17, 18, 587, 4860, 2] */;
|