PageSourceSearch

https://www.evening-kazan.ru/_nuxt/BaqGlAWY.js

js evening-kazan.ru collected 2026-09-24 08:25:59 UTC 10,692 bytes, 1 lines download raw bytes

1import{u as re}from"./Dtp9YTtZ.js";import{d as L,Q as V,g as U,i as $,a1 as S,ae as B,C as M,a5 as W,w as I,a6 as F,o as c,c as y,e as u,b as s,aj as N,j as n,aa as b,ak as D,F as A,m as O,k as T,al as j,n as E,a4 as Y,a3 as ce,af as ne,l as C,q as ae,$ as le,I as _e,a2 as ue,t as q,am as me,an as J,s as z,ac as de,ad as pe,ao as G,r as oe,y as he,ah as ve,ai as fe,ap as ge,aq as Q,K as we}from"./D1ZZI4G5.js";import{A as ye,a as R,u as Se}from"./P8-W1M3_.js";import{u as x,_ as Ee}from"./De2OJsxD.js";import{u as H,_ as $e}from"./a1BgEAb9.js";import{_ as ke,a as Pe}from"./GtzSb6nF.js";import{_ as Te}from"./DpCJi_2b.js";import{_ as X}from"./BVZLq_gb.js";import{_ as Z}from"./Bsdt5xVy.js";import{u as ee,_ as te}from"./BosG42GX.js";import"./BtO04T-y.js";import"./D5Fy5cAn.js";import"./F8doVSIJ.js";import"./DOO_3S5b.js";import"./QyboImZ4.js";const Ie={key:0,class:"section-news-grid"},Le={class:"section-news-grid__primary section-layer-parent"},Ne=L({__name:"SectionNewsGrid",props:{articlesPositions:{}},async setup(k){let e,o;const i=V(),{isSportSubdomain:_}=U(),p=$(()=>i.name===Y.name&&_),d=k,h=S(B),v=h==null?void 0:h.filter(f=>f.token===M.SPORT||f.token===M.ANALYTICS||f.token===M.CULTURE),l=d.articlesPositions.find(f=>f.group===W.MAIN),g=x({per_page:5,current_page:1},{without_headings:v,without_display_position:!0}),a=x({per_page:1,current_page:1},{display_position:l,without_headings:v}),[{articles:w},{articles:t}]=([e,o]=I(()=>Promise.all([g,a])),e=await e,o(),e),m=$(()=>{if(t.value.length>0){const f=t.value.at(0);if(!f)return w.value;const P=w.value.slice();return P.splice(0,0,f),P.pop(),P}return w.value}),{element:r}=F();return(f,P)=>m.value.length>0?(c(),y("div",Ie,[u("div",Le,[s(N,{"in-container":""}),s(D,{item:m.value.at(0),animated:!1,"show-comments":n(i).name===n(b).name||p.value},null,8,["item","show-comments"])]),u("div",{ref_key:"gridEl",ref:r,class:"section-news-grid__secondary"},[(c(!0),y(A,null,O(m.value.slice(1),(K,ie)=>(c(),T(D,{key:ie,item:K,"show-description":!1,"show-comments":n(i).name===n(b).name||p.value},null,8,["item","show-comments"]))),128))],512),s(j,{"grid-el":n(r),"scroll-thumb-width":100/m.value.slice(1).length},null,8,["grid-el","scroll-thumb-width"])])):E("",!0)}}),be={key:0,class:"section-news-list"},Ae={class:"section-news-list__button"},se=L({__name:"SectionNewsList",props:{showPostsButton:{type:Boolean,default:!0}},async setup(k){let e,o;const i=V(),{isSportSubdomain:_}=U(),d=S(ce).value.map(r=>r.id),h=$(()=>i.name===Y.name&&_),{element:v}=F(),l=S(ne),g=H({per_page:10,current_page:1},{category:l==null?void 0:l.at(0),without_posts:d}),a=H({per_page:1,current_page:1},{category:l==null?void 0:l.at(1)}),[{news:w},{news:t}]=([e,o]=I(()=>Promise.all([g,a])),e=await e,o(),e),m=$(()=>{const r=_e(w.value);if(r.length===0)return t.value;if(t.value.length>0){const f=t.value.at(0);f&&r.splice(1,0,f)}return r.length>6&&r.splice(6),r});return(r,f)=>m.value.length>0?(c(),y("div",be,[u("div",{ref_key:"listEl",ref:v,class:"section-news-list__container"},[(c(!0),y(A,null,O(m.value,(P,K)=>(c(),T($e,{key:K,item:P,"show-comments":n(i).name===n(b).name||h.value},null,8,["item","show-comments"]))),128))],512),u("div",Ae,[s(n(le),{href:{name:"posts"},color:"secondary"},{default:C(()=>[ae(" Все материалы ")]),_:1})])])):E("",!0)}}),Re={key:0,class:"section-news-poster"},Me=u("div",{class:"section-news-poster__background"},null,-1),Oe={class:"section-news-poster__container"},Ce={class:"container"},xe={class:"section-news-poster__info"},De={class:"media-card__comments-count"},Ve=["innerHTML"],Ue=L({__name:"SectionNewsPoster",props:{articlesPositions:{},newsPositions:{}},async setup(k){let e,o;const i=k,_=S(ne),p=i.articlesPositions.find(t=>t.group===W.LOUD),d=i.newsPositions.find(t=>t.group===W.LOUD),h=x({per_page:1,current_page:1},{display_position:p,category:_==null?void 0:_.at(0)}),v=H({per_page:1,current_page:1},{display_position:d,category:_==null?void 0:_.at(0)}),[{articles:l},{news:g}]=([e,o]=I(()=>Promise.all([h,v])),e=await e,o(),e),a=$(()=>g.value.length>0?{item:g.value.at(0),type:"news"}:{item:l.value.at(0),type:"articles"}),w=$(()=>{if(a.value){const t=a.value.item.comment_count;return t<=10?"/images/icons/comments/comment_blue.svg":t<=29?"/images/icons/comments/comment_red.svg":"/images/icons/comments/comment_black.svg"}});return(t,m)=>a.value.item?(c(),y("section",Re,[s(n(z),{to:n(J)(a.value.item,a.value.type)},{default:C(()=>[s(n(ue),{image:a.value.item.preview_image},null,8,["image"]),Me,u("div",Oe,[u("div",Ce,[u("div",xe,[u("h1",null,[ae(q(a.value.item.title)+" ",1),a.value.item.comment_count>2?(c(),T(n(z),{key:0,to:n(J)(a.value.item,a.value.type,"#comments")},{default:C(()=>[u("span",{class:"media-card__comments-icon",style:me({backgroundImage:`url(${w.value})`})},null,4),u("span",De,q(a.value.item.comment_count),1)]),_:1},8,["to"])):E("",!0)]),a.value.item.title!==a.value.item.lead?(c(),y("p",{key:0,innerHTML:a.value.item.lead},null,8,Ve)):E("",!0)])])])]),_:1},8,["to"])])):E("",!0)}}),Be={class:"section-news"},Fe={"data-aos":"fade-up","data-aos-easing":"linear",class:"container container-padding"},Ye={class:"section-news__container"},Ge={key:0,class:"section-news__with-banner"}
1,Ke=L({__name:"SectionNews",setup(k){const e=S(de),o=S(pe);return(i,_)=>(c(),y(A,null,[s(Ue,{"articles-positions":n(o),"news-positions":n(e)},null,8,["articles-positions","news-positions"]),u("section",Be,[u("div",Fe,[s(G,{text:"Последние новости","title-tag":"h1"}),u("div",Ye,[s(Ne,{"articles-positions":n(o)},null,8,["articles-positions"]),oe(i.$slots,"banner",{},()=>[s(se)])]),i.$slots.banner?(c(),y("div",Ge,[s(se)])):E("",!0)])])],64))}}),We={key:0,class:"section-sport"},He={"data-aos":"fade-up","data-aos-easing":"linear",class:"container container-padding position-relative"},je={class:"section-sport__container"},qe={class:"section-sport__card section-layer-parent"},Je=L({__name:"SectionSport",async setup(k){let e,o;const i=V(),{isSportSubdomain:_}=U(),p=$(()=>i.name===Y.name&&_),d=S(B),h=$(()=>d==null?void 0:d.find(l=>l.token===M.SPORT)),{articles:v}=([e,o]=I(()=>x({per_page:5,current_page:1},{heading:h.value})),e=await e,o(),e);return(l,g)=>h.value&&n(v).length>0?(c(),y("section",We,[u("div",He,[s(G,{text:h.value.name,link:{name:"media",props:{isSport:!0}}},null,8,["text"]),u("div",je,[u("div",qe,[s(N,{"in-container":""}),s(D,{item:n(v).at(0),animated:!1,"show-comments":n(i).name===n(b).name||p.value},null,8,["item","show-comments"])]),s(ke,{items:n(v).slice(1),"show-comments":n(i).name===n(b).name||p.value},null,8,["items","show-comments"]),oe(l.$slots,"banner")]),l.$slots.banner?(c(),T(N,{key:0,class:"section-layer-after"})):E("",!0)])])):E("",!0)}}),ze={key:0,class:"section-culture"},Qe={"data-aos":"fade-up","data-aos-easing":"linear",class:"container container-padding position-relative"},Xe=L({__name:"SectionCulture",async setup(k){let e,o;const i=V(),{isSportSubdomain:_}=U(),p=$(()=>i.name===Y.name&&_),d=S(B),h=$(()=>d==null?void 0:d.find(g=>g.token===M.CULTURE)),{articles:v}=([e,o]=I(()=>x({per_page:4,current_page:1},{heading:h.value})),e=await e,o(),e),{element:l}=F();return(g,a)=>h.value&&n(v).length>0?(c(),y("section",ze,[u("div",Qe,[s(G,{text:h.value.name,link:{name:"media",params:{category:h.value.slug}}},null,8,["text","link"]),s(N),u("div",{ref_key:"cultureContainerEl",ref:l,class:"section-culture__container"},[(c(!0),y(A,null,O(n(v),(w,t)=>(c(),T(D,{key:t,item:w,"show-comments":n(i).name===n(b).name||p.value},null,8,["item","show-comments"]))),128))],512),s(j,{"grid-el":n(l),"scroll-thumb-width":100/n(v).length},null,8,["grid-el","scroll-thumb-width"])])])):E("",!0)}}),Ze={key:0,class:"shorts"},et={class:"container container-padding position-relative","data-aos":"fade-up","data-aos-easing":"linear"},tt={class:"shorts-main"},st=L({__name:"SectionShorts",async setup(k){let e,o;const{element:i}=F(),{shorts:_}=([e,o]=I(()=>ee({per_page:1,current_page:1},{display_position:{id:1,group:"MAIN",name:"MAIN"}})),e=await e,o(),e),p=he([]),{shorts:d,loading:h,filters:v,refresh:l,meta:g}=([e,o]=I(()=>ee({per_page:4,current_page:1})),e=await e,o(),e),a=$(()=>_.value.length?_.value:[]),w=$(()=>{if(!a.value.length)return d.value;const t=new Set(a.value.map(r=>r.id));let m=d.value.filter(r=>!t.has(r.id));return m.length>3&&(m=m.slice(0,-1)),m});return p.value=[...a.value,...w.value],(t,m)=>p.value.length>0?(c(),y("div",Ze,[u("section",et,[s(G,{text:"Быстро и по делу",link:"/shorts"}),u("div",tt,[s(N,{class:"shorts-layer"})]),u("div",{ref_key:"shortsListEl",ref:i,class:"shorts-list__container"},[(c(!0),y(A,null,O(a.value,r=>(c(),T(te,{key:`main-${r.id}`,"short-video":r},null,8,["short-video"]))),128)),(c(!0),y(A,null,O(p.value.slice(a.value.length),r=>(c(),T(te,{key:r.id,"short-video":r},null,8,["short-video"]))),128))],512),s(j,{class:"shorts__scrollbar","grid-el":n(i),"scroll-thumb-width":100/p.value.length},null,8,["grid-el","scroll-thumb-width"])])])):E("",!0)}}),nt={id:"page"},wt=L({__name:"index",async setup(k){let e,o;re({title:"Вечерняя Казань — новости Казани и республики Татарстан: последние свежие новости на сегодня",description:"Главные новости Казани и Татарстана сегодня: происшествия, ДТП, события в городе и республике. Читайте последние новости на сайте Вечерняя Казань и будьте в курсе событий."});const i=S(B),_=S(ve),p=S(fe),d=S(ye),h=d==null?void 0:d.main.filter(t=>t.description!==R.HEADER),{adverts:v}=([e,o]=I(()=>Se({per_page:15,current_page:1},{places:h})),e=await e,o(),e),l=[],g=[],a=[],w=[];for(const t of v.value)for(const m of t.places)m.description===R.MAIN_NEWS_RIGHT&&l.push(t),m.description===R.MAIN_AFTER_NEWS&&g.push(t),m.description===R.MAIN_AFTER_SPORT&&a.push(t),m.description===R.MAIN_AFTER_CULTURE&&w.push(t);return ge(async(t,m,r)=>{if(t.name!=="media"){r();return}const{heading:f,subheading:P}=we(t.params.category,i);p.filters.value.filter.heading=f,p.filters.value.filter.subheading=P,_.filters.value.filter.heading=f,_.filters.value.filter.subheading=P,await Promise.all([p.refresh(),_.refresh()]),r()}),(t,m)=>(c(),y("div",nt,[s(Ke,null,Q({_:2},[l.length>0?{name:"banner",fn:C(()=>[s(N,{class:"news-banner-layer"}),s(Z,{adverts:l})]),key:"0"}:void 0]),1024),g.length>0?(c(),T(X,{key:0,adverts:g})):E("",!0),s(Je,null,Q({_:2},[a.length>0?{name:"banner",fn:C(()=>[s(Z,{adverts:a})]),key:"0"}:void 0]),1024),s(st),s(Te),s(Ee),s(Pe),s(Xe),w.length>0?(c(),T(X,{key:1,adverts:w}
1)):E("",!0)]))}});export{wt 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.