import{_ as g}from"./Ba76BwjT.js";import{e as f,x as v,c as u,a as s,b as e,w as r,f as t,t as d,m as _,h as b,E as x,o as m,L as w,i as k,an as p,_ as z}from"./DpdQcRr7.js";import"./BcpEzrWT.js";const C={class:"org-page"},N={class:"org-container"},B={key:0,class:"user-head"},I={class:"user-head-avatar"},V={class:"user-head-info"},j={class:"user-head-name"},y={class:"user-head-id"},E={class:"tab-bar"},L=f({__name:"[id]",setup(U){const i=v(),a=k({user_id:"",name:"",is_active:!0});return p("organizationUser",a),p("setOrganizationUser",l=>{a.value=l}),(l,o)=>{const n=x("Icon"),c=g,h=w;return m(),u("div",C,[s("div",N,[e(c,{to:"/organization/users",class:"back-link"},{default:r(()=>[e(n,{icon:"mdi:arrow-left",width:16,height:16}),o[0]||(o[0]=s("span",null,"ユーザー一覧に戻る",-1))]),_:1}),t(a).user_id?(m(),u("div",B,[s("span",I,[e(n,{icon:"mdi:account-circle",width:48,height:48})]),s("div",V,[s("h1",j,d(t(a).name||"未設定"),1),s("p",y,d(t(a).user_id),1)]),s("span",{class:_(["tag",t(a).is_active?"tag-success":"tag-danger"])},d(t(a).is_active?"アクティブ":"非アクティブ"),3)])):b("",!0),s("div",E,[e(c,{to:`/organization/users/${t(i).params.id}/edit`,class:_(["tab-item",{"tab-item--active":t(i).path.endsWith("/edit")}])},{default:r(()=>[e(n,{icon:"mdi:account-edit",width:16,height:16}),o[1]||(o[1]=s("span",null,"編集",-1))]),_:1},8,["to","class"]),e(c,{to:`/organization/users/${t(i).params.id}/projects`,class:_(["tab-item",{"tab-item--active":t(i).path.endsWith("/projects")}])},{default:r(()=>[e(n,{icon:"mdi:folder-multiple",width:16,height:16}),o[2]||(o[2]=s("span",null,"プロジェクト",-1))]),_:1},8,["to","class"])]),e(h)])])}}}),O=z(L,[["__scopeId","data-v-4b91b930"]]);export{O as default};
