decord/source/stores/native/ShareStore.tsx

135 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 13328
// Function ID: 102289
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1194, 1348, 1838, 1906, 3947, 1849, 653, 1327, 8333, 480, 675, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 13328 (_isNativeReflectConstruct)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import expandLocation from "expandLocation";
import dispatcher from "dispatcher";
import set from "set";
import closure_11 from "_isNativeReflectConstruct";
import closure_12 from "_isNativeReflectConstruct";
import closure_13 from "_createForOfIteratorHelperLoose";
import closure_14 from "_isNativeReflectConstruct";
import closure_15 from "_isNativeReflectConstruct";
import closure_16 from "_isNativeReflectConstruct";
import { AppStates } from "ME";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
function handleTokenUpdated(token) {
token = token.token;
return false;
}
2026-07-23 10:11:24 +00:00
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class ShareStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_6(this, ShareStore);
obj = outer1_9(ShareStore);
tmp2 = outer1_8;
if (outer1_18()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_9;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_9(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(ShareStore, Store);
const items = [
{
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
this.waitFor(outer1_11, outer1_12, outer1_13, outer1_14, outer1_15, outer1_16);
2026-07-20 16:05:17 +00:00
}
}
];
return callback(ShareStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "ShareStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
CHANNEL_SELECT: function handleChannelSelect(arg0) {
2026-07-23 10:11:24 +00:00
let closure_3;
let closure_4;
2026-07-20 16:05:17 +00:00
({ guildId: closure_3, channelId: closure_4 } = arg0);
return false;
},
LOGOUT: function handleLogout() {
2026-07-23 10:11:24 +00:00
importDefault(8333).setSelectedChannel(null, null);
const obj = importDefault(8333);
const obj2 = importDefault(8333);
const result = obj2.setAuthenticationToken(null, importDefault(675).getSuperPropertiesBase64());
let c5 = null;
2026-07-20 16:05:17 +00:00
return false;
},
REGISTER_SUCCESS: handleTokenUpdated,
LOGIN_SUCCESS: handleTokenUpdated,
UPDATE_TOKEN: handleTokenUpdated,
START_SESSION: function handleStartSession() {
const token2 = token.getToken();
return false;
},
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
state = state.state;
if (state === AppStates.INACTIVE) {
2026-07-23 10:11:24 +00:00
if (null != c4) {
guild = guild.getGuild(c3);
2026-07-20 16:05:17 +00:00
let json = null;
if (null != guild) {
const _JSON = JSON;
json = JSON.stringify(guild);
}
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(channelId.getChannelId());
2026-07-20 16:05:17 +00:00
let json1 = null;
if (null != channel) {
let obj = {};
const merged = Object.assign(channel.toJS());
let recipients = channel.recipients;
if (null == recipients) {
recipients = [];
}
const mapped = recipients.map(getUser.getUser);
2026-07-23 10:11:24 +00:00
obj["recipients"] = mapped.filter(require(1327) /* isDiscordFrontendDevelopment */.isNotNullish);
2026-07-20 16:05:17 +00:00
json1 = JSON.stringify(obj);
}
2026-07-23 10:11:24 +00:00
importDefault(8333).setSelectedChannel(json1, json);
c3 = null;
c4 = null;
const obj3 = importDefault(8333);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if (null != c5) {
2026-07-20 16:05:17 +00:00
obj = { client_app_state: state };
2026-07-23 10:11:24 +00:00
const result = require(480) /* isThrottled */.extendSuperProperties(obj);
const obj4 = require(480) /* isThrottled */;
const obj6 = importDefault(8333);
const result1 = obj6.setAuthenticationToken(c5, importDefault(675).getSuperPropertiesBase64());
2026-07-20 16:05:17 +00:00
if (state === AppStates.INACTIVE) {
2026-07-23 10:11:24 +00:00
c5 = null;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj7 = importDefault(675);
2026-07-20 16:05:17 +00:00
}
return false;
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/native/ShareStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;