import{a as s,h as r,q as p,I as u,r as c}from"./entry.e097670d.js";const f=s({props:{entity:{type:Object,required:!0}},emits:["updated","failed"],setup(t,{emit:n}){if(!t.entity)return()=>r("div",[]);const o=e=>{n("updated",e)},d=e=>{n("failed",e)},i=p(),a=()=>{switch(t.entity.protocol){case u.OAUTH2:{const e=c("OAuth2ProviderForm");return r(e,{entity:t.entity,apiUrl:i.$config.public.apiUrl,onUpdated:o,onFailed:d})}}return[]};return()=>r("div",{class:"row"},[a()])}});export{f as default};
