decord/source/modules/hotspot/HotspotActionCreators.tsx

30 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 7268
// Function ID: 7269
// Name: HotspotActionCreators
// Dependencies: [1074, 1242, 573, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearHotspotOverride, hideHotspot, setHotspotOverride
// Module 7268 (HotspotActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/hotspot/HotspotActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const hideHotspot = function hideHotspot(GUILD_CAP_INLINE_UPSELL) {
2026-08-24 06:08:38 +00:00
importDefault = GUILD_CAP_INLINE_UPSELL;
AnalyticsUtilsDefault.track(AnalyticEvents.HOTSPOT_HIDDEN, { hotspot_location: GUILD_CAP_INLINE_UPSELL });
const obj2 = { hotspot_location: GUILD_CAP_INLINE_UPSELL };
DispatcherDefault.wait(() => {
DispatcherDefault.dispatch({ type: "HOTSPOT_HIDE", location: _location });
2026-07-20 16:05:17 +00:00
});
};
export const setHotspotOverride = function setHotspotOverride(location, enabled) {
DispatcherDefault.dispatch({ type: "HOTSPOT_OVERRIDE_SET", location, enabled });
2026-07-20 16:05:17 +00:00
};
export const clearHotspotOverride = function clearHotspotOverride(location) {
DispatcherDefault.dispatch({ type: "HOTSPOT_OVERRIDE_CLEAR", location });
2026-07-20 16:05:17 +00:00
};