/* empty css            */import{_ as h,aa as l,r as o,o as m,g as v,j as I,n as g}from"./app-BYcXwl4U.js";const x=["href"],M={__name:"MenuItem",props:["href","active","code"],emits:["click"],setup(a,{emit:f}){const i=l("$Tea"),t=a,u=f,r=l("$popupState",null),p=s=>{u("click",s)};let c=t.active;if(typeof c>"u"){var n="";r!=null?typeof r.ctx.firstMenuItem=="string"&&(n=r.ctx.firstMenuItem):typeof window.X_VIEW_CTX.firstMenuItem=="string"&&(n=window.X_VIEW_CTX.firstMenuItem),n!=null&&n.length>0&&t.code!=null&&t.code.length>0&&(n.indexOf(",")>0?c=n.split(",").$contains(t.code):c=n==t.code)}let e=t.href==null?"":t.href;if(typeof e=="string"&&e.length>0&&e.startsWith(".")){let s=e.indexOf("?");s>=0?e=i.url(e.substring(0,s))+e.substring(s):e=i.url(e)}const _=o(e),d=o(c);return(s,k)=>(m(),v("a",{href:_.value,class:g(["flex flex-row items-center",{active:d.value}]),onClick:p},[I(s.$slots,"default",{},void 0,!0)],10,x))}},T=h(M,[["__scopeId","data-v-33f0b8a3"]]);export{T as M};
