1import{A as _,C as k,Ct as A,It as u,Ot as x,S as f,Z as t,an as v,b as L,cn as b,et as h,gt as d,ht as w,p as y,pt as V,tt as I,w as c,x as s}from"./D4iNppRB.js";import{d as N,f as B}from"./jouS0Q8B.js";import{f as R}from"./DVsfmBcZ.js";import{n as $}from"./DWCdiKJM.js";import{t as E}from"./q_CXofJD.js";import{t as G}from"./rcTglCJe.js";import{i as M,k as O}from"#entry";import{t as S}from"./BrkURYwz2.js";var j={class:"border-b border-slate-900 blog-navbar"},q={class:"justify-center my-6 hidden lg:flex"},F={class:"flex italic uppercase"},U=["href"],z={class:"lg:hidden"},D={class:"flex items-center"},H={class:"flex flex-col text-center italic uppercase"},Z=["href"],J={__name:"NavbarMenu",props:{navbarLinks:{type:Array,required:!0}},setup(m){const n=R(),l=x([]),p=L(()=>n.query.category);return V(()=>p,i=>{$({title:i.value})},{immediate:!0}),(i,o)=>{const a=E,r=B,g=N,C=G;return t(),c("div",j,[s("nav",q,[s("ul",F,[(t(!0),c(y,null,h(m.navbarLinks,e=>(t(),c("li",{key:e.label},[s("a",{class:v(["block px-5 py-3 hover:text-primary font-bold duration-200",{"text-primary":u(p)===e.label}]),href:e.url},b(e.label),11,U)]))),128))])]),_(C,null,{default:d(()=>[s("div",z,[_(g,{modelValue:u(l),"onUpdate:modelValue":o[0]||(o[0]=e=>A(l)?l.value=e:null)},{default:d(()=>[_(r,{name:"navbarContent"},{title:d(()=>[s("div",D,[u(l)[0]==="navbarContent"?(t(),f(a,{key:0,name:"material-symbols:close",class:"text-[28px] text-[#777]"})):(t(),f(a,{key:1,class:"text-[20px] text-[#777]",name:"pajamas:hamburger"}))])]),default:d(()=>[s("nav",null,[s("ul",H,[(t(!0),c(y,null,h(m.navbarLinks,e=>(t(),c("li",{key:e.label},[s("a",{class:v(["block px-5 py-3 hover:bg-[#3f3f43] hover:text-white font-bold",{"bg-[#3f3f43] text-white":u(p)===e.label}]),href:e.url},b(e.label),11,Z)]))),128))])])]),_:1})]),_:1},8,["modelValue"])])]),_:1})])}}},K={__name:"blogCategories",async setup(m){let n,l;const{getArticlesGroupListsApi:p}=S(),i=x([]);try{const o=([n,l]=w(()=>p({useFetch:!1})),n=await n,l(),n);i.value=Array.isArray(o?.data)?o.data.slice().sort((a,r)=>(a?.order??0)-(r?.order??0)).map(a=>{const r=a?.name??"";return{label:r,url:`/blog/${a?.id??""}?category=${encodeURIComponent(r)}`}}):[]}catch{O.error("Get articles group lists api failed.")}return(o,a)=>{const r=J;return t(),c("div",null,[u(i).length?(t(),f(r,{key:0,"navbar-links":u(i)},null,8,["navbar-links"])):k("",!0),I(o.$slots,"default",{},void 0,!0)])}}},ae=M(K,[["__scopeId","data-v-ff51c2db"]]);export{ae as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.