1"use strict";(globalThis.webpackChunk_vb_frontend=globalThis.webpackChunk_vb_frontend||[]).push([[8517],{1969(e,t,a){a.d(t,{c:()=>o});const o=Object.freeze({LRT_HD:{channelId:0,className:"h-channel-tv-hd",imagePathHorizontal:"/images/bg/bg-media-block-logo-lrt-hd-horizontal.jpg",logo:"SvgLogoTvHd"},HD_PLUS:{channelId:1,className:"h-channel-plus-hd",imagePathHorizontal:"/images/bg/bg-media-block-logo-hd-plus-horizontal.jpg",logo:"SvgLogoPlusHd",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-plius"},LITUANICA:{channelId:2,className:"h-channel-lituanica",imagePathHorizontal:"/images/bg/bg-media-block-logo-lituanica-horizontal.jpg",logo:"SvgLogoLituanica",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-lituanica"},RADIO:{channelId:3,className:"h-channel-radio",imagePathHorizontal:"/images/bg/bg-media-block-logo-radio-horizontal.jpg",logo:"SvgLogoRadio",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-radijas"},CLASSIC:{channelId:4,className:"h-channel-classic",imagePathHorizontal:"/images/bg/bg-media-block-logo-classic-horizontal.jpg",logo:"SvgLogoClassic",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-klasika"},OPUS:{channelId:5,className:"h-channel-opus",imagePathHorizontal:"/images/bg/bg-media-block-logo-opus-horizontal.jpg",logo:"SvgLogoOpus",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-opus"},LRT:{channelId:6,className:"h-channel-lrt",imagePathHorizontal:"/images/bg/bg-media-block-logo-lrt-horizontal.jpg",logo:"SvgLogoLrt",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-televizija"},LRT100:{channelId:36,className:"h-channel-lrt-100",imagePathHorizontal:"/images/bg/bg-media-block-logo-lrt-horizontal.jpg",logo:"SvgLogoLrt",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-100"},PODCAST:{channelId:7,className:"h-channel-podcast",imagePathHorizontal:"/images/bg/bg-media-block-logo-lrt-horizontal.jpg",logo:"SvgLogoLrt",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-televizija"},EPIKA_VOD:{channelId:101,className:"h-channel-epika",logo:"SvgLogoLrt",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-televizija"},EPIKA_SERIAL:{channelId:102,className:"h-channel-epika",logo:"SvgLogoLrt",url:"https://www.lrt.lt/mediateka/tiesiogiai/lrt-televizija"}})},5627(e,t,a){a.d(t,{Tm:()=>o,Tr:()=>i,sq:()=>n});const o="[email protected]",n={xxl:"1287x836",xl:"756x425",lg:"615x345",md:"393x221",sm:"282x158",xs:"150x84"},i=Object.freeze({ASC:"asc",DESC:"desc"})},1701(e,t,a){a.d(t,{Eh:()=>l,R4:()=>s,eY:()=>n,kb:()=>i,sG:()=>r});var o=a(1969);const n=(e,t)=>{const a=Object.keys(o.c).find(a=>{var n,i;return(null===(n=o.c[a])||void 0===n?void 0:n.channelId)===e||(null===(i=o.c[a])||void 0===i?void 0:i.className)===t});return a?o.c[a]:null},i=e=>[o.c.EPIKA_SERIAL.channelId,o.c.EPIKA_VOD.channelId].includes(e),l=e=>13===e.id,s=e=>31===e.id,r=e=>l(e)||s(e)},9655(e,t,a){a.d(t,{ff:()=>n,kG:()=>l,sL:()=>i});const o=e=>e instanceof Date&&!isNaN(e),n=e=>{const t=new Date(e);if(!o(t))return!0;return Math.floor((new Date-t)/1e3)/31536e3/2592e3/86400>1},i=({date:e,tr:t})=>{const a=+e.slice(0,4),n=+e.slice(5,7),i=+e.slice(8,10),l=+e.slice(11,13),s=+e.slice(14,16),r=new Date(a,n-1,i,l,s);if(!o(r))return null;const d=Math.floor((new Date-r)/1e3);let c=d/31536e3;return d<0?null:c>1?t.date.xBefore(`${Math.floor(c)} ${t.date.y}`):(c=d/2592e3,c>1?t.date.xBefore(`${Math.floor(c)} ${t.date.mon}`):(c=d/86400,c>1?t.date.xBefore(`${Math.floor(c)} ${t.date.d}`):(c=d/3600,c>1?t.date.xBefore(`${Math.floor(c)} ${t.date.h}`):(c=d/60,c>1?t.date.xBefore(`${Math.floor(c)} ${t.date.min}`):t.date.xBefore(`${Math.floor(d)} ${t.date.sec}`)))))},l=e=>{const t=new Date(null);return t.setSeconds(e),t.toISOString().slice(11,19).replace(/^00:/,"")}},7247(e,t,a){a.d(t,{$z:()=>s,Pt:()=>c,Sm:()=>n,jp:()=>r,kN:()=>d,qn:()=>l,vA:()=>i});var o=a(6917);const n=()=>location.hash.substring(1).split("&").filter(e=>!!e).reduce((e,t)=>{const a=t.split("=");return a[0]&&a[1]&&(e[a[0]]=a[1]),e},{}),i=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},l=e=>{var t;return null===(t=i())||void 0===t?void 0:t[e]},s=()=>o.SG?o.VT:"",r=(e,t={},a=[])=>{const o=Object.keys(t).reduce((e,o)=>{const n=[null,void 0,""].includes(t[o]);return(!a.length||a.includes(o))&&!n&&(e[o]=t[o]),e},{}),n=new URLSearchParams(o).toString();return n?`${e}?${n}`:e},d=(e,t={},a=window.location.origin)=>{const o=new URL(e,a);
1return Object.keys(t).forEach(e=>{""===t[e]?o.searchParams.set(e,""):o.searchParams.set(e,t[e])}),o.pathname+"?"+o.searchParams.toString()},c=e=>{const t=window.location.origin,a=window.location.pathname.replace(/\/$/,"");try{const o=new URL(e,t);return a===o.pathname.replace(/\/$/,"")}catch(t){return a===e.replace(/\/$/,"")}}},9808(e,t,a){a.d(t,{D:()=>r,r:()=>m});var o=a(5690),n=a(6917),i=a(1701),l=a(9655),s=a(5627);const r=(e,t=s.sq.lg)=>e.full_img?e.full_img:(0,i.kb)(e.channel)?e.img:e.img_path_prefix?`${e.img_path_prefix}${t}${e.img_path_postfix}`:"/images/no-image.png",d=e=>{const t=!!e.is_epika,a=!!e.is_movie,o=!!e.is_series;return{isAudio:!!e.is_audio,isVideo:!!e.is_video,category:e.category_title||null,hideIcon:!1,href:e.category_url||null,text:e.item_date,isEpika:t,...t&&{...a&&{category:"Filmai",href:"https://epika.lrt.lt/filmai",target:"_blank"},...o&&{category:"Serialai",href:"https://epika.lrt.lt/serialai",target:"_blank"},text:e.epika_valid_days&&e.epika_valid_days>0?`Įrašas pasiekiamas dar ${e.epika_valid_days} d.`:""}}},c=(e,t)=>{const a=!!e.is_audio,o=!!e.is_epika,n=a?((e,t)=>{const{category_img_path_prefix:a}=e;if(!a){const{imagePathHorizontal:e}=t||{};return e}return`${e.category_img_path_prefix}${s.sq.lg}${e.category_img_path_postfix}`})(e,t):null;return{hasArticleAudioVideo:!!e.article_has_audiovideo,isAudio:a,isEpika:o,isForDisabled:1===e.gestures||1===e.cc||1===e.specialsound,isHorizontal:!!e.photo_horizontal,isHorizontalSmall:!!e.photo_horizontal_small,isPhoto:!!e.photo_id,isVideo:!!e.is_video,isPhotoVertical:e.img_w_h<1,isPhotoSquare:[1,"1","1.0"].includes(e.img_w_h),isPlayButton:!!e.is_audio||!!e.is_video,backgroundImagePath:n,duration:e.duration_str??(e.duration_sec&&(0,l.kG)(e.duration_sec))??null,heritage:1===e.heritage,href:e.url||null,imagePath:r(e),n18:e.n18,photoCount:e.photo_count||0,photoId:e.photo_id||null,readCount:e.read_count||0,imageAlt:e.imageAlt,showPlayIconPlaceholderText:!1}},m=e=>{const t=(0,i.eY)(e.channel,e.channelClass)||{},a=e.url||"",l=(0,o.J)(a),s=!e.hideMediaBlock;return e.url=n.SG?l:a,{badgesHtml:e.badges_html||"",channelData:t,id:e.id,infoBlock:d(e),mediaBlock:s&&c(e,t),fullHref:l,href:e.url,fbShareCount:e.fb_share_count||0,title:e.title,postfix:e.subtitle,target:e.target}}},1615(e,t,a){a.d(t,{A:()=>r});var o=a(9347),n=a(3861),i=a(6730);const l=["aria-label"],s={class:"btn__wrapper"},r={__name:"BaseButton",props:{isActive:Boolean,iconClass:String,iconSize:String,iconVariant:String,iconAfterVariant:String,label:String,loading:Boolean,loadingPosition:{type:String,default:"",validator:e=>["","right"].includes(e)},size:String,text:String,textClass:String,variant:String,role:{type:String,default:"button"},type:{type:String,default:"button"}},emits:["click","mouseenter"],setup(e,{emit:t}){const a=e,r=t,d=((0,o.useSlots)(),(0,o.computed)(()=>["btn",a.loading&&"btn--loading",a.loadingPosition&&`btn--loading-${a.loadingPosition}`,a.variant&&`btn--${a.variant}`,a.size&&`btn--${a.size}`,a.isActive&&"is-active"]));return(t,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("button",(0,o.mergeProps)({role:e.role,type:e.type},{"aria-label":e.label||e.text,class:d.value,onMouseenter:a[0]||(a[0]=e=>r("mouseenter",e)),onClick:a[1]||(a[1]=e=>r("click",e))}),[(0,o.createElementVNode)("span",s,[e.loading?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(i.A),{key:0})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[e.iconVariant?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(n.A),{key:0,class:(0,o.normalizeClass)(e.iconClass),size:e.iconSize,type:e.iconVariant},null,8,["class","size","type"])):(0,o.createCommentVNode)("",!0),(0,o.renderSlot)(t.$slots,"icon"),e.text||t.$slots.text?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:(0,o.normalizeClass)(["btn__text",e.textClass])},[(0,o.renderSlot)(t.$slots,"text",{},()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.text),1)])],2)):(0,o.createCommentVNode)("",!0),e.iconAfterVariant?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(n.A),{key:2,type:e.iconAfterVariant},null,8,["type"])):(0,o.createCommentVNode)("",!0)],64)),"right"===e.loadingPosition?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(i.A),{key:2})):(0,o.createCommentVNode)("",!0)])],16,l))}}},1916(e,t,a){a.d(t,{A:()=>n});var o=a(9347);const n={__name:"ButtonGroup",props:{variant:String,listClass:String,wrap:Boolean},setup(e){const t=e,a=(0,o.computed)(()=>["button-group",t.variant&&`button-group--${t.variant}
1`,t.wrap&&"button-group--wrap"].filter(Boolean));return(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(a.value)},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["button-group__list",e.listClass])},[(0,o.renderSlot)(t.$slots,"default")],2),(0,o.renderSlot)(t.$slots,"after-list")],2))}}},6730(e,t,a){a.d(t,{A:()=>i});var o=a(9347);const n={key:0,class:"loading__pulse-explosion"},i={__name:"Loading",props:{size:{type:String,validator:e=>["sm"].includes(e)}},setup(e){const t=e,a=(0,o.computed)(()=>[t.size&&`loading--${t.size}`]),i=(0,o.computed)(()=>"sm"!==t.size);return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["loading",a.value])},[t[0]||(t[0]=(0,o.createElementVNode)("div",{class:"loading__pulse-center"},null,-1)),i.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",n)):(0,o.createCommentVNode)("",!0)],2))}}},8517(e,t,a){a.r(t),a.d(t,{default:()=>ce});var o=a(9347);const n={key:0,class:"my-30"};var i=a(2124),l=a(896);const s={class:"related-news-feed-head d-xs-flex align-items-xs-center justify-content-xs-between"},r={class:"d-flex align-items-center"};var d=a(1615);const c={class:"related-news-feed-countdown badge"},m={key:0,class:"related-news-feed-countdown__countdown ml-8",style:{"text-transform":"none"}};const p={name:"RelatedNewsFeedCountdown",props:{loading:Boolean,seconds:Number,visible:Boolean}};var u=a(6262);const g=(0,u.A)(p,[["render",function(e,t,a,n,i,l){return(0,o.openBlock)(),(0,o.createElementBlock)("div",c,[(0,o.createElementVNode)("strong",null,(0,o.toDisplayString)(e.$tr.label.live),1),a.visible?((0,o.openBlock)(),(0,o.createElementBlock)("span",m,(0,o.toDisplayString)(a.seconds)+" "+(0,o.toDisplayString)(e.$tr.date.sec),1)):(0,o.createCommentVNode)("",!0)])}],["__scopeId","data-v-7d75a9a6"]]),h={class:"d-flex align-items-center mt-8 mt-xs-0"},b={class:"related-news-feed-order__title mr-16"},k={class:"d-xs-none"},_={class:"d-none d-xs-inline"};var v=a(1916),f=a(5270);const w={name:"RelatedNewsFeedOrder",components:{BaseButton:d.A,ButtonGroup:v.A},data(){return{orderList:[{text:this.$tr.label.newestFirstShort,xxsText:this.$tr.label.newestFirst,value:f.Tr.DESC},{text:this.$tr.label.newestLastShort,xxsText:this.$tr.label.newestLast,value:f.Tr.ASC}]}},computed:{...(0,i.L8)(["currentOrder"])},methods:{...(0,i.i0)([l.nS,l.Cu]),async onChange(e){this[l.Cu](e),await this[l.nS]({options:{order:e}})}}},B=(0,u.A)(w,[["render",function(e,t,a,n,i,l){const s=(0,o.resolveComponent)("base-button"),r=(0,o.resolveComponent)("button-group");return(0,o.openBlock)(),(0,o.createElementBlock)("div",h,[(0,o.createElementVNode)("span",b,(0,o.toDisplayString)(e.$tr.label.newest),1),(0,o.createVNode)(r,{variant:"condensed",class:"related-news-feed-order__button-group"},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(i.orderList,t=>((0,o.openBlock)(),(0,o.createBlock)(s,{key:t.value,text:t.text,variant:t.value===e.currentOrder?"purple":"light",size:"sm",class:"related-news-feed-order__button flex-grow-1",onClick:e=>l.onChange(t.value)},{text:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",k,(0,o.toDisplayString)(t.xxsText),1),(0,o.createElementVNode)("span",_,(0,o.toDisplayString)(t.text),1)]),_:2},1032,["text","variant","onClick"]))),128))],void 0,!0),_:1})])}],["__scopeId","data-v-2dcde676"]]),x={name:"RelatedNewsFeedHead",components:{BaseButton:d.A,RelatedNewsFeedCountdown:g,RelatedNewsFeedOrder:B},data:()=>({interval:null,seconds:f.gl}),computed:{...(0,i.L8)(["isAutoloadUnavailable","updateLoading","currentOrder"])},watch:{currentOrder:{immediate:!0,handler:"startInterval"}},methods:{...(0,i.i0)([l.nS]),async fetchData(){await this[l.nS](),this.startInterval()},startInterval(){clearInterval(this.interval),this.seconds=f.gl,this.interval=setInterval(async()=>{this.seconds--,this.seconds<=0&&(clearInterval(this.interval),await this.fetchData())},1e3)}}},y=(0,u.A)(x,[["render",function(e,t,a,n,i,l){const d=(0,o.resolveComponent)("RelatedNewsFeedCountdown"),c=(0,o.resolveComponent)("base-button"),m=(0,o.resolveComponent)("RelatedNewsFeedOrder");return(0,o.openBlock)(),(0,o.createElementBlock)("div",s,[(0,o.createElementVNode)("div",r,[(0,o.createVNode)(d,{loading:e.updateLoading,seconds:i.seconds,visible:!e.isAutoloadUnavailable},null,8,["loading","seconds","visible"]),e.isAutoloadUnavailable?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)(c,{key:0,class:"related-news-feed-head__refresh-button d-none d-xs-flex ml-8",size:"sm",variant:"light",loading:e.updateLoading,onClick:l.fetchData},{icon:(0,o.withCtx)(()=>[...t[0]||(t[0]=[(0,o.createElementVNode)("svg",{class:"related-news-feed-head__refresh-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 119.4 122.88"},[(0,o.createElementVNode)("path",{d:"M83.91,26.34a43.78,43.78,0,0,0-22.68-7,42,42,0,0,0-24.42,7,49.94,49.94,0,0,0-7.46,6.09,42.07,42.07,0,0,0-5.47,54.1A49,49,0,0,0,30,94a41.83,41.83,0,0,0,18.6,10.9,42.77,42.77,0,0,0,21.77.13,47.18,47.18,0,0,0,19.2-9.62,38,38,0,0,0,11.14-16,36.8,36.8,0,0,0,1.64-6.18,38.36,38.36,0,0,0,.61-6.69,8.24,8.24,0,1,1,16.47,0,55.24,55.24,0,0,1-.8,9.53A54.77,54.77,0,0,1,100.26,108a63.62,63.62,0,0,1-25.92,13.1,59.09,59.09,0,0,1-30.1-.25,58.45,58.45,0,0,1-26-15.17,65.94,65.94,0,0,1-8.1-9.86,58.56,58.56,0,0,1,7.54-75,65.68,65.68,0,0,1,9.92-8.09A58.38,58.38,0,0,1,61.55,2.88,60.51,60.51,0,0,1,94.05,13.3l-.47-4.11A8.25,8.25,0,1,1,110,7.32l2.64,22.77h0a8.24,8.24,0,0,1-6.73,9L82.53,43.31a8.23,8.23,0,1,1-2.9-16.21l4.28-.76Z"})],-1)])]),_:1},8,["loading","onClick"]))]),(0,o.createVNode)(m)])}],["__scopeId","data-v-30beedca"]]),N={class:"related-news-feed-list p-8 pb-24 px-xs-16 pt-xs-16 px-md-24"},S={class:"related-news-feed-list__button px-16 px-xs-0"},C=["disabled"],L=["textContent"];var I=a(6730);const E={class:"related-news-feed-item__aside mr-xs-16"},V={key:0,class:"related-news-feed-item__time-before py-16 text-center"},A={class:"related-news-feed-item__body mt-8 mt-xs-0 flex-xs-grow-1"},z={class:"related-news-feed-item__head d-flex align-items-center justify-content-between py-12 px-16 px-md-24"},T={class:"d-flex align-items-center min-w-0 mr-16"},$={class:"related-news-feed-item__datetime d-flex align-items-center"},P={class:"related-news-feed-item__date"},H={class:"related-news-feed-item__time ml-8"},F={class:"related-news-feed-item__container px-16 pt-12 pb-16 px-md-24 pb-md-24 pt-md-16"},D=["innerHTML"],R=["innerHTML"];var j=a(5886);const O={ref:"embedPlaceholder",class:"related-news-feed-item-embed"},M={key:0,class:"embed-responsive embed-responsive-16by9"},q=["innerHTML"],U=["innerHTML"],G=["innerHTML"];const W={name:"RelatedNewsFeedItemEmbed",components:{Loading:I.A},props:{embed:String},computed:{is16By9(){return this.isYoutubeEmbed||this.isFacebookEmbed}
1,isYoutubeEmbed(){return this.embed.indexOf("<iframe")>=0&&this.embed.indexOf('src="https://www.youtube.com/embed')>=0},isFacebookEmbed(){return this.embed.indexOf("<iframe")>=0&&this.embed.indexOf('src="https://www.facebook.com')>=0},isWithScriptTag(){return!!this.embedScriptTagHtml},embedScriptTagHtml(){const e=this.embed.match(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi);return e&&e.length&&"string"==typeof e[0]?e[0]:null},embedScriptTag(){return(new DOMParser).parseFromString(this.embedScriptTagHtml,"text/html").querySelector("script")},embedWithoutHtml(){return this.isWithScriptTag?this.embed.replace(this.embedScriptTagHtml,""):null}},mounted(){if(this.isWithScriptTag){const e=this.embedScriptTag.getAttributeNames();if(e&&e.length){const t=document.createElement("script");t.type="text/javascript",e.forEach(e=>{const a=this.embedScriptTag.getAttribute(e);t.setAttribute(e,a)}),this.$refs.embedPlaceholder.appendChild(t)}}}},K=(0,u.A)(W,[["render",function(e,t,a,n,i,l){return(0,o.openBlock)(),(0,o.createElementBlock)("div",O,[l.is16By9?((0,o.openBlock)(),(0,o.createElementBlock)("div",M,[(0,o.createElementVNode)("div",{innerHTML:a.embed,class:"embed-responsive-item"},null,8,q)])):l.isWithScriptTag&&l.embedWithoutHtml?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,innerHTML:l.embedWithoutHtml},null,8,U)):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:2,innerHTML:a.embed},null,8,G))],512)}],["__scopeId","data-v-1643e310"]]),Y={class:"related-news-feed-item-news"},J=["innerHTML"];const Z={name:"RelatedNewsFeedItemNews",components:{NewsBlock:a(9552).A},props:{articles:{type:Array,default:()=>[]}}},Q=(0,u.A)(Z,[["render",function(e,t,a,n,i,l){const s=(0,o.resolveComponent)("NewsBlock");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Y,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.articles,(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:e.id,class:(0,o.normalizeClass)({"mt-16 mt-md-24":t>0})},[e.embed&&!e.is_audio?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,innerHTML:e.embed},null,8,J)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["related-news-feed-item-news__news-wrapper p-16",{"mt-16":!!e.embed}])},[(0,o.createVNode)(s,{data:e,"hide-media-block":!0,class:"mb-0"},null,8,["data"])],2)],2))),128))])}],["__scopeId","data-v-6558bd2a"]]);var X=a(335),ee=a(9808),te=a(5627);const ae={name:"RelatedNewsFeedItemPhoto",components:{MediaBlock:X.A},props:{item:{type:Object,required:!0}},computed:{data(){return{mediaBlock:{imagePath:(0,ee.D)(this.item,te.sq.lg),photoId:this.item.photo_id,isPhotoVertical:parseInt(this.item.photo_aspectratio)<0,description:this.item.photo_info||void 0,descriptionClass:"media-block__description--sm bg-transparent"}}}}},oe=(0,u.A)(ae,[["render",function(e,t,a,n,i,l){const s=(0,o.resolveComponent)("media-block");return(0,o.openBlock)(),(0,o.createBlock)(s,{"news-data":l.data},null,8,["news-data"])}]]);var ne=a(9655);const ie={name:"RelatedNewsFeedItem",components:{BadgeList:j.A,RelatedNewsFeedItemEmbed:K,RelatedNewsFeedItemNews:Q,RelatedNewsFeedItemPhoto:oe},props:{item:{type:Object,default:()=>({})},previousItem:Object},data:()=>({interval:null,timeBefore:null,previousItemTimeBefore:null}),computed:{...(0,i.L8)(["newlyAddedFeedItemIds"]),isItemVisible(){return this.item.photo_id||this.item.feed_item_title||this.item.feed_item_content||this.item.articles&&this.item.articles.length||this.item.embed},hasImportantBadge(){return 3===this.item.badge_id},badgeList(){return this.newlyAddedFeedItemIds.includes(this.item.feed_item_id)?[{text:"Nauja",className:"badge--blue badge-sm badge--ellipsis"}]:this.item.badge_text&&this.item.badge_class?[{text:this.item.badge_text,className:`${this.item.badge_class} badge-sm badge--ellipsis`}]:[]},date(){return this.item.date_full.slice(0,10)},time(){return this.item.date_full.slice(11,16)}},created(){this.startInterval()},unmounted(){clearInterval(this.interval)},methods:{setBeforeTime(){this.timeBefore=(0,ne.sL)({date:this.item.date_full,tr:this.$tr}),this.previousItem&&(this.previousItemTimeBefore=(0,ne.sL)({date:this.previousItem.date_full,tr:this.$tr}))},startInterval(){this.setBeforeTime(),(0,ne.ff)(this.item.date_full)||(this.interval=setInterval(()=>{this.setBeforeTime()},1e4))}}},le=(0,u.A)(ie,[["render",function(e,t,a,n,i,l){const s=(0,o.resolveComponent)("badge-list"),r=(0,o.resolveComponent)("related-news-feed-item-photo"),d=(0,o.resolveComponent)("related-news-feed-item-news"),c=(0,o.resolveComponent)("related-news-feed-item-embed");return l.isItemVisible?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["related-news-feed-item d-xs-flex align-items-xs-start",{"related-news-feed-item--important":l.hasImportantBadge}])},[(0,o.createElementVNode)("div",E,[i.timeBefore!==i.previousItemTimeBefore?((0,o.openBlock)(),(0,o.createElementBlock)("div",V,(0,o.toDisplayString)(i.timeBefore),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",A,[(0,o.createElementVNode)("div",z,[(0,o.createElementVNode)("div",T,[l.badgeList.length?((0,o.openBlock)(),(0,o.createBlock)(s,{key:0,class:"mr-4",list:l.badgeList},null,8,["list"])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",$,[(0,o.createElementVNode)("span",P,(0,o.toDisplayString)(l.date),1),(0,o.createElementVNode)("span",H,(0,o.toDisplayString)(l.time),1)])])]),(0,o.createElementVNode)("div",F,[a.item.photo_id?((0,o.openBlock)(),(0,o.createBlock)(r,{key:0,item:a.item},null,8,["item"])):(0,o.createCommentVNode)("",!0),a.item.feed_item_title?((0,o.openBlock)(),(0,o.createElementBlock)("h2",{key:1,innerHTML:a.item.feed_item_title,class:"related-news-feed-item__title"},null,8,D)):(0,o.createCommentVNode)("",!0),a.item.feed_item_content?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:2,innerHTML:a.item.feed_item_content,class:"related-news-feed-item__content text-break"},null,8,R)):(0,o.createCommentVNode)("",!0),a.item.articles&&a.item.articles.length?((0,o.openBlock)(),(0,o.createBlock)(d,{key:3,articles:a.item.articles},null,8,["articles"])):(0,o.createCommentVNode)("",!0),a.item.embed?((0,o.openBlock)(),(0,o.createBlock)(c,{key:4,embed:a.item.embed},null,8,["embed"])):(0,o.createCommentVNode)("",!0)])])],2)):(0,o.createCommentVNode)("",!0)}],["__scopeId","data-v-4de395e8"]]),se={name:"RelatedNewsFeedList",components:{Loading:I.A,RelatedNewsFeedItem:le},props:{list:{type:Array,required:!0}},computed:{...(0,i.L8)(["currentOrder","moreButtonVisible","updateLoading"]),...(0,i.aH)(["page"])},methods:{...(0,i.i0)([l.Nj]),showMore(){this[l.Nj](this.page+1)}}},re=(0,u.A)(se,[["render",function(e,t,a,n,i,l){const s=(0,o.resolveComponent)("related-news-feed-item"),r=(0,o.resolveComponent)("loading");return(0,o.openBlock)(),(0,o.createElementBlock)("div",N,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.list,(e,t)=>((0,o.openBlock)(),(0,o.createBlock)(s,(0,o.mergeProps)({item:e},{key:e.feed_item_id,"previous-item":t>0?a.list[t-1]:void 0,class:"mb-24"}),null,16,["previous-item"]))),128)),(0,o.createElementVNode)("div",S,[e.moreButtonVisible?((0,o.openBlock)(),(0,o.createElementBlock)("button",{key:0,class:"btn btn--primary w-100",type:"button",disabled:e.updateLoading,onClick:t[0]||(t[0]=(...e)=>l.showMore&&l.showMore(...e))},[e.updateLoading?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:0,textContent:(0,o.toDisplayString)(e.$tr.button.more),class:"btn__text"},null,8,L)),e.updateLoading?((0,o.openBlock)(),(0,o.createBlock)(r,{key:1})):(0,o.createCommentVNode)("",!0)],8,C)):(0,o.createCommentVNode)("",!0)])])}
1],["__scopeId","data-v-756d0ee3"]]);a(7247);const de={name:"RelatedNewsFeed",components:{RelatedNewsFeedHead:y,RelatedNewsFeedList:re},props:{dataId:{type:String,required:!0},dataCount:{type:String,default:"5"},dataLang:String},data:()=>({}),computed:{...(0,i.L8)(["currentList"]),...(0,i.aH)(["list","settings"])},async created(){this[l.LA](this.dataCount),this[l.y](this.dataId),await this[l.nS]()},methods:{...(0,i.i0)([l.nS,l.y,l.LA,l.Nj])}},ce=(0,u.A)(de,[["render",function(e,t,a,i,l,s){const r=(0,o.resolveComponent)("RelatedNewsFeedHead"),d=(0,o.resolveComponent)("RelatedNewsFeedList");return e.currentList&&e.currentList.length?((0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createVNode)(r),(0,o.createVNode)(d,{list:e.currentList,class:"mt-24"},null,8,["list"])])):(0,o.createCommentVNode)("",!0)}],["__scopeId","data-v-d8a79eca"]])}}]);
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.