import{_ as W}from"./DKqZLbne.js";import{_ as w}from"./Ba76BwjT.js";import{e as z,x as B,K as I,E as N,o as q,c as $,a as s,b as n,m as i,aB as r,w as d,f as e,y as b,am as S,d as v,i as y,G as m,_ as g,aj as V,aC as A}from"./DpdQcRr7.js";import"./BXGwug7E.js";import"./MNmNWAT4.js";import"./DAqvLAaI.js";import"./q5-2l_tv.js";import"./DuJ0NDcC.js";import"./D1zzHZdQ.js";import"./D7eJvyae.js";import"./VG7eFHlH.js";import"./DnDgEkgi.js";import"./BcpEzrWT.js";const E={class:"menu admin-sidebar"},G={class:"menu-content p-4"},R={class:"menu-list"},j={class:"icon-text"},D={class:"icon"},H={class:"menu-list"},K={class:"icon-text"},L={class:"icon"},O={class:"icon ml-auto"},Q={class:"icon-text"},T={class:"icon"},U={class:"icon-text"},F={class:"icon"},J={class:"icon-text"},M={class:"icon"},P={class:"icon ml-auto"},X=z({__name:"AdminSidebar",setup(f){const c=B(),a=y({users:!1,quests:!1}),p=m(()=>c.path.startsWith("/admin/users")),_=m(()=>c.path.startsWith("/admin/companies")),x=m(()=>c.path.startsWith("/admin/organizations")),C=m(()=>c.path.startsWith("/admin/quests")),h=o=>{a.value[o]=!a.value[o]};return I(()=>c.path,o=>{o.startsWith("/admin/users")?a.value.users=!0:o.startsWith("/admin/quests")&&(a.value.quests=!0)},{immediate:!0}),(o,t)=>{const l=N("Icon"),u=w;return q(),$("aside",E,[s("div",G,[t[10]||(t[10]=s("p",{class:"menu-label"},"メインメニュー",-1)),s("ul",R,[s("li",null,[n(u,{to:"/admin",class:i({"is-active":(o._.provides[r]||o.$route).path==="/admin"})},{default:d(()=>[s("span",j,[s("span",D,[n(l,{icon:"mdi:view-dashboard"})]),t[2]||(t[2]=s("span",null,"ダッシュボード",-1))])]),_:1},8,["class"])])]),t[11]||(t[11]=s("p",{class:"menu-label"},"管理",-1)),s("ul",H,[s("li",null,[s("a",{onClick:t[0]||(t[0]=k=>h("users")),class:i({"is-active":e(p)})},[s("span",K,[s("span",L,[n(l,{icon:"mdi:account-multiple"})]),t[3]||(t[3]=s("span",null,"ユーザー管理",-1)),s("span",O,[n(l,{icon:"mdi:chevron-right",class:i({"is-rotated":e(a).users})},null,8,["class"])])])],2),b(s("ul",null,[s("li",null,[n(u,{to:"/admin/users",class:i({"is-active":(o._.provides[r]||o.$route).path==="/admin/users"})},{default:d(()=>[...t[4]||(t[4]=[v(" ユーザー一覧 ",-1)])]),_:1},8,["class"])])],512),[[S,e(a).users]])]),s("li",null,[n(u,{to:"/admin/companies",class:i({"is-active":e(_)})},{default:d(()=>[s("span",Q,[s("span",T,[n(l,{icon:"mdi:office-building"})]),t[5]||(t[5]=s("span",null,"企業管理",-1))])]),_:1},8,["class"])]),s("li",null,[n(u,{to:"/admin/organizations",class:i({"is-active":e(x)})},{default:d(()=>[s("span",U,[s("span",F,[n(l,{icon:"mdi:account-group"})]),t[6]||(t[6]=s("span",null,"組織管理",-1))])]),_:1},8,["class"])]),s("li",null,[s("a",{onClick:t[1]||(t[1]=k=>h("quests")),class:i({"is-active":e(C)})},[s("span",J,[s("span",M,[n(l,{icon:"mdi:treasure-chest"})]),t[7]||(t[7]=s("span",null,"クエスト管理",-1)),s("span",P,[n(l,{icon:"mdi:chevron-right",class:i({"is-rotated":e(a).quests})},null,8,["class"])])])],2),b(s("ul",null,[s("li",null,[n(u,{to:"/admin/quests",class:i({"is-active":(o._.provides[r]||o.$route).path==="/admin/quests"})},{default:d(()=>[...t[8]||(t[8]=[v(" クエスト一覧 ",-1)])]),_:1},8,["class"])]),s("li",null,[n(u,{to:"/admin/quests/create",class:i({"is-active":(o._.provides[r]||o.$route).path==="/admin/quests/create"})},{default:d(()=>[...t[9]||(t[9]=[v(" クエスト作成 ",-1)])]),_:1},8,["class"])])],512),[[S,e(a).quests]])])])])])}}}),Y=g(X,[["__scopeId","data-v-c1e76966"]]),Z={},ss={class:"admin-layout"},ts={class:"admin-main"};function ns(f,c){const a=W,p=Y,_=A;return q(),$("div",null,[n(a),s("div",ss,[n(p),s("main",ts,[V(f.$slots,"default",{},void 0,!0)])]),n(_)])}const fs=g(Z,[["render",ns],["__scopeId","data-v-8e1b5b0e"]]);export{fs as default};
