PageSourceSearch

https://www.lrytas.lt/_nuxt/CsSj4pSS.js

js lrytas.lt collected 2026-09-24 08:28:13 UTC 6,736 bytes, 1 lines download raw bytes

1import{L as f,M as x,O as P,P as T,U as O,N as p,T as V,f as $,a5 as H,_ as w,R as k,u as g,Q as B,af as W,ac as Z,ad as q,c as S,V as M}from"./DQsU5YNN.js";import{_ as R,b as Y,u as C,k as G}from"./rYqlmPdd.js";import{_ as J,f as Q}from"./99EBE8oN.js";import{_ as U}from"./ZKswkZq8.js";import{u as K}from"./CDMsTvD2.js";import"./qdCxvroI.js";import"./B-DDtRxb.js";const X={class:"flex items-center gap-1 xl:gap-6"},tt=["onClick"],et={class:"font-headline text-xl xl:text-5xl font-normal capitalize"},st={class:"font-body text-[8px] xl:text-sm font-bold"},nt={__name:"LTVProgramWeekdays",props:{value:{type:Object,default:()=>({day:null,index:-1})},weekDays:{type:Array,default:()=>[]}},emits:["input"],setup(y,{emit:i}){const m=y,b=i,e=(c,_)=>{b("input",{day:c,index:_})},s=c=>m.value&&m.value.index===c;return(c,_)=>(f(),x("div",X,[(f(!0),x(P,null,T(y.weekDays,(n,a)=>(f(),x("div",{key:a,class:O(["text-center pt-1 px-2 pb-1 xl:pt-3 xl:px-[20px] xl:pb-2 rounded-sm xl:rounded-lg cursor-pointer flex-1",{"bg-grey-light-2":s(a)},{"text-avietine":n.weekDay==="št"||n.weekDay==="sk"}]),onClick:l=>e(n,a)},[p("div",et,V(n.weekDay),1),p("div",st,V(n.date),1)],10,tt))),128))]))}},ot={class:"relative"},rt=["src"],at={class:"px-7 pt-[10px] pb-9"},lt={__name:"LTVProgramChannels",props:{schedules:{type:Array,default:()=>[]},day:{type:String,default:""}},setup(y){const i=y,m=e=>{const s=(e.getDate()<10?"0":"")+e.getDate(),c=(e.getMonth()+1<10?"0":"")+(e.getMonth()+1);return`${e.getFullYear()}-${c}-${s}`},b=$(()=>Object.freeze(i.schedules.map(e=>{const s=new Date,c=i.day,_=m(s);return e.schedules=e.schedules.map((n,a)=>{const l=new Date(`${c}T${n.t.replace(".",":")}`),v=new Date(`${c}T${a+1<e.schedules.length?e.schedules[a+1].t.replace(".",":"):"00:00"}`);return s>l&&s>v?n.state="finished":s>l&&s<v?(n.state="playing",e.activeIndex=a):s<l&&s<v&&(n.state="future"),n}).filter((n,a)=>c!==_?n:a+1>=e.activeIndex),e})));return(e,s)=>{const c=R,_=J,n=Z,a=q;return f(),x("div",ot,[s[0]||(s[0]=H('<div class="flex items-center mb-6"><button class="LTVProgramChannels__navArrow-left mr-5"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" fill="none"><rect x="22" y="22" width="22" height="22" rx="11" transform="rotate(-180 22 22)" fill="#E9EDEF"></rect><path d="M10.1126 11.2877L13.0001 14.1752L12.1752 15L8.46289 11.2877L12.1752 7.57533L13.0001 8.40017L10.1126 11.2877Z" fill="#8C9497"></path></svg></button><button class="LTVProgramChannels__navArrow-right"><svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" fill="none"><rect width="22" height="22" rx="11" fill="#E9EDEF"></rect><path d="M11.8874 10.7123L8.99994 7.82483L9.82478 7L13.5371 10.7123L9.82478 14.4247L8.99994 13.5998L11.8874 10.7123Z" fill="#8C9497"></path></svg></button></div>',1)),w(a,{modules:["SwiperNavigation"in e?e.SwiperNavigation:g(W)],slidesPerView:1.2,spaceBetween:14,uniqueNavElements:!0,centerInsufficientSlides:!0,grabCursor:!0,autoHeight:!0,navigation:{enabled:!0,prevEl:".LTVProgramChannels__navArrow-left",nextEl:".LTVProgramChannels__navArrow-right"},breakpoints:{768:{slidesPerView:3.2,autoHeight:!1}}},{default:k(()=>[(f(!0),x(P,null,T(g(b),(l,v)=>(f(),B(n,{key:v,class:"border border-solid border-grey-border rounded-md"},{default:k(()=>[w(c,{to:`/tvprograma/${l.id}`,class:"pt-6 pb-5 border-b border-solid border-grey-border block bg-transparent hover:bg-[#e7e7e7]"},{default:k(()=>[p("img",{class:"block max-w-full h-auto mx-auto min-h-10 max-h-10 object-cover",src:`https://lib.lrytas.lt/api/tv/gfx/${l.id}.png`,alt:""},null,8,rt)]),_:2},1032,["to"]),p("div",at,[(f(!0),x(P,null,T(l.schedules,(L,D)=>(f(),B(_,{key:D,time:L.t,state:L.state,content:L.n},null,8,["time","state","content"]))),128))])]),_:2},1024))),128))]),_:1},8,["modules"])])}}},it={class:"pt-11 bg-white md:bg-[#f6f6f6]"},ct={class:"container-custom"},dt={class:"md:bg-white pt-9 pb-8 rounded-[4px] md:shadow-light min-w-[100px] max-w-[860px]"},ut={class:"md:border-b border-solid border-grey-border"},pt={class:"text-3xl mb-6 md:pl-9 font-headline"},mt={class:"md:px-8 md:pb-5"},_t={class:"md:pl-8 mt-5"},bt={__name:"index",async setup(y){let i,m;const b=S([]),e=S([]),s=S(null),_=Y().path,{data:n,error:a}=([i,m]=M(()=>C("https://lib.lrytas.lt/api/tv/data.json","$k000zcJtHv")),i=await i,m(),i),{data:l}=([i,m]=M(()=>C(`https://api.lrytas.lt/general/api/categories?filters[slug][$eq]=${_}`,"$d9AlfvMhZ1")),i=await i,m(),i);a.value&&console.error("[Getting LIVE error]:",a.value),n.value&&F(n.value);const v=[{content:{width:995,height:100,position_name:"995x100"},tpl:"ad"}],L=[{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"}],D=t=>{const r=(t.getDate()<10?"0":"")+t.getDate(),d=(t.getMonth()+1<10?"0":"")+(t.getMonth()+1);return`${t.getFullYear()}-${d}-${r}`},A=$(()=>{const t={weekday:"short"},r={month:"numeric",day:"numeric"},d=[];for(let h=0;h<7;h++){const u=new Date;h!==0&&u.setDate(u.getDate()+h),d.push({fullDate:u,weekDay:u.toLocaleDateString("lt-LT",t),date:u.toLocaleDateString("lt-LT",r).replace("-","."),shortDate:D(u)})}return Object.freeze(d)});s.value={day:A.value[0],index:0};function F(t){const r=t.filter(d=>d);b.value=r,e.value=Q(r.map(d=>d.l))}const j=$(()=>s.value?e.value.filter(r=>r&&r.l&&r.l.length>0).map(r=>{const d=r.l.filter(h=>{var u;return h.d===((u=s.value)==null?void 0:u.day.shortDate)}).pop();return{n:r.n,id:r.id,schedules:d?d.l:[]}}):[]),z=t=>{s.value=t},o=$(()=>l.value&&l.value.data&&l.value.data[0]&&l.value.data[0].attributes?l.value.data[0].attributes:null);return K({title:()=>{var t;return(t=o==null?void 0:o.value)==null?void 0:t.seo_title},description:()=>{var t;return(t=o==null?void 0:o.value)==null?void 0:t.seo_description},meta:[{property:"og:title",hid:"og:title",content:()=>{var t;return(t=o==null?void 0:o.value)==null?void 0:t.seo_title}},{name:"og:description",hid:"og:description",content:()=>{var t;return(t=o==null?void 0:o.value)==null?void 0:t.seo_description}},{name:"description",hid:"description",content:()=>{var t;return(t=o==null?void 0:o.value)==null?void 0:t.seo_description}}]}),(t,r)=>{const d=nt,h=lt,u=G,I=U;return f(),x("div",it,[p("div",ct,[w(I,{"top-content":v,"sidebar-content":L},{default:k(()=>[p("div",dt,[p("div",ut,[p("h1",pt,V(g(o)&&g(o).title?g(o).title:"TV programa"),1),p("div",mt,[w(d,{value:g(s),"week-days":g(A),onInput:z},null,8,["value","week-days"])])]),p("div",_t,[w(u,null,{default:k(()=>{var E,N;return[w(h,{schedules:g(j),day:(N=(E=g(s))==null?void 0:E.day)==null?void 0:N.shortDate},null,8,["schedules","day"])]}),_:1})])])]),_:1})])])}}};export{bt 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.