1import{_ as I}from"./CT_gbRFc.js";import{_ as M}from"./Nl7atSqz.js";import{_ as N}from"./BtPmv9CL.js";import{d as V,u as x,E as D,i as E,r as L,c as v,p as F,a as o,o as s,y as m,b as c,e as l,D as r,G as u,F as _,v as d,x as f,A as P,t as S,_ as j}from"./CyVqXwo4.js";import{u as G}from"./gHSI0DZW.js";import{s as O}from"./GlNdlVUB.js";const q={key:0,class:"mb-8"},H={class:"matter-grid"},J={key:1,class:"mb-8"},K={class:"matter-grid"},A=V({__name:"AppTeasers",setup(k){const{platform:n}=x(),{t:y}=D({useScope:"local"}),{isMobile:$}=G(),{$api:w}=E(),p=L([]),T=v(()=>n.global_teaser_blocks.concat(n.teaser_blocks)),g=v(()=>n.promo_blocks.see_also?n.promo_blocks.see_also.filter(t=>t.matter).map(t=>t.matter):[]),z=t=>t[$?"is_shown_on_mobile":"is_shown_on_desktop"];return F(async()=>{try{const b=(await w("/main_page/blocks/edition_longreads")).filter(a=>a.matter).map(a=>a.matter)??[];p.value=O(b).filter((a,h)=>h<=3)}catch(t){console.error(t)}}),(t,b)=>{const a=I,h=M,B=N;return s(),o("div",null,[c(p).length?(s(),o("div",q,[l("div",{class:r(t.$style.blockTitle)},u(c(y)("seeAlso")),3),l("div",H,[(s(!0),o(_,null,d(c(p),(e,i)=>(s(),f(a,{key:i,class:"__see-also",matter:e},null,8,["matter"]))),128))])])):m("",!0),c(g).length?(s(),o("div",J,[l("div",{class:r(t.$style.blockTitle)},u(c(y)("editorsChoice")),3),l("div",K,[(s(!0),o(_,null,d(c(g),(e,i)=>(s(),f(a,{key:i,class:"__see-also",matter:e},null,8,["matter"]))),128))])])):m("",!0),(s(!0),o(_,null,d(c(T),e=>(s(),o(_,null,[z(e)?(s(),o("div",{key:e.title,class:"mb-8"},[l("div",{class:r(t.$style.blockTitle)},u(e.title),3),l("div",{class:r(t.$style.itemsContainer)},[l("div",{class:r(t.$style.items)},[(s(),o(_,null,d(["first","second","third"],i=>(s(),o(_,null,[e.blocks[i].url?(s(),f(B,{key:i,class:r(t.$style.teaserItem),to:e.blocks[i].url},{default:P(()=>[l("div",{class:r(t.$style.img)},[S(h,{src:e.blocks[i].image_url},null,8,["src"])],2),l("div",{class:r(t.$style.title)},u(e.blocks[i].title),3)]),_:2},1032,["class","to"])):m("",!0)],64))),64))],2)],2)])):m("",!0)],64))),256))])}}}),Q="_blockTitle_1h8zw_2",R="_itemsContainer_1h8zw_6",U="_items_1h8zw_6",W="_teaserItem_1h8zw_13",X="_img_1h8zw_19",Y="_title_1h8zw_23",Z={blockTitle:Q,itemsContainer:R,items:U,teaserItem:W,img:X,title:Y};function C(k){const n=k;n.__i18n=n.__i18n||[],n.__i18n.push({locale:"",resource:{rus:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"ЧиÑайÑе Ñакже"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ±Ð¾Ñ ÑедакÑии"}}},eng:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"More stories"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"Editors choice"}}},bak:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"ШÑлай ÑÒ¡ ÑÒ¡ÑÒÑÒ"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑÐ¸Ñ Ò»Ð°Ð¹Ð»Ð°ÑÑ"}}},tat:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"ШÑлай Ñк ÑкÑгÑз"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑне ÑайлаÑ"}}},chv:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"ÃавÄн пекеÑ
вÑлÄÑ"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑи ÑÑйлавÓ"}}},chm:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе лÑдÑа"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑий ойÑÑо"}}},udm:{seeAlso:{t:0,b:{t:2,i:[{t:3}],s:"ÐзÑÑ Ð¸Ðº лÑдÓе"}},editorsChoice:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑн бÑÑÑÑн"}}}}})}const tt={$style:Z};typeof C=="function"&&C(A);const rt=Object.assign(j(A,[["__cssModules",tt]]),{__name:"AppTeasers"});export{rt as _};
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.