decord/source/modules/feedback/FeedbackOverrideStore.tsx

42 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16691
// Function ID: 16692
2026-07-29 08:29:29 +00:00
// Name: initialize
2026-08-25 06:04:03 +00:00
// Dependencies: [16690, 589, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 16691 (initialize)
2026-08-24 06:08:38 +00:00
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import optOutEligibilityCheck from "optOutEligibilityCheck" /* 16690 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
let closure_2 = {};
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class HotspotStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = HotspotStore.prototype;
prototype["initialize"] = function initialize() {
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
};
prototype["getFeedbackConfig"] = function getFeedbackConfig(ACTIVITY) {
return table[ACTIVITY];
};
HotspotStore.displayName = "FeedbackOverrideStore";
HotspotStore.persistKey = "feedbackOverrides";
2026-08-24 06:08:38 +00:00
const hotspotStore = new HotspotStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
FEEDBACK_OVERRIDE_SET: function handleSetFeedbackOverride(feedbackType) {
feedbackType = feedbackType.feedbackType;
const obj = {};
({ cooldown, chance } = feedbackType);
2026-08-24 06:08:38 +00:00
const merged = Object.assign(optOutEligibilityCheck.FeedbackConfig[feedbackType]);
2026-07-29 08:29:29 +00:00
obj.cooldown = cooldown;
obj.chance = chance;
closure_2[feedbackType] = obj;
2026-07-20 16:05:17 +00:00
},
FEEDBACK_OVERRIDE_CLEAR: function handleClearFeedbackOverride(arg0) {
2026-07-23 10:11:24 +00:00
delete tmp[tmp2];
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/feedback/FeedbackOverrideStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default hotspotStore;