import{r as e}from"./rolldown-runtime-DIIn1E2Q.js";import{Bt as t,O as n,R as r,Rt as i,Z as a,et as o,j as s,kt as c,q as l,rt as u,v as d,vt as f}from"./vendor-vue-core-BdhYaYlO.js";import{n as p}from"./types-Bc3W4AWd.js";import{n as m,t as h}from"./envUtil-k-MziUGm.js";var g={class:`flex w-full grow items-center justify-center overflow-auto`},_=r({__name:`BaseViewTemplate`,props:{dark:{type:Boolean,default:!1}},setup(e){let r={color:`rgba(0, 0, 0, 0)`,symbolColor:`#d4d4d4`},_={color:`rgba(0, 0, 0, 0)`,symbolColor:`#171717`},v=c(null);return a(async()=>{p&&(await l(),h().changeTheme({...e.dark?r:_,height:v.value?.getBoundingClientRect().height??0}))}),(e,r)=>(o(),s(`div`,{class:t([`flex h-svh w-screen flex-col font-sans`,[e.dark?`dark-theme bg-neutral-900 text-neutral-300`:`bg-neutral-300 text-neutral-900`]])},[f(n(`div`,{ref_key:`topMenuRef`,ref:v,class:`app-drag h-(--comfy-topbar-height) w-full`},null,512),[[d,i(m)()]]),n(`div`,g,[u(e.$slots,`default`)])],2))}});export{_ as t};
//# sourceMappingURL=BaseViewTemplate-BPNpLti5.js.map