import{u as l}from"./api.160776dd.js";import{a as p,j as c,k as f,b as v,l as i,m as y,s as b,h as e,N as h}from"./entry.e097670d.js";import{i as g}from"./utils.c307b373.js";/* empty css                    */import{b as x}from"./enity-nav.bde0d636.js";import{u as N}from"./object.62d64729.js";import"./nuxt-link.1a4e25e4.js";const A=p({async setup(){const r=[{name:"General",icon:"fas fa-bars",urlSuffix:""}],s=c(),o=f(),t=v(null);try{t.value=await l().identityProvider.getOne(o.params.id)}catch{return i({path:"/admin/identity-providers"})}const n=y(),{realmManagement:d}=b(n);if(!g(d.value,t.value.realm_id))return i({path:"/admin/identity-providers"});const u=a=>{s.success("The identity-provider was successfully updated."),N(t,a)},m=a=>{s.warning(a.message)};return()=>e("div",[e("h1",{class:"title no-border mb-3"},[e("i",{class:"fa fa-atom me-1"}),t.value.name,e("span",{class:"sub-title ms-1"},["Details"])]),e("div",{class:"mb-3"},[x(`/admin/identity-providers/${t.value.id}`,r,{prevLink:!0})]),e("div",[e(h,{onUpdated:u,onFailed:m,entity:t.value})])])}});export{A as default};
