import{h as r,J as a,r as s}from"./entry.30e55a5e.js";import{d as u}from"./component.bb17d696.js";import"./composables.a8da7a35.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};
