43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
// Module ID: 7908
|
|
// Function ID: 7909
|
|
// Name: initialize
|
|
// Dependencies: [504, 573, 2]
|
|
|
|
// Module 7908 (initialize)
|
|
import initializeDefault from "initialize" /* 504 */;
|
|
import dispatcherDefault from "dispatcher" /* 573 */;
|
|
|
|
let c0 = 0;
|
|
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
|
|
class TopicalNavigationSurveyStore extends DeviceSettingsStore {
|
|
}
|
|
const prototype = TopicalNavigationSurveyStore.prototype;
|
|
prototype["initialize"] = function initialize(channelsExposedCount) {
|
|
let num;
|
|
if (channelsExposedCount != null) {
|
|
num = channelsExposedCount.channelsExposedCount;
|
|
}
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
};
|
|
prototype["shouldTriggerOnNextExposure"] = function shouldTriggerOnNextExposure() {
|
|
return c0 >= 2;
|
|
};
|
|
prototype["getState"] = function getState() {
|
|
return { channelsExposedCount: c0 };
|
|
};
|
|
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
|
|
return { channelsExposedCount: c0 };
|
|
};
|
|
TopicalNavigationSurveyStore.displayName = "TopicalNavigationSurveyStore";
|
|
TopicalNavigationSurveyStore.persistKey = "TopicalNavigationSurveyStore";
|
|
const topicalNavigationSurveyStore = new TopicalNavigationSurveyStore(dispatcherDefault, {
|
|
TOPICAL_NAVIGATION_ENTRYPOINT_IMPRESSION: function handleTopicalNavigationEntrypointImpression() {
|
|
closure_0 = closure_0 + 1;
|
|
}
|
|
});
|
|
const result = require("set").fileFinishedImporting("modules/conversations/TopicalNavigationSurveyStore.tsx");
|
|
|
|
export default topicalNavigationSurveyStore;
|
|
export const MIN_EXPOSURES_FOR_SURVEY = 3;
|