1import{_ as Z}from"./C587MUsg.js";import{_ as j}from"./Ba66n5PI.js";import{_ as J}from"./DcO5NH_w.js";import{_ as K}from"./B9KcImwu.js";import{_ as Q}from"./DDWnzyAv.js";import{_ as ee}from"./CilQbXI9.js";import{u as te}from"./DwunflHd.js";import{u as k}from"./D-F69h0a.js";import{u as ne}from"./_W8_zoNo.js";import{u as oe,_ as se}from"./J-PHYvps.js";import{P as $}from"./DXySj2c6.js";import{u as ae}from"./BrRlXy8t.js";import{d as re,c as b,W as A,f as ce,w as P,B as t,C as o,P as l,D as y,E as ie,u as p,F as w,Y as f,X as pe,l as le,G as x,Z as T,U as ue,V as _e}from"./BuxkX2hf.js";import"./CiLh1R58.js";import"./DjqDLePg.js";import"./BzrfFCmW.js";const D=u=>(ue("data-v-29962161"),u=u(),_e(),u),me={class:"news"},de={class:"title-and-bread-crumbs"},ye=D(()=>l("div",{class:"title"},[l("h1",null,"ÐовоÑÑи")],-1)),we={class:"tabs-container"},fe={key:0,class:"news-list"},ge={key:0},he={key:1,class:"empty-news-list"},ve=D(()=>l("p",null,"Рданной каÑегоÑии еÑе Ð½ÐµÑ Ð½Ð¾Ð²Ð¾ÑÑей.",-1)),ke=[ve],g=4,be=re({__name:"index",async setup(u){var R,S,V,q;let s,_;te({title:"ÐовоÑÑи â РеÑÑо FM",meta:[{name:"description",content:"ÐÑÑÑÐ°Ñ Ð¼ÑзÑка 70Ñ
, 80Ñ
и 90Ñ
онлайн. СлÑÑайÑе лÑбимÑе пеÑни беÑплаÑно и в Ñ
оÑоÑем каÑеÑÑве на оÑиÑиалÑном ÑайÑе РеÑÑо FM. ÐолоÑÑе Ñ
иÑÑ Ð² пÑÑмом ÑÑиÑе â кÑÑглоÑÑÑоÑно и без ÑегиÑÑÑаÑии!"},{property:"og:title",content:"ÐовоÑÑи â РеÑÑо FM"},{property:"og:description",content:"ÐÑÑÑÐ°Ñ Ð¼ÑзÑка 70Ñ
, 80Ñ
и 90Ñ
онлайн. СлÑÑайÑе лÑбимÑе пеÑни беÑплаÑно и в Ñ
оÑоÑем каÑеÑÑве на оÑиÑиалÑном ÑайÑе РеÑÑо FM. ÐолоÑÑе Ñ
иÑÑ Ð² пÑÑмом ÑÑиÑе â кÑÑглоÑÑÑоÑно и без ÑегиÑÑÑаÑии!"},{property:"og:url",content:"https://retrofm.ru/news/"},{property:"og:image",content:"/tg.png"},{property:"vk:image",content:"/vk.png"},{property:"ok:image",content:"/ok.png"}]});const I=[{key:"/",name:"РеÑÑо FM"},{key:"/news",name:"ÐовоÑÑи"}],h=b([{key:"",name:"ÐÑе новоÑÑи"}]),{data:E}=([s,_]=A(()=>k("/news-category/")),s=await s,_(),s),L=((R=E.value)==null?void 0:R.data)||[];h.value.push(...L.map(e=>({key:`${e.id}`,name:e.name})));const r=b(h.value[0]),{data:v,pending:C}=([s,_]=A(()=>k("/news/",{query:{limit:g}})),s=await s,_(),s),c=b((S=v.value)!=null&&S.data?[(V=v.value)==null?void 0:V.data]:[]);let F=((q=v.value)==null?void 0:q.pagination)||new $(g);const{showMore:O,resetList:U}=ne({endpoint:"/news/",pagination:F,pending:C}),B=ce(()=>{const e={},n=r.value.key;return n&&(e.category=n),e});async function z(){const e=await O({...B.value});e.length&&c.value.push(e)}P(r,async()=>{const e=await U({...B.value});c.value=e.length?[e]:[]});const G=oe();P(()=>G.query.region,async()=>{var n,m,d;const{data:e}=await k("/news/",{query:{limit:g}});c.value=(n=e.value)!=null&&n.data?[(m=e.value)==null?void 0:m.data]:[],F=((d=e.value)==null?void 0:d.pagination)||new $(g)});function M(e){const n=Math.floor(e.length/4);return[...Array(n).keys()]}return ae(),(e,n)=>{const m=Z,d=j,H=J,W=K,N=Q,X=ee;return t(),o("div",me,[l("div",de,[ye,y(m,{"page-routes":I})]),l("div",we,[y(H,null,{default:ie(()=>[y(d,{modelValue:p(r),"onUpdate:modelValue":n[0]||(n[0]=i=>le(r)?r.value=i:null),"tabs-array":p(h)},null,8,["modelValue","tabs-array"])]),_:1})]),p(c).length?(t(),o("div",fe,[(t(!0),o(w,null,f(p(c),(i,Y)=>(t(),o("div",{class:"pages",key:`page-${Y+1}`},[(t(!0),o(w,null,f(i,a=>(t(),x(W,{key:a.id,"news-card":a},null,8,["news-card"]))),128)),(t(!0),o(w,null,f(M(i),a=>(t(),x(N,{class:"desktop",key:a,"owner-id":689829,params:{pp:"h",ps:"hkni",p2:"hrae"},style:T({gridRowStart:4*a})},null,8,["style"]))),128)),(t(!0),o(w,null,f(M(i),a=>(t(),x(N,{class:"mob",key:a,"owner-id":689829,params:{pp:"h",ps:"hkni",p2:"hrak"},"container-id-from-adfox":"adfox_171052182958012955",style:T({gridRowStart:4*a})},null,8,["style"]))),128))]))),128)),p(C)?(t(),o("p",ge,"ÐагÑÑзка...")):pe("",!0),y(X,{callback:z})])):(t(),o("div",he,ke))])}}}),Ee=se(be,[["__scopeId","data-v-29962161"]]);export{Ee 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.