1import{_ as j}from"./BdPjGbv2.js";import{c as B,s as V,n as F,d as S,u as R,o as E}from"./rYqlmPdd.js";import{f as I,L as r,M as i,u as e,N as s,T as d,S as b,_ as m,R as A,c as g,V as K,Q as M,$ as v,O as q,P as D}from"./DQsU5YNN.js";import G from"./Cpv3Flrk.js";const O={key:0,class:"grid grid-cols-12 gap-y-8 gap-x-4"},U={class:"col-span-12 md:col-span-6"},Q={class:"text-black-custom text-base font-bold"},z={class:"col-span-12 md:col-span-6"},H={class:"text-black-custom text-base"},J={class:"col-span-12 md:col-span-6"},W={class:"text-black-custom text-base font-bold"},X={key:1},Y={__name:"LPremiumInfo",setup(h){const l=B(),{user:p}=V(l),o=I(()=>{if(p.value&&p.value.subscriptions&&p.value.subscriptions.length>0){const _=p.value.subscriptions.filter(t=>t.status==="ACTIVE");if(_&&_.length>0){const t=_.pop();if(t)return t}return null}return null});return(_,t)=>{const u=S;return r(),i("div",null,[e(l).isSubscribed&&e(o)?(r(),i("div",O,[s("div",U,[t[1]||(t[1]=s("div",{class:"text-grey-custom text-sm"}," Prenumeratos tipas ",-1)),s("div",Q,d(e(o).plan.title),1)]),s("div",z,[t[2]||(t[2]=s("div",{class:"text-grey-custom text-sm"}," PratÄsimas ",-1)),s("div",H," Paslauga "+d(e(o).subscriptionType==="recurring"?"bus":"nebus")+" automatiÅ¡kai pratÄsiama. ",1)]),s("div",J,[t[3]||(t[3]=s("div",{class:"text-grey-custom text-sm"}," Galiojimo data: ",-1)),s("div",W,d(e(o).validFrom.split("T")[0])+" â "+d(e(o).validUntil.split("T")[0]),1)]),t[4]||(t[4]=s("div",{class:"col-span-12 md:col-span-6"},[s("div",{class:"text-grey-custom text-sm"}," Prenumeratos nutraukimas "),s("div",{class:"text-black-custom text-base"},[b(" NorÄdami nutraukti prenumeratÄ
susisiekite: "),s("a",{href:"mailto:[email protected]",class:"text-base text-green-custom underline underline-offset-4"},"[email protected]")])],-1))])):(r(),i("div",X,[t[6]||(t[6]=s("div",{class:"text-black-custom text-base font-bold mb-4"}," Neturite galiojanÄios Lrytas Premium prenumeratos. ",-1)),m(u,{type:"green",onClick:t[0]||(t[0]=c=>("navigateTo"in _?_.navigateTo:e(F))("/premium"))},{default:A(()=>t[5]||(t[5]=[b(" Pirkti Lrytas Premium ")])),_:1})]))])}}},Z={class:"pt-11"},tt={class:"container-custom pb-8"},st={class:"grid grid-cols-12 gap-4"},et={class:"col-span-12 lg:col-span-3"},ot={class:"col-span-12 lg:col-span-8 lg:col-start-5"},at={class:"bg-grey-light py-11 min-h-screen"},_t={class:"container-custom"},rt={key:1,class:"grid grid-cols-12 gap-x-[18px] gap-y-[22px] mt-[22px]"},nt={key:2,class:"flex items-center justify-center my-11"},y=8,x="lrytas-premium",ct={__name:"index",async setup(h){let l,p;const o=g(1),_=g(!1),t=g(10),u=g([]),{data:c}=([l,p]=K(()=>R(`https://kolumbus-api.lrytas.lt/query/?tag_slugs=${x}&count=8&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,props.categories__AS__categories`,"$75ocmsxC5K")),l=await l,p(),l),k=()=>{o.value+1<=t.value&&(o.value++,C())},C=async()=>{try{_.value=!0;const a=await $fetch(`/query/?tag_slugs=${x}&count=${y}&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,props.categories__AS__categories&page=${o.value}`,{method:"GET",baseURL:"https://kolumbus-api.lrytas.lt",params:{page:o.value}});a&&a.result&&($(a.result),t.value=Math.round(a.total_matches/y)),_.value=!1}catch(a){console.log(a)}},$=a=>{a.forEach(n=>{u.value.push(n)})};return(a,n)=>{const P=j,L=Y,T=G,N=E,w=S;return r(),i("div",Z,[s("div",tt,[s("div",st,[s("div",et,[m(P)]),s("div",ot,[n[0]||(n[0]=s("h2",{class:"text-black-custom text-2xl mb-8"}," Lrytas Premium ",-1)),m(L)])])]),s("div",at,[s("div",_t,[n[2]||(n[2]=s("h2",{class:"text-black-custom text-2xl mb-8"}," Naujausi straipsniai ",-1)),!a.pending&&e(c)&&e(c).result&&e(c).result.length>0?(r(),M(T,{key:0,posts:e(c).result,type:"listing2"},null,8,["posts"])):v("",!0),e(u)&&e(u).length>0?(r(),i("div",rt,[(r(!0),i(q,null,D(e(u),f=>(r(),i("div",{key:f.kpm3id,class:"col-span-12 lg:col-span-3"},[m(N,{post:f},null,8,["post"])]))),128))])):v("",!0),e(o)<e(t)?(r(),i("div",nt,[m(w,{type:"green",onClick:k},{default:A(()=>n[1]||(n[1]=[b("Daugiau naujienų")])),_:1})])):v("",!0)])])])}}};export{ct 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.