Files
discord-decomp/sources/modules/hotspot/HotspotActionCreators.tsx
T
2026-07-27 16:20:00 +03:00

35 lines
2.4 KiB
TypeScript

/* Metro module 6827; source: modules/hotspot/HotspotActionCreators.tsx; dependencies: [661, 683, 694, 2] */
function _fun53661(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7005:6, offset: 0x01352a15, size: 144 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hotspot/HotspotActionCreators.tsx');
exports.hideHotspot = hideHotspot;
exports.setHotspotOverride = setHotspotOverride;
exports.clearHotspotOverride = clearHotspotOverride;
}
function hideHotspot(a0) { // fn#53662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7005:210, offset: 0x01352aa5, size: 94 bytes, params: 2, frame: 18
const env0_0 = a0;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const HOTSPOT_HIDDEN = AnalyticEvents.HOTSPOT_HIDDEN;
Reflect.apply(track, defaultImport, [HOTSPOT_HIDDEN, {hotspot_location: a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun53663);
}
function setHotspotOverride(a0, a1) { // fn#53664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7005:382, offset: 0x01352b3f, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HOTSPOT_OVERRIDE_SET', location: a0,
enabled: a1});
}
function clearHotspotOverride(a0) { // fn#53665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7005:508, offset: 0x01352b7e, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HOTSPOT_OVERRIDE_CLEAR', location: a0});
}
function _fun53663() { // fn#53663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7005:301, offset: 0x01352b03, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HOTSPOT_HIDE', location: env0_0});
}