decord/source/modules/devtools/design_toggles/DesignTogglesActions.tsx

30 lines
810 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 14727
// Function ID: 112241
2026-07-20 16:05:17 +00:00
// Name: toggle
2026-07-23 10:11:24 +00:00
// Dependencies: [5090, 686, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearAll
2026-07-24 07:16:23 +00:00
// Module 14727 (toggle)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
2026-07-21 06:55:02 +00:00
2026-07-20 16:05:17 +00:00
function toggle(toggle) {
let tmp = arg1;
if ("boolean" !== typeof arg1) {
2026-07-23 10:11:24 +00:00
tmp = !_isNativeReflectConstruct.get(toggle);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "DEV_TOOLS_DESIGN_TOGGLE_SET", toggle, value: tmp };
obj.dispatch(obj);
}
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/devtools/design_toggles/DesignTogglesActions.tsx");
2026-07-20 16:05:17 +00:00
export { toggle };
export const clearAll = function clearAll() {
2026-07-23 10:11:24 +00:00
for (const key10006 in _isNativeReflectConstruct.all()) {
2026-07-20 16:05:17 +00:00
let tmp = key10006;
2026-07-23 10:11:24 +00:00
let tmp2 = toggle;
let tmp3 = toggle(key10006, false);
continue;
2026-07-20 16:05:17 +00:00
}
};