1import{u as e,a as t,c as s,o as a,b as l,d as o,t as i,j as r,v as c,e as u,z as n,F as p,A as d,r as v,y as g,s as m,f as _,n as h,B as f,p as w,m as y,C as k,k as C,D as b}from"./app.js";const x={class:"wrapper"},L={class:"content-block"},j={class:"headline headline_with-search"},$=["placeholder"],z={class:"list-categories"},A={class:"list-categories__row"},B={class:"list"},D={class:"count"},F={class:"seo"},M={__name:"Categories",setup(M){const U=v([]),V=v([]),q=v(""),E=v(!1),G=e(),{t:H}=t(),{filters:I}=b,J=s(()=>({title:H("meta.title.categories"),description:H("meta.description.categories")})),K=s(()=>{const e=q.value.toLowerCase();return U.value.filter(t=>t.title.toLowerCase().includes(e))}),N=s(()=>{const e=q.value.toLowerCase();return V.value.filter(t=>t.title.toLowerCase().includes(e))});return a(()=>{E.value||(E.value=!0,g.categories({section:"toptn"},e=>{if(E.value=!1,e.categories){const t=e.categories.filter(e=>e.toptn);V.value=t.sort((e,t)=>t.avg_videos_popularity-e.avg_videos_popularity).slice(0,60).map(e=>(e.scr=e.toptn[0].scr,e)),U.value=t.slice(60).sort((e,t)=>e.title>t.title?1:-1)}})),G.dispatch("setMeta",J.value)}),(e,t)=>{const s=m("router-link");return _(),l("div",x,[o("div",L,[o("div",null,[o("div",j,[o("h1",null,i(e.$t("seo.h1.categories")),1),r(o("input",{class:"input categories__search",type:"text",placeholder:e.$t("component.search.placeholder"),"onUpdate:modelValue":t[0]||(t[0]=e=>q.value=e),autocomplete:"off",maxlength:"69"},null,8,$),[[c,q.value]])]),u(n,{thumbs:N.value,link:"videos-categories"},null,8,["thumbs"]),o("div",z,[o("div",A,[o("div",B,[(_(!0),l(p,null,d(K.value,e=>(_(),l("h2",{class:h(["tag__item",{"tag__item--empty":E.value}]),key:e.dir},[e.title?(_(),f(s,{key:0,to:{name:"videos-categories",params:{object_id:e.dir,page:1,sort:"latest-updates"}}},{default:w(()=>[y(i(e.title),1),o("span",D,i(k(I).reduce(e.total_videos)),1)]),_:2},1032,["to"])):C("",!0)],2))),128))])])]),o("div",F,[o("p",null,i(e.$t("seo.text.categories")),1)])])])])}}};export{M 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.