import{_ as x,s as k,u as C,f as R,g as P,r as c,o as t,c as o,F as _,p as m,e as h,l as a,h as r,m as l,a as p,t as f,q as U,b as v,y as w}from"./index-05083f24.js";import{u as y}from"./home-c43ed2ca.js";const L={class:"menu-list"},M={class:"f-name"},B={key:1,class:"second-menu"},N={class:"box"},V={__name:"index",setup(q){const{getMenuList:u}=y(),{menuList:i}=k(y()),n=C();return R(async()=>{await u()}),P(async()=>{i.value.length||await u()}),(S,b)=>{const d=c("router-link"),g=c("ArrowRight"),$=c("el-icon");return t(),o("div",L,[(t(!0),o(_,null,m(a(i),e=>(t(),o("div",{class:h(["item",a(n).query.name&&(a(n).fullPath.match(/name=(.*?)(&url|$)/)[1].includes("|")?decodeURIComponent(a(n).fullPath.match(/name=(.*?)(&url|$)/)[1].split("|")[0]):decodeURIComponent(a(n).fullPath.match(/name=(.*?)(&url|$)/)[1]))===e.name&&"active"]),key:e.id},[r(d,{to:`/${e.seoUrl}?page=1&limit=20&type=category&name=${e.name}`||"/"},{default:l(()=>[p("span",M,f(e.name),1)]),_:2},1032,["to"]),e.children&&e.children.length?(t(),U($,{key:0},{default:l(()=>[r(g)]),_:1})):v("v-if",!0),e.children&&e.children.length?(t(),o("div",B,[p("div",N,[(t(!0),o(_,null,m(e.children,s=>(t(),o("div",{class:h(["s-item",a(n).query.name&&(a(n).fullPath.match(/name=(.*?)(&url|$)/)[1].includes("|")?decodeURIComponent(a(n).fullPath.match(/name=(.*?)(&url|$)/)[1].split("|")[1]):decodeURIComponent(a(n).fullPath.match(/name=(.*?)(&url|$)/)[1]))===s.name&&"active"]),key:s.id},[r(d,{to:`/${s.seoUrl}?page=1&limit=20&type=category&name=${e.name}|${s.name}&url=${e.seoUrl}`||"/"},{default:l(()=>[w(f(s.name),1)]),_:2},1032,["to"])],2))),128))])])):v("v-if",!0)],2))),128))])}}},T=x(V,[["__scopeId","data-v-aa0c7af3"],["__file","/med-ssr/src/components/MenuList/index.vue"]]);export{T as M};