import { createSlice as i } from "../../../../node_modules/.pnpm/@reduxjs_toolkit@2.5.1_react-redux@9.2.0_@types_react@19.0.10_react@19.0.0_redux@5.0.1__react@19.0.0/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js";
const a = {
  isSidebarOpen: !1,
  isBuilderLeftPanelOpen: !0,
  activeBuilderRightPanel: null
}, n = i({
  name: "app",
  initialState: a,
  reducers: {
    setIsSidebarOpen: (e, l) => {
      e.isSidebarOpen = l.payload;
    },
    toggleBuilderLeftPanel: (e) => {
      e.isBuilderLeftPanelOpen = !e.isBuilderLeftPanelOpen;
    },
    toggleBuilderRightPanel: (e, l) => {
      e.activeBuilderRightPanel === l.payload ? e.activeBuilderRightPanel = null : e.activeBuilderRightPanel = l.payload;
    }
  }
}), { setIsSidebarOpen: r, toggleBuilderLeftPanel: d, toggleBuilderRightPanel: p } = n.actions;
export {
  n as appSlice,
  r as setIsSidebarOpen,
  d as toggleBuilderLeftPanel,
  p as toggleBuilderRightPanel
};
//# sourceMappingURL=app-slice.js.map
