import{u as l}from"./api.31efd825.js";import{x as m,k as c,b as p,y as f,h as t,N as v}from"./entry.83e061d6.js";import"./components.client.581405d2.js";import{d as y}from"./component.13bf56b8.js";import{b}from"./enity-nav.b8302727.js";import"./sidebar.vue_vue_type_script_lang.36571436.js";import"./LoginSVG.06b0ff46.js";import"./composables.633e7485.js";const D=y({async setup(){const o=[{name:"General",icon:"fas fa-bars",urlSuffix:""}],n=m(),r=c(),e=p(null);try{e.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++)e.value[i[s]]=a[i[s]]},u=a=>{n.warning(a.message)};return()=>t("div",[t("h1",{class:"title no-border mb-3"},[t("i",{class:"fa fa-atom me-1"}),e.value.name,t("span",{class:"sub-title ms-1"},["Details"])]),t("div",{class:"mb-3"},[b(`/admin/identity-providers/${e.value.id}`,o,{prevLink:!0})]),t("div",[t(v,{onUpdated:d,onFailed:u,entity:e.value})])])}});export{D as default};
