import"./nuxt-link.a91ddf68.js";import{y as m}from"./auth.8c936e9a.js";import"./app.config.5ff5ca90.js";import{I as p}from"./entry.0b5898f4.js";import{h as o,q as a}from"./runtime-core.esm-bundler.24b58585.js";import"./composables.050e3231.js";import"./utils.61cc85c6.js";import"./layout.1eaf47bc.js";import"./page.16487999.js";import"./_plugin-vue_export-helper.c27b6911.js";const O=m({props:{entity:{type:Object,required:!0}},emits:["updated","failed"],setup(e,{emit:r}){if(!e.entity)return()=>o("div",[]);const i=t=>{r("updated",t)},n=t=>{r("failed",t)},d=()=>{switch(e.entity.protocol){case p.OAUTH2:{const t=a("OAuth2ProviderForm");return o(t,{entity:e.entity,onUpdated:i,onFailed:n})}}return[]};return()=>o("div",{class:"row"},[d()])}});export{O as default};
