import{u as d}from"./vue-router.54876e93.js";import{_ as h}from"./index.c8cfbd6c.js";import{a as g,r as v,o as n,g as r,l as a,H as f,I,k as b,x as k,u as x,B as y,C as S}from"./@vue.e84e1286.js";var w="./assets/logo.c4dbfaea.png";const B=e=>(y("data-v-10b6df1e"),e=e(),S(),e),C=B(()=>a("img",{class:"img-logo",src:w,alt:"my-baseui"},null,-1)),H={class:"toolsBox"},V=["onClick"],j={__name:"header",setup(e){const l=d(),c=g(sessionStorage.getItem("nIndex")||"0"),_=v({tools:[{name:"\u9996\u9875",path:"/"},{name:"\u7EC4\u4EF6",path:"/home"},{name:"GitHub",path:"open",url:"https://github.com/wangibook/my-baseui"}]}),{tools:i}=_,u=()=>{l.push("/"),sessionStorage.setItem("nIndex","0")},m=(s,o)=>{s.path=="open"?window.open(s.url):(l.push(s.path),c.value=o),sessionStorage.setItem("nIndex",o)};return(s,o)=>(n(),r("header",null,[C,a("a",{class:"left",href:"javascript:;",onClick:u},"my-baseui"),a("div",H,[a("ul",null,[(n(!0),r(f,null,I(x(i),(p,t)=>(n(),r("li",{class:b(["tool-item",{active:c.value==t}]),key:t,onClick:z=>m(p,t)},k(p.name),11,V))),128))])])]))}};var G=h(j,[["__scopeId","data-v-10b6df1e"]]);export{G as H,w as _};