import{p as m,b as p,D as v,I as o,m as h,s as f,h as a,l as C,r as A}from"./entry.e097670d.js";const P=m({emits:["failed","created"],setup(I,{emit:r}){const n=e=>{C({path:`/admin/identity-providers/${e.id}`})},s=e=>{r("failed",e)},t=p(null),d=v({labelContent:"Protocol",options:[{id:o.OAUTH2,value:"OAuth2"},{id:o.OIDC,value:"OIDC"},{id:o.LDAP,value:"LDAP"}],value:t,onChange(e){t.value=e}}),l=h(),{realmManagementId:i}=f(l),c=A("OAuth2ProviderForm"),u=()=>{switch(t.value){case o.OAUTH2:return[a("hr"),a(c,{onCreated:n,onFailed:s,realmId:i})]}return[]};return()=>a("div",[d,u()])}});export{P as default};
