import{z as c,b as u,K as v,J as o,h as r,y as p,r as m}from"./entry.30e55a5e.js";const f=c({emits:["failed","created"],setup(h,{emit:a}){const n=e=>{p({path:`/admin/identity-providers/${e.id}`})},d=e=>{a("failed",e)},t=u(null),l=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}}),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};
