import"./rolldown-runtime-BM3Ffeng.js";import{A as e,M as t,j as n,ot as r}from"./element-plus-vendor-BF9PNysW.js";import{A as i,I as a,N as o,O as s,P as c,Pt as l,Xt as u,et as d,ht as f,k as p,nt as m,x as h}from"./vue-vendor-DMUmTARL.js";import{lr as g,rr as _}from"./icons-vendor-Db5MGAkr.js";import{t as v}from"./_plugin-vue_export-helper-CWyGVBf-.js";var y=v(a({__name:`SsoCreateDropdown`,props:{templates:{},buttonText:{default:`新增登录方式`},buttonType:{default:`primary`},placement:{default:`bottom-end`},showBlank:{type:Boolean,default:!0}},emits:[`blank`,`select-template`],setup(a,{emit:v}){let y=v;return(v,b)=>{let x=r,S=n,C=t,w=e;return d(),s(w,{placement:a.placement,trigger:`click`},{dropdown:f(()=>[c(C,null,{default:f(()=>[a.showBlank?(d(),s(S,{key:0,onClick:b[0]||=e=>y(`blank`)},{default:f(()=>[...b[1]||=[o(`空白新增`,-1)]]),_:1})):p(``,!0),(d(!0),i(h,null,m(a.templates,e=>(d(),s(S,{key:e.provider,onClick:t=>y(`select-template`,e.provider)},{default:f(()=>[o(u(e.name),1)]),_:2},1032,[`onClick`]))),128))]),_:1})]),default:f(()=>[c(x,{type:a.buttonType,icon:l(_),class:`sso-create-dropdown__button`},{default:f(()=>[o(u(a.buttonText)+` `,1),c(l(g),{class:`ml-1 h-4 w-4`})]),_:1},8,[`type`,`icon`])]),_:1},8,[`placement`])}}}),[[`__scopeId`,`data-v-f2215129`]]);export{y as default};