Files
discord-decomp/sources/modules/spotify/SpotifyProtocolStore.tsx
T
2026-07-28 01:06:53 +03:00

74 lines
3.9 KiB
TypeScript

/* Metro module 6870; source: modules/spotify/SpotifyProtocolStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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 Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun54393(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7048:6, offset: 0x013649d8, size: 267 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Store = (Flux).Store;
let value = _fun54397(Store);
value.displayName = 'SpotifyProtocolStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{SPOTIFY_SET_PROTOCOL_REGISTERED: function(a0) {
env0_5 = a0.isRegistered;
}});
(FileImportTrackerModule).fileFinishedImporting('modules/spotify/SpotifyProtocolStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_54394() { // fn#54394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7048:148, offset: 0x01364ae3, 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_54394_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun54397(a0) { // fn#54397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7048:356, offset: 0x01364b41, size: 68 bytes, params: 2, frame: 15
const SpotifyProtocolStore2 = SpotifyProtocolStore;
Inherits(SpotifyProtocolStore2, a0);
return CreateClass(SpotifyProtocolStore2, [{key: 'isProtocolRegistered', value: value_54399}]);
function SpotifyProtocolStore() { // fn#54398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7048:368, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, SpotifyProtocolStore);
const value3 = env1_3(SpotifyProtocolStore);
return env1_2(this, _isNativeReflectConstruct_54394() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_54399() { // fn#54399, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
}
}
global.__d(_fun54393, 6870, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 6870, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;