decord/source/modules/conversations/TopicalNavigationSurveyStore.tsx

44 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8712
// Function ID: 8713
2026-07-29 08:29:29 +00:00
// Name: initialize
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 8712 (initialize)
2026-08-24 06:08:38 +00:00
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = 0;
2026-08-24 06:08:38 +00:00
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
2026-07-29 08:29:29 +00:00
class TopicalNavigationSurveyStore extends DeviceSettingsStore {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = TopicalNavigationSurveyStore.prototype;
prototype["initialize"] = function initialize(channelsExposedCount) {
let num;
if (channelsExposedCount != null) {
num = channelsExposedCount.channelsExposedCount;
}
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
};
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";
2026-08-24 06:08:38 +00:00
const topicalNavigationSurveyStore = new TopicalNavigationSurveyStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
TOPICAL_NAVIGATION_ENTRYPOINT_IMPRESSION: function handleTopicalNavigationEntrypointImpression() {
2026-07-29 08:29:29 +00:00
closure_0 = closure_0 + 1;
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/conversations/TopicalNavigationSurveyStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default topicalNavigationSurveyStore;
2026-07-20 16:05:17 +00:00
export const MIN_EXPOSURES_FOR_SURVEY = 3;