1import{d as r,t as g,h,c as t,L as d,v as u,e as n,w as c,p as l,q as m,P as p,x as _}from"./index-5a8e3de2.js";const v="_header_9oktm_6",y="_list_9oktm_15",k="_grid_9oktm_21",T="_paginator_9oktm_29",L="_tagLink_9oktm_35",P="_count_9oktm_47",a={header:v,list:y,grid:k,paginator:T,tagLink:L,count:P},f=_("вÑпÑÑк","вÑпÑÑка","вÑпÑÑков"),C="ÐÑпÑÑки по ÑÑгам",I="ТÑг",w=r({name:"TagsPage",data(){return{tagId:""}},setup(){return{store:g()}},watch:{"$route.params.id":{immediate:!0,handler(e){this.tagId=e,this.store.fetch(e)}}},methods:{goToPage(e){this.store.goTo(e,this.tagId),window.scrollTo({top:0,behavior:"smooth"})},onItemOnPageChange(e){this.store.itemOnPageChange(e,this.tagId),window.scrollTo({top:0,behavior:"smooth"})},layoutChange(e){this.store.layoutChange(e)},vote(e,s){h().vote(e,s).then(o=>{o&&this.store.changeRating(o)})}},render(){return t(p,{loading:this.store.isLoading},{default:()=>[t("h1",null,[C]),t("div",{class:a.header},[t(d,{layout:this.store.layout,onChange:this.layoutChange},null)]),t("div",null,[this.store.releases.map(({tag:e,releases:s,count:i})=>t("div",{key:e.id},[t(u,{to:e.toTag,class:a.tagLink},{default:()=>[t("span",null,[I,n(" "),e.title]),t("span",{class:a.count},[n("("),`${i} ${f(i)}`,n(")")])]}),t("div",null,[this.store.layout.isTile&&t("div",{class:a.grid},[s.map(o=>t(c,{key:o.id,onVote:this.vote,release:o},null))]),this.store.layout.isLine&&t("div",{class:a.list},[s.map(o=>t(l,{key:o.id,onVote:this.vote,release:o},null))]),this.store.layout.isCompactLine&&t("div",{class:a.list},[s.map(o=>t(l,{key:o.id,onVote:this.vote,compact:!0,release:o},null))])])]))]),!this.store.isLoading&&t("div",{class:a.paginator},[t(m,{value:this.store.pagination,onToPage:this.goToPage,onItemOnPageChange:this.onItemOnPageChange},null)])]})}});export{w 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.