import{D as u,u as c,t as f}from"./auth.8c936e9a.js";import{I as o}from"./entry.0b5898f4.js";import{n as v}from"./nuxt-link.a91ddf68.js";import"./app.config.5ff5ca90.js";import{f as h,r as C,h as r,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 S=h({emits:["failed","created"],setup(I,{emit:a}){const n=e=>{v({path:`/admin/identity-providers/${e.id}`})},i=e=>{a("failed",e)},t=C(null),s=u({labelContent:"Protocol",options:[{id:o.OAUTH2,value:"OAuth2"},{id:o.OIDC,value:"OIDC"},{id:o.LDAP,value:"LDAP"}],value:t,onChange(e){t.value=e}}),d=c(),{realmManagementId:l}=f(d),m=A("OAuth2ProviderForm"),p=()=>{switch(t.value){case o.OAUTH2:return[r("hr"),r(m,{onCreated:n,onFailed:i,realmId:l})]}return[]};return()=>r("div",[s,p()])}});export{S as default};
