// Module ID: 13684 // Function ID: 13685 // Name: initialize // Dependencies: [13685, 1223, 504, 573, 2] // Module 13684 (initialize) import set from "set" /* 2 */; import initializeDefault from "initialize" /* 504 */; import dispatcherDefault from "dispatcher" /* 573 */; import b64ToProto from "b64ToProto" /* 1223 */; import create from "create" /* 13685 */; 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; } }, DECLARATIVE_NOTIFICATION_SETTINGS_UPDATE: function handleDeclarativeNotificationSettingsUpdate(declarativeSettings) { declarativeSettings = declarativeSettings.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;