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";
var a = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.LAYER = "layer", e))(a || {});
const t = {
  isSidebarOpen: !1,
  isBuilderLeftPanelOpen: !0,
  activeBuilderRightPanel: null
}, n = i({
  name: "app",
  initialState: t,
  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: d, toggleBuilderLeftPanel: p, toggleBuilderRightPanel: s } = n.actions;
export {
  a as BuilderRightPanelType,
  n as appSlice,
  d as setIsSidebarOpen,
  p as toggleBuilderLeftPanel,
  s as toggleBuilderRightPanel
};
//# sourceMappingURL=app-slice.js.map
