1(function(){try{var l=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},s=new l.Error().stack;s&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[s]="577fe3aa-79ea-45de-92e4-75ea1b036578",l._sentryDebugIdIdentifier="sentry-dbid-577fe3aa-79ea-45de-92e4-75ea1b036578")}catch(m){}})(),(self.webpackChunkmysterious_monoceros=self.webpackChunkmysterious_monoceros||[]).push([[397],{397:(l,s,m)=>{"use strict";m.r(s),m.d(s,{default:()=>p});var f=function(){var e=this,n=e._self._c;return e.posts.length?n("div",{staticClass:"feed-liveblog"},e._l(e.posts,function(i){return n("div",{staticClass:"feed-liveblog__post"},[n("div",{staticClass:"feed-liveblog__dot"}),e._v(" "),n("div",{staticClass:"feed-liveblog__post-time"},[i.timer&&i.timer.time&&i.timer.translation?[e._v(` 2 `+e._s(e.__(i.timer.translation,i.timer.time))+`, 3 `)]:[e._v(" "+e._s(e.__("just now"))+", ")],e._v(` 4 `+e._s(e.moment(i.time*1e3).format("HH.mm"))+` 5 `)],2),e._v(" "),n("div",{staticClass:"feed-liveblog__content",domProps:{innerHTML:e._s(i.heading||e.getFirstSentence(i.content))}})])}),0):e._e()},c=[];f._withStripped=!0;var t=m(72319),g=(o,e,n)=>new Promise((i,h)=>{var M=d=>{try{v(n.next(d))}catch(y){h(y)}},b=d=>{try{v(n.throw(d))}catch(y){h(y)}},v=d=>d.done?i(d.value):Promise.resolve(d.value).then(M,b);v((n=n.apply(o,e)).next())}),r={name:"feed-liveblog",data:()=>({posts:[]}),props:{liveblogId:{type:Number,required:!0},entriesLimit:{type:Number,default:3},dateFormat:{type:String,default:"HH:mm"},entriesFrom:{type:String,default:"keyEvents",validator:o=>["keyEvents","posts",void 0].includes(o)}},created(){this.fetchPosts()},methods:{calcTimeDiff:t.calcTimeDiff,fetchPosts(){return g(this,null,function*(){try{let o,e=[];this.entriesFrom==="keyEvents"?(o=yield this.APIService.liveblog.keyEvents(this.liveblogId,{limit:3}),e=o):(o=yield this.APIService.liveblog.byId(this.liveblogId,{limit:3}),e=o.posts),e&&e.length&&(this.entriesLimit&&(e=e.slice(0,this.entriesLimit)),e.sort((n,i)=>i.time-n.time),e.forEach(n=>n.timer=(0,t.calcTimeDiff)(n.time)),this.posts=e)}catch(o){console.log(o)}setTimeout(()=>g(this,null,function*(){yield this.fetchPosts()}),1e4)})},getFirstSentence(o){const e=document.createElement("div");e.innerHTML=o;const n=e.textContent||e.innerText||"",i=n.match(/.*?[.!?](\s|$)/);return i?i[0].trim():n.trim()}}},u=r,a=m(14486),w=(0,a.A)(u,f,c,!1,null,"11d573dd",null),p=w.exports},72319:l=>{const s={et:{"01":" jaan ","02":" veebr ","03":" m\xE4rts ","04":" aprill ","05":" mai ","06":" juuni ","07":" juuli ","08":" aug ","09":" sept ",10:" okt ",11:" nov ",12:" dets "},en:{"01":" Jan ","02":" Feb ","03":" Mar ","04":" Apr ","05":" May ","06":" June ","07":" July ","08":" Aug ","09":" Sept ",10:" Oct ",11:" Nov ",12:" Dec "},lv:{"01":" janv. ","02":" febr. ","03":" marts ","04":" apr. ","05":" maijs ","06":" j\u016Bn. ","07":" j\u016Bl. ","08":" aug. ","09":" sept. ",10:" okt. ",11:" nov. ",12:" dec. "},ru:{"01":" \u044F\u043D\u0432 ","02":" \u0444\u0435\u0432 ","03":" \u043C\u0430\u0440 ","04":" \u0430\u043F\u0440 ","05":" \u043C\u0430\u0439 ","06":" \u0438\u044E\u043D ","07":" \u0438\u044E\u043B ","08":" \u0430\u0432\u0433 ","09":" \u0441\u0435\u043D ",10:" \u043E\u043A\u0442 ",11:" \u043D\u043E\u044F ",12:" \u0434\u0435\u043A "},uk:{"01":" \u044F\u043D\u0432 ","02":" \u0444\u0435\u0432 ","03":" \u043C\u0430\u0440 ","04":" \u0430\u043F\u0440 ","05":" \u043C\u0430\u0439 ","06":" \u0438\u044E\u043D ","07":" \u0438\u044E\u043B ","08":" \u0430\u0432\u0433 ","09":" \u0441\u0435\u043D ",10:" \u043E\u043A\u0442 ",11:" \u043D\u043E\u044F ",12:" \u0434\u0435\u043A "}};function m(f){const c=moment(),t=moment(f*1e3);let r=[{format:"min",time:c.diff(t,"minutes"),speed:6e4},{format:"h",time:c.diff(t,"hours"),speed:36e5},{format:"day",time:c.startOf("day").diff(t,"days"),speed:864e5},{format:"week",time:c.diff(t,"weeks")},{format:"years",time:moment().year()-moment(t).year()}].filter(a=>a.time>0).pop()||{},u={et:{week:"D. MMMM",years:"D. MMM YYYY",day:"D. MMMM"},en:{week:"D MMM",years:"D MMM YYYY",day:"D MMM"},lv:{week:"D. MMMM",years:"D. MMM. YYYY",day:"D. MMMM"},ru:{day:"D",month:"MM",year:"YYYY"},uk:{day:"D",month:"MM",year:"YYYY"}};switch(r.format){case"years":if(window.currentSection.language==="ru"||window.currentSection.language==="uk"){const a=window.currentSection.language;r.translation=moment(t).format(u[a].day)+s[a][moment(t).format(u[a].month)]+moment(t).format(u[a].year)}else r.translation=moment(t).format(u[window.currentSection.language].years);break;case"week":if(window.currentSection.language==="ru"||window.currentSection.language==="uk"){const a=window.currentSection.language;r.translation=moment(t).format(u[a].day)+s[a][moment(t).format(u[a].month)]}else r.translation=moment(t).format(u[window.currentSection.language].week);break;case"day":if(window.currentSection.language==="ru"||window.currentSection.language==="uk"){const a=window.currentSection.language;r.translation=moment(t).format(u[a].day)+s[a][moment(t).format(u[a].month)]}else r.translation=moment(t).format(u[window.currentSection.language].day);break;case"h":r.translation="Yesterday";break;default:r.translation="%s min ago"}return t.isAfter(moment().startOf("day"))&&(r.translation="Today"),r.postTime=t,r}l.exports={calcTimeDiff:m}}}]); 6 7//# sourceMappingURL=bundle-6aabc4cfe9535e6fe81b.js.map
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.