import{h as r,J as a,r as s}from"./entry.83e061d6.js";import{d as u}from"./component.13bf56b8.js";import"./composables.633e7485.js";const m=u({props:{entity:{type:Object,required:!0}},emits:["updated","failed"],setup(e,{emit:o}){if(!e.entity)return()=>r("div",[]);const n=t=>{o("updated",t)},d=t=>{o("failed",t)},i=()=>{switch(e.entity.protocol){case a.OAUTH2:{const t=s("OAuth2ProviderForm");return r(t,{entity:e.entity,onUpdated:n,onFailed:d})}}return[]};return()=>r("div",{class:"row"},[i()])}});export{m as default};
