import{p as a,_ as s,u as e,d as t}from"./index-mv7arXuk.js";import{R as i,y as l,Q as o,f as r}from"./element-plus-DSMJnpwa.js";/* empty css                    *//* empty css                        *//* empty css               */import{a as n,b as c}from"./auth-D50JSJRo.js";import{B as p,g as d,H as h,L as m,M as g,O as u,P as f,Y as w,u as b,c as v}from"./vue-vendor-DZekML78.js";import"./utils-cPVb2Haz.js";const x=["src"],y={id:"git-user-binding"},k={id:"authlist",class:"user-bind"},_={class:"git-other-login-icon"},j={class:"git-other-login-icon"},C={class:"git-other-login-icon"},I={class:"git-other-login-icon"},G={class:"git-other-login-icon"},$=t(p({__name:"thirdParty",props:{auths:a.any.isRequired},setup(a){const{proxy:t}=d(),p=a,$=v(()=>p.auths),M=a=>{c(a,e().tenantId).then(a=>{200===a.code?window.location.href=a.data:t?.$modal.msgError(a.msg)})};return(a,e)=>{const c=i,p=l,d=o,v=s;return h(),m("div",null,[g(d,{data:b($),border:"",style:{width:"100%",height:"100%","font-size":"14px"}},{default:u(()=>[g(c,{label:"序号",width:"50",type:"index"}),g(c,{label:"绑定账号平台",width:"140",align:"center",prop:"source","show-overflow-tooltip":""}),g(c,{label:"头像",width:"120",align:"center",prop:"avatar"},{default:u(a=>[f("img",{src:a.row.avatar,style:{width:"45px",height:"45px"}},null,8,x)]),_:1}),g(c,{label:"系统账号",width:"180",align:"center",prop:"userName","show-overflow-tooltip":!0}),g(c,{label:"绑定时间",width:"180",align:"center",prop:"createTime"}),g(c,{label:"操作",width:"80",align:"center","class-name":"small-padding fixed-width"},{default:u(a=>[g(p,{size:"small",type:"text",onClick:s=>{return e=a.row,void r.confirm('您确定要解除"'+e.source+'"的账号绑定吗？').then(()=>n(e.id)).then(a=>{200===a.code?(t?.$modal.msgSuccess("解绑成功"),t?.$tab.refreshPage()):t?.$modal.msgError(a.msg)}).catch(()=>{});var e}},{default:u(()=>[...e[5]||(e[5]=[w("解绑",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),f("div",y,[e[11]||(e[11]=f("h4",{class:"provider-desc"},"你可以绑定以下第三方帐号",-1)),f("div",k,[f("a",{class:"third-app",href:"#",title:"使用 微信 账号授权登录",onClick:e[0]||(e[0]=a=>M("wechat"))},[f("div",_,[g(v,{"icon-class":"wechat"})]),e[6]||(e[6]=f("span",{class:"app-name"},"WeiXin",-1))]),f("a",{class:"third-app",href:"#",title:"使用 MaxKey 账号授权登录",onClick:e[1]||(e[1]=a=>M("maxkey"))},[f("div",j,[g(v,{"icon-class":"maxkey"})]),e[7]||(e[7]=f("span",{class:"app-name"},"MaxKey",-1))]),f("a",{class:"third-app",href:"#",title:"使用 TopIam 账号授权登录",onClick:e[2]||(e[2]=a=>M("topiam"))},[f("div",C,[g(v,{"icon-class":"topiam"})]),e[8]||(e[8]=f("span",{class:"app-name"},"TopIam",-1))]),f("a",{class:"third-app",href:"#",title:"使用 Gitee 账号授权登录",onClick:e[3]||(e[3]=a=>M("gitee"))},[f("div",I,[g(v,{"icon-class":"gitee"})]),e[9]||(e[9]=f("span",{class:"app-name"},"Gitee",-1))]),f("a",{class:"third-app",href:"#",title:"使用 GitHub 账号授权登录",onClick:e[4]||(e[4]=a=>M("github"))},[f("div",G,[g(v,{"icon-class":"github"})]),e[10]||(e[10]=f("span",{class:"app-name"},"Github",-1))])])])])}}}),[["__scopeId","data-v-e47cc3fb"]]);export{$ as default};
