import{f as m,I as u,B as y,_ as c,l as o,o as a,m as r}from"./entry.2l8qV6vk.js";const f=m({components:{AIdentityProviderLdapForm:u},props:{entity:{type:Object,required:!0}},emits:["updated","failed"],setup(e,{emit:n}){const d=t=>{n("updated",t)},i=t=>{n("failed",t)};return{apiUrl:y().public.apiUrl,entity:e.entity,handleUpdated:d,handleFailed:i}}},"$okrNJVjSQE");function F(e,n,d,i,l,t){const p=o("AIdentityProviderLdapForm"),s=o("AIdentityProviderOAuth2Form");return e.entity.protocol==="ldap"?(a(),r(p,{key:0,entity:e.entity,"realm-id":e.entity.realm_id,onUpdated:e.handleUpdated,onFailed:e.handleFailed},null,8,["entity","realm-id","onUpdated","onFailed"])):(a(),r(s,{key:1,"api-url":e.apiUrl,entity:e.entity,"realm-id":e.entity.realm_id,onUpdated:e.handleUpdated,onFailed:e.handleFailed},null,8,["api-url","entity","realm-id","onUpdated","onFailed"]))}const h=c(f,[["render",F]]);export{h as default};
