import{u as l}from"./sidebar.vue_vue_type_script_lang.a371e2e8.js";import{m,k as c,b as p,p as f,h as e,N as v}from"./entry.731fa101.js";import"./components.client.e8e3e180.js";import{d as y}from"./component.6c997487.js";import{b}from"./enity-nav.3debeb1d.js";import"./LoginSVG.150727e9.js";import"./composables.3f41d4a8.js";const T=y({async setup(){const o=[{name:"General",icon:"fas fa-bars",urlSuffix:""}],n=m(),r=c(),t=p(null);try{t.value=await l().identityProvider.getOne(r.params.id)}catch{return f({path:"/admin/identity-providers"})}const d=a=>{n.success("The identity-provider was successfully updated.");const i=Object.keys(a);for(let s=0;s<i.length;s++)t.value[i[s]]=a[i[s]]},u=a=>{n.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"},[b(`/admin/identity-providers/${t.value.id}`,o,{prevLink:!0})]),e("div",[e(v,{onUpdated:d,onFailed:u,entity:t.value})])])}});export{T as default};
