Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
25 lines
782 B
TypeScript
25 lines
782 B
TypeScript
// Module ID: 15536
|
|
// Function ID: 15537
|
|
// Name: LabFeatureActions
|
|
// Dependencies: [8354, 573, 2]
|
|
// Exports: toggleLabFeature
|
|
|
|
// Module 15536 (LabFeatureActions)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import LabFeatureStore from "LabFeatureStore" /* 8354 */;
|
|
|
|
let closure_3 = {};
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/labs/LabFeatureActions.tsx");
|
|
|
|
export const toggleLabFeature = function toggleLabFeature(ICYMI_LAB_FEATURE, arg1) {
|
|
let tmp = arg1;
|
|
if (arg1 === undefined) {
|
|
tmp = closure_3;
|
|
}
|
|
let enabled = tmp.enabled;
|
|
if (enabled === undefined) {
|
|
enabled = !LabFeatureStore.get(ICYMI_LAB_FEATURE);
|
|
}
|
|
DispatcherDefault.dispatch({ type: "LAB_FEATURE_TOGGLE", labFeature: ICYMI_LAB_FEATURE, enabled });
|
|
};
|