73 lines
2.4 KiB
TypeScript
73 lines
2.4 KiB
TypeScript
// Module ID: 13289
|
|
// Function ID: 13290
|
|
// Name: initialize
|
|
// Dependencies: [13247, 1342, 589, 709, 2]
|
|
|
|
// Module 13289 (initialize)
|
|
import set from "set" /* 2 */;
|
|
import initializeDefault from "initialize" /* 589 */;
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
import b64ToProto from "b64ToProto" /* 1342 */;
|
|
import create from "create" /* 13247 */;
|
|
|
|
let DeclarativeSettings = create.DeclarativeSettings;
|
|
let closure_2 = DeclarativeSettings.create();
|
|
let c3 = false;
|
|
const PersistedStore = initializeDefault.PersistedStore;
|
|
class NotifSettingsProtoStore extends PersistedStore {
|
|
}
|
|
const prototype = NotifSettingsProtoStore.prototype;
|
|
prototype["initialize"] = function initialize(proto) {
|
|
proto = undefined;
|
|
if (proto != null) {
|
|
proto = proto.proto;
|
|
}
|
|
if (null != proto) {
|
|
const b64ToProtoResult = b64ToProto.b64ToProto(create.DeclarativeSettings, proto);
|
|
if (null != b64ToProtoResult) {
|
|
closure_2 = b64ToProtoResult;
|
|
}
|
|
const obj = b64ToProto;
|
|
}
|
|
};
|
|
prototype["getState"] = function getState() {
|
|
const obj = { proto: b64ToProto.protoToB64(create.DeclarativeSettings, closure_2) };
|
|
return obj;
|
|
};
|
|
Object.defineProperty(prototype, "hasLoaded", {
|
|
get: function hasLoaded() {
|
|
return c3;
|
|
},
|
|
set: undefined
|
|
});
|
|
Object.defineProperty(prototype, "settings", {
|
|
get: function settings() {
|
|
return closure_2;
|
|
},
|
|
set: undefined
|
|
});
|
|
prototype["getSetting"] = function getSetting(arg0) {
|
|
return values.values[arg0];
|
|
};
|
|
NotifSettingsProtoStore.displayName = "NotifSettingsProtoStore";
|
|
NotifSettingsProtoStore.persistKey = "NotifSettingsProtoStore-Cache";
|
|
const notifSettingsProtoStore = new NotifSettingsProtoStore(dispatcherDefault, {
|
|
CONNECTION_OPEN: function handleConnectionOpen(notificationSettings) {
|
|
const declarativeSettings = notificationSettings.notificationSettings.declarativeSettings;
|
|
c3 = true;
|
|
},
|
|
NOTIFICATION_SETTINGS_UPDATE: function handleNotificationSettingsUpdate(settings) {
|
|
const declarativeSettings = settings.settings.declarativeSettings;
|
|
if (null == declarativeSettings) {
|
|
return false;
|
|
}
|
|
},
|
|
LOGOUT: function handleLogout() {
|
|
const DeclarativeSettings = create.DeclarativeSettings;
|
|
closure_2 = DeclarativeSettings.create();
|
|
c3 = false;
|
|
}
|
|
});
|
|
const result = set.fileFinishedImporting("modules/notifications/settings/NotifSettingsProtoStore.tsx");
|
|
|
|
export default notifSettingsProtoStore;
|