2026-08-10 06:55:34 +00:00
|
|
|
// Module ID: 14721
|
|
|
|
|
// Function ID: 14722
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: toggleLabFeature
|
2026-08-08 06:10:11 +00:00
|
|
|
// Dependencies: [8915, 709, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: toggleLabFeature
|
|
|
|
|
|
2026-08-10 06:55:34 +00:00
|
|
|
// Module 14721 (toggleLabFeature)
|
2026-07-29 08:29:29 +00:00
|
|
|
import getUserAgnosticState from "getUserAgnosticState";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
let closure_3 = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").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-07-29 08:29:29 +00:00
|
|
|
enabled = !getUserAgnosticState.get(ICYMI_LAB_FEATURE);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = importDefault(709);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { type: "LAB_FEATURE_TOGGLE", labFeature: ICYMI_LAB_FEATURE, enabled };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
};
|