import{S as _,_ as f,a as h}from"./SystemHeader-BS-5z581.js";import{ay as y,aQ as x,aO as r,aA as v,aD as b,aE as i,aW as E,aI as e,b2 as l,aF as g,b1 as w,aH as a,ce as n,cf as k}from"./admin-DgPvPHD7.js";import"./ResetPassword.vue_vue_type_script_setup_true_lang-Bwq0Pu2j.js";import"./SettingAPIKeyDialog.vue_vue_type_script_setup_true_lang-BgcuZbaB.js";import"./index-DDzHjusB.js";const B={class:"app-layout",style:{display:"flex","flex-direction":"column",height:"100vh"}},C={style:{width:"240px","border-right":"1px solid #e5e7eb"}},S={style:{flex:"1",overflow:"auto"}},D=y({__name:"MainLayout",setup(I){const s=x(),{params:{folderId:c},query:{from:t}}=s;r(()=>c==="shared"||t==="systemShare"||t==="systemManage"||s.path.includes("resource-management"));const{user:o,theme:p}=v(),d=r(()=>p.isDefaultTheme());return(m,M)=>{const u=b("el-alert");return i(),E("div",B,[e("div",{class:n(["app-header",d.value?"":"custom-header"]),style:{position:"static"}},[l(o).isExpire()?(i(),g(u,{key:0,title:m.$t("layout.isExpire"),type:"warning",class:"border-b","show-icon":"",closable:!1},null,8,["title"])):w("",!0),a(_)],2),e("div",{class:n(["app-main",l(o).isExpire()?"isExpire":""]),style:{display:"flex",flex:"1",overflow:"hidden"}},[e("div",C,[a(f)]),e("div",S,[a(h)])],2)])}}}),T=k(D,[["__scopeId","data-v-3be8e4ba"]]);export{T as default};