import{u as l}from"./api.9517b989.js";import{x as m,k as c,b as p,y as f,h as t,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 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};
