40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
// Module ID: 16169
|
|
// Function ID: 16170
|
|
// Name: initialize
|
|
// Dependencies: [16168, 589, 709, 2]
|
|
|
|
// Module 16169 (initialize)
|
|
import { Store } from "initialize";
|
|
|
|
const require = arg1;
|
|
let closure_2 = {};
|
|
class HotspotStore extends Store {
|
|
}
|
|
const prototype = HotspotStore.prototype;
|
|
prototype["initialize"] = function initialize() {
|
|
|
|
};
|
|
prototype["getFeedbackConfig"] = function getFeedbackConfig(ACTIVITY) {
|
|
return table[ACTIVITY];
|
|
};
|
|
HotspotStore.displayName = "FeedbackOverrideStore";
|
|
HotspotStore.persistKey = "feedbackOverrides";
|
|
const hotspotStore = new HotspotStore(require("dispatcher"), {
|
|
FEEDBACK_OVERRIDE_SET: function handleSetFeedbackOverride(feedbackType) {
|
|
let chance;
|
|
let cooldown;
|
|
feedbackType = feedbackType.feedbackType;
|
|
const obj = {};
|
|
({ cooldown, chance } = feedbackType);
|
|
const merged = Object.assign(require(16168) /* optOutEligibilityCheck */.FeedbackConfig[feedbackType]);
|
|
obj.cooldown = cooldown;
|
|
obj.chance = chance;
|
|
closure_2[feedbackType] = obj;
|
|
},
|
|
FEEDBACK_OVERRIDE_CLEAR: function handleClearFeedbackOverride(arg0) {
|
|
delete tmp[tmp2];
|
|
}
|
|
});
|
|
const result = require("dispatcher").fileFinishedImporting("modules/feedback/FeedbackOverrideStore.tsx");
|
|
|
|
export default hotspotStore;
|