1import{u as D,_ as I}from"./__Ii0mK3.js";import{u as R,o as T,d as W}from"./rYqlmPdd.js";import K from"./DU0oGXW6.js";import q from"./qdCxvroI.js";import{_ as G}from"./ZKswkZq8.js";import{u as H}from"./CDMsTvD2.js";import{c as _,f as A,C as Q,V as U,G as Y,L as s,M as i,_ as m,R as S,N as c,T as J,u as t,Q as x,$ as u,O as k,P as X,S as Z}from"./DQsU5YNN.js";import"./DZ_qKOfQ.js";import"./BfzDkvDZ.js";import"./_lkQlXkz.js";import"./B2kiRKAx.js";import"./B-DDtRxb.js";const tt={class:"container-custom mx-auto py-4"},et={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-8"},ot={key:1},at={key:0,class:"w-full mt-8 text-center"},h=9,ft={__name:"index",async setup(st){let p,g;const b=_("593116"),n=_(2),d=D(),l=A(()=>d.weatherData);Q(async()=>{d.setCityId(b.value),await d.fetchCurrentWeather()});const{data:r,pending:C}=([p,g]=U(()=>R(`https://kolumbus-api.lrytas.lt/query/?categoryterm=/lrytas/gamta/gamtaorai*&count=${h}&type=Articolo,Foto,Recipe,Komentaras,custom_teaser&order=pubfromdate-&ret_fields=props.overtitle__AS__overtitle,props.enable_carousel__AS__enable_carousel,props._summaryClear__AS__summary,fb_shares__AS__fb_shares,props.type__AS__type,props.updated_local_ts__AS__dateedited,props.href__AS__href,props.kpm3id__AS__kpm3id,props.title__AS__title,props.commentCount__AS__commentCount,props._photoCount__AS__photoCount,props._videoCount__AS__videoCount,props.tema__AS__label,img300x200__AS__thumb,img1080x720__AS__thumb_large&page=1`,"$lpFsKE9CYT")),p=await p,g(),p),f=_(Math.floor(r.value.total_matches/h)),v=_([]),y=_(!1),w=()=>{n.value+1<=f.value&&(n.value++,L())},L=async()=>{try{y.value=!0;const e=await $fetch(`/query/?categoryterm=/lrytas/gamta/gamtaorai*&count=${h}&type=Articolo,Foto,Recipe,Komentaras,custom_teaser&order=pubfromdate-&ret_fields=props.overtitle__AS__overtitle,props.enable_carousel__AS__enable_carousel,props._summaryClear__AS__summary,fb_shares__AS__fb_shares,props.type__AS__type,props.updated_local_ts__AS__dateedited,props.href__AS__href,props.kpm3id__AS__kpm3id,props.title__AS__title,props.commentCount__AS__commentCount,props._photoCount__AS__photoCount,props._videoCount__AS__videoCount,props.tema__AS__label,img300x200__AS__thumb,img1080x720__AS__thumb_large&page=${n.value}`,{method:"GET",baseURL:"https://kolumbus-api.lrytas.lt",params:{page:n.value}});e&&e.result&&$(e.result),y.value=!1}catch(e){console.log(e)}},$=e=>{e.forEach(o=>{v.value.push(o)})},j=A(()=>[...r.value.result,...v.value]),B=[{content:{width:995,height:100,position_name:"995x100"},tpl:"ad"},{content:{width:300,height:100,position_name:"300x100"},tpl:"ad"}],M=[{content:{width:300,height:600,position_name:"300x600"},tpl:"ad"},{content:{width:300,height:250,position_name:"300x250x1"},tpl:"ad"},{content:{width:300,height:250,position_name:"300x250x2"},tpl:"ad"},{content:{width:300,height:250,position_name:"300x250x3"},tpl:"ad"},{content:{width:300,height:250,position_name:"300x250x4"},tpl:"ad"}];return Y(()=>{H({title:"Orai Lietuvoje Å¡iandien, orų prognozÄ kas valandÄ
- Lrytas",meta:[{property:"og:title",hid:"og:title",content:"Orai Lietuvoje Å¡iandien, orų prognozÄ kas valandÄ
- Lrytas"},{name:"description",content:"Orai Lietuvoje Å¡iandien - sužinok naujausiÄ
temperatÅ«rÄ
, kritulius ir vÄjo stiprumÄ
. IÅ¡sami prognozÄ kas valandÄ
Å¡iandienai ir ateinanÄioms 10 dienų!"},{property:"og:description",hid:"og:description",content:"Orai Lietuvoje Å¡iandien - sužinok naujausiÄ
temperatÅ«rÄ
, kritulius ir vÄjo stiprumÄ
. IÅ¡sami prognozÄ kas valandÄ
Å¡iandienai ir ateinanÄioms 10 dienų!"}]})}),(e,o)=>{const P=I,N=T,O=K,z=q,E=W,F=G;return s(),i("div",tt,[m(F,{"top-content":B,"sidebar-content":M},{default:S(()=>[o[2]||(o[2]=c("h1",{class:"text-[28px] leading-[34px] md:text-[34px] md:leading-10 mb-5"},J("Orai Lietuvoje Å¡iandien - kas valandÄ
"),-1)),t(l)&&t(l).city&&t(l).list?(s(),x(P,{key:0,weather:t(l)},null,8,["weather"])):u("",!0),c("div",null,[o[1]||(o[1]=c("h2",{class:"mb-7 font-headling text-black-custom text-[28px]"},"SusijÄ straipsniai",-1)),c("div",et,[(s(!0),i(k,null,X(t(j),(V,a)=>(s(),i(k,{key:a},[m(N,{post:V,weather:""},null,8,["post"]),t(C)?(s(),x(O,{key:0,items:9})):u("",!0),(a===0||a>0&&(a+1)%2===1&&a>1)&&e.$device.isMobile&&Math.ceil((a+1)/2)<13?(s(),i("div",ot,[m(z,{content:{width:300,height:250,position_name:`txt${Math.ceil((a+1)/2)}`},type:"mobile","no-lazy":"","render-in-server":"",style:{"min-height":"250px"}},null,8,["content"])])):u("",!0)],64))),128))]),t(n)<t(f)&&t(r)&&t(r).result&&t(r).result.length>0?(s(),i("div",at,[m(E,{type:"green",onClick:w},{default:S(()=>o[0]||(o[0]=[Z("Daugiau naujienų")])),_:1})])):u("",!0)])]),_:1})])}}};export{ft 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.