import{u}from"./sidebar.vue_vue_type_script_lang.a371e2e8.js";import{m as d,k as c,b as p,p as f,h as a,N as v}from"./entry.731fa101.js";import"./components.client.e8e3e180.js";import{d as b}from"./component.6c997487.js";import{b as h}from"./enity-nav.3debeb1d.js";import"./LoginSVG.150727e9.js";import"./composables.3f41d4a8.js";const D=b({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-robot me-1"}),e.value.id,a("span",{class:"sub-title ms-1"},["Details"])]),a("div",{class:"mb-2"},[h(`/admin/realms/${e.value.id}`,o,{prevLink:!0})]),a("div",[a(v,{onUpdated:l,onFailed:m,entity:e.value})])])}});export{D as default};
