PageSourceSearch

https://www.apollo.lv/build-mm-v6/bundle-23f718645de61eee7f45.js

js apollo.lv collected 2026-10-02 07:30:39 UTC 6,857 bytes, 10 lines download raw bytes

1(function(){try{var c=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},o=new c.Error().stack;o&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[o]="36c981d2-8673-4fb3-b6f5-99fd786066bb",c._sentryDebugIdIdentifier="sentry-dbid-36c981d2-8673-4fb3-b6f5-99fd786066bb")}catch(n){}})(),(self.webpackChunkmysterious_monoceros=self.webpackChunkmysterious_monoceros||[]).push([[3393],{93393:(c,o,n)=>{n.r(o),n.d(o,{default:()=>l});var h=function(){var t=this,a=t._self._c;return a("div",{staticClass:"wrc-overall",class:{flex:!t.isPhone}},[a("RallySchedule",{attrs:{isOverall:!0},on:{activeRally:t.getActiveRally}}),t._v(" "),a("div",{staticStyle:{flex:"1"}},[a("div",{class:t.isPhone?"space--s":"space--sm"}),t._v(" "),t.rally.name?a("GroupHeading",{attrs:{"block-branding":t.blockBranding,size:"m"}}):t._e(),t._v(" "),t.stages&&t.stages.stage_times&&t.stages.stage_times.length?a("div",{staticClass:"wrc-scrolling-container"},[a("table",{staticClass:"wrc-content__table"},[t._m(0),t._v(" "),a("tbody",t._l(t.stages.stage_times,function(s,v){return s.didnt_finish?t._e():a("tr",{key:s.id},[a("td",{staticClass:"wrc-content__table--col-1"},[t._v(t._s(v+1))]),t._v(" "),a("td",{staticClass:"wrc-content__table--col-2 flex flex--align-items-center"},[a("img",{attrs:{src:s.entrant.driver.country?"https://f.pmo.ee/flags/"+s.entrant.driver.country+".svg":"/v6/img/icons/ana.svg",width:"21.6",height:"21.6",role:"presentation",alt:""}}),t._v(`
2
3              `+t._s(t.getCorrectName(s.entrant.driver.name))+`
4            `)]),t._v(" "),a("td",{staticClass:"wrc-content__table--col-3 flex flex--align-items-center"},[a("img",{attrs:{src:s.entrant.codriver.country?"https://f.pmo.ee/flags/"+s.entrant.codriver.country+".svg":"/v6/img/icons/ana.svg",width:"21.6",height:"21.6",role:"presentation",alt:""}}),t._v(`
5              `+t._s(t.getCorrectName(s.entrant.codriver.name))+`
6            `)]),t._v(" "),a("td",{staticClass:"stage-manufacture-logo"},[a("img",{staticStyle:{margin:"0 auto","vertical-align":"middle"},attrs:{src:"/v6/img/logos/cars/"+s.entrant.manufacturer.toLowerCase()+".svg",width:"24",height:"auto",role:"presentation",alt:""}})]),t._v(" "),a("td",[t._v(t._s(s.entrant.class))]),t._v(" "),a("td",{staticClass:"wrc-content__table--col-6"},[t._v(t._s(s.time))]),t._v(" "),a("td",{staticClass:"wrc-content__table--col-7"},[v!==0?[t._v("+ "+t._s(t.getCorrectTime(s.diff)))]:t._e()],2)])}),0)])]):t._e()],1)],1)},g=[function(){var e=this,t=e._self._c;return t("thead",[t("tr",{staticClass:"wrc-content__table--header"},[t("th",{staticClass:"wrc-content__table--col-1"},[e._v("Koht")]),e._v(" "),t("th",{staticClass:"wrc-content__table--col-2"},[e._v("S\xF5itja")]),e._v(" "),t("th",{staticClass:"wrc-content__table--col-3"},[e._v("Kaardilugeja")]),e._v(" "),t("th",[e._v("Auto")]),e._v(" "),t("th",[e._v("Klass")]
6),e._v(" "),t("th",{staticClass:"wrc-content__table--col-6"},[e._v("Aeg")]),e._v(" "),t("th",{staticClass:"wrc-content__table--col-7"},[e._v("Vahe liidriga")])])])}];h._withStripped=!0;var y=n(99337),f=n(32661),m=(e,t,a)=>new Promise((s,v)=>{var u=d=>{try{_(a.next(d))}catch(C){v(C)}},i=d=>{try{_(a.throw(d))}catch(C){v(C)}},_=d=>d.done?s(d.value):Promise.resolve(d.value).then(u,i);_((a=a.apply(e,t)).next())}),p={name:"wrc-table",data(){return{rally:[],stages:[],activeRally:"current"}},props:{currentRally:{type:String,default:"current"}},created:function(){let e=this;e.getData(),setInterval(function(){e.getData()},6e4)},methods:{getData:function(){return m(this,null,function*(){try{this.rally=yield this.APIService.wrc.rallyById(this.activeRally);let e=yield this.APIService.wrc.rallyEntrants();this.stages=this.rally.stages.filter(t=>t.stage_times&&t.stage_times.length),this.stages&&this.stages.length&&(this.stages=this.stages[this.stages.length-1],this.stages.stage_times.forEach(t=>{t.entrant=e.find(a=>a.id===t.entrant)}),this.stages.stage_times=this.stages.stage_times.sort(function(t,a){return t.time.localeCompare(a.time)}))}catch(e){console.error("Error loading data!",e)}})},getCorrectTime(e){let t=e.replace(/^0+/,"");return t=t.indexOf(":")==0?t.substring(1):t,t.slice(0,-2)},getCorrectName(e){if(!e)return"";if(e.length>16){let t=e.split(" ");return t.length?t[0].slice(0,1)+"."+t[1]:t[t.length-1]}return e},getActiveRally(e){this.activeRally=e,this.getData()}},computed:{blockBranding(){var e;let t=`${this.rally.name} etapi tulemusi veel ei ole`;return(e=this.stages)!=null&&e.shortcode&&(t=`${this.rally.name} \xFCldseis peale ${this.stages.shortcode}`),{headline:t,mobileHeadline:t}}},components:{GroupHeading:f.A,RallySchedule:y.A}},w=p,b=n(14486),r=(0,b.A)(w,h,g,!1,null,"038461f2",null),l=r.exports},99337:(c,o,n)=>{n.d(o,{A:()=>b});var h=function(){var l=this,e=l._self._c;return l.rally&&l.rally.length?e("div",{staticClass:"wrc-rally",class:{flex:l.isPhone}},l._l(l.rally,function(t){return e("div",{staticClass:"wrc-rally__item",class:{"flex flex--align-items-center":!l.isPhone,active:t.active&&l.activeRally==="current"||t.id===l.activeRally,disabled:t.stages_count===0},attrs:{"data-id":"wrc-rally-"+t.id},on:{click:function(a){return l.isActiveElement(t)}}},[e("img",{staticClass:"wrc-rally__flag",attrs:{src:"https://f.pmo.ee/flags/"+t.country.iso2+".svg",width:"21.6",height:"21.6",role:"presentation",alt:""}}),l._v(" "),e("div",{staticClass:"wrc-rally__name"},[l._v(l._s(t.name))]),l._v(" "),l._l(t.comment,function(a){return e("div",{staticClass:"wrc-rally__text"},[l._v(`
7      `+l._s(a.comment)+`
8    `)])})],2)}),0):l._e()},g=[];h._withStripped=!0;var y=(r,l,e)=>new Promise((t,a)=>{var s=i=>{try{u(e.next(i))}catch(_){a(_)}},v=i=>{try{u(e.throw(i))}catch(_){a(_)}},u=i=>i.done?t(i.value):Promise.resolve(i.value).then(s,v);u((e=e.apply(r,l)).next())}),f={name:"wrc-rally-schedule",props:{isOverall:{type:Boolean,default:!1}},data(){return{rally:[],activeRally:"current"}},created:function(){this.getRally(),this.isPhone&&setTimeout(()=>{(document.getElementsByClassName("wrc-rally__item active")&&document.getElementsByClassName("wrc-rally__item active")[0]).scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},1e3)},methods:{getRally(){return y(this,null,function*(){try{let r=yield this.APIService.wrc.rallies(),l=[];this.rally=r.sort(function(e,t){return new Date(e.start)-new Date(t.start)}),this.rally.forEach(e=>{e.disabled=moment().isAfter(moment(e.end).format()),this.isOverall?e.active=e.rally_times.length>0:e.active=e.stages_count!==0,e.active&&l.push(e.id)}),this.activeRally=l[l.length-1],this.$emit("activeRally",l[l.length-1]),this.loading=!1}catch(r){}})},isActiveElement(r){this.activeRally=r.id,this.$emit("activeRally",r.id)}}},m=f,p=n(14486),w=(0,p.A)(m,h,g,!1,null,"5ce5e056",null),b=w.exports}}]);
9
10//# sourceMappingURL=bundle-23f718645de61eee7f45.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.