import{aJ as e}from"./vendor-element-plus.js?ver=3.1.0";import{_ as t,I as s}from"./fc-bits-ui.js?ver=3.1.0";import{r as n,c as a,o,L as i,d as r,F as c,w as l,b as p,n as d,O as u,P as m}from"./vendor.js?ver=3.1.0";const b={class:"fcrm_settings_topbar"},g={key:0,class:"fcrm_settings_topbar--breadcrumb"},_={key:1},f={key:2,class:"fcrm_settings_topbar--actions"};const M=t({name:"SettingsHeader",components:{Icons:s},inject:["toggleMenu","settingsState"],computed:{isMenuOpen(){return this.settingsState&&this.settingsState.isMenuOpen}},props:{title:{type:String,default:""}}},[["render",function(t,s,M,v,S,O){const $=n("Icons"),h=e;return o(),a("div",b,[t.$slots.breadcrumb?(o(),a("div",g,[r(h,{enterable:!1,transition:"none",content:O.isMenuOpen?t.$t("Close Sidebar"):t.$t("Open Sidebar"),placement:"right"},{default:l(()=>[p("span",{class:d(["fcrm_settings_menu_collapsable--btn",{"is-collapsed":O.isMenuOpen}]),onClick:s[0]||(s[0]=(...e)=>O.toggleMenu&&O.toggleMenu(...e))},[r($,{"icon-name":"sidebar"})],2)],void 0),_:1},8,["content"]),c(t.$slots,"breadcrumb")])):(o(),a("h3",_,[r(h,{enterable:!1,transition:"none",content:O.isMenuOpen?t.$t("Close Sidebar"):t.$t("Open Sidebar"),placement:"right"},{default:l(()=>[p("span",{class:d(["fcrm_settings_menu_collapsable--btn",{"is-collapsed":O.isMenuOpen}]),onClick:s[1]||(s[1]=(...e)=>O.toggleMenu&&O.toggleMenu(...e))},[r($,{"icon-name":"sidebar"})],2)],void 0),_:1},8,["content"]),u(" "+m(M.title)+" ",1),c(t.$slots,"afterTitle")])),t.$slots.actions?(o(),a("div",f,[c(t.$slots,"actions")])):i("",!0)])}]]);export{M as S};
