import{h as r,I as a,r as s}from"./entry.731fa101.js";import{d as u}from"./component.6c997487.js";import"./composables.3f41d4a8.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};
