import{u}from"./api.9517b989.js";import{x as d,k as c,b as p,y as f,h as a,N as v}from"./entry.30e55a5e.js";import"./components.client.df015f1b.js";import{d as y}from"./component.bb17d696.js";import{b}from"./enity-nav.0b568374.js";import"./sidebar.vue_vue_type_script_lang.1e604465.js";import"./LoginSVG.e12a909b.js";import"./composables.a8da7a35.js";const F=y({async setup(){const o=[{name:"General",icon:"fas fa-bars",urlSuffix:""}],n=d(),r=c(),e=p(null);try{e.value=await u().realm.getOne(r.params.id)}catch{return f({path:"/admin/realms"})}const l=t=>{n.success("The realm was successfully updated.");const i=Object.keys(t);for(let s=0;s<i.length;s++)e.value[i[s]]=t[i[s]]},m=t=>{n.warning(t.message)};return()=>a("div",[a("h1",{class:"title no-border mb-3"},[a("i",{class:"fa fa-university me-1"}),e.value.name,a("span",{class:"sub-title ms-1"},["Details"])]),a("div",{class:"mb-2"},[b(`/admin/realms/${e.value.id}`,o,{prevLink:!0})]),a("div",[a(v,{onUpdated:l,onFailed:m,entity:e.value})])])}});export{F as default};
