2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 15566
|
|
|
|
|
// Function ID: 15567
|
|
|
|
|
// Name: LabFeatureActions
|
|
|
|
|
// Dependencies: [8381, 573, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: toggleLabFeature
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 15566 (LabFeatureActions)
|
|
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
|
|
|
import LabFeatureStore from "LabFeatureStore" /* 8381 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
let closure_3 = {};
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/labs/LabFeatureActions.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
enabled = !LabFeatureStore.get(ICYMI_LAB_FEATURE);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
DispatcherDefault.dispatch({ type: "LAB_FEATURE_TOGGLE", labFeature: ICYMI_LAB_FEATURE, enabled });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|