import{x as c,b as u,E as p,I as o,h as r,p as v,r as m}from"./entry.731fa101.js";const f=c({emits:["failed","created"],setup(h,{emit:a}){const n=e=>{v({path:`/admin/identity-providers/${e.id}`})},d=e=>{a("failed",e)},t=u(null),l=p({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}}),i=m("OAuth2ProviderForm"),s=()=>{switch(t.value){case o.OAUTH2:return[r("hr"),r(i,{onCreated:n,onFailed:d})]}return[]};return()=>r("div",[l,s()])}});export{f as default};
