1(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{503:function(e,t,n){"use strict";n.r(t);var r=n(0),o=(n(20),n(5),n(30),n(45)),l=n(178),d=n(27),v=n(4),c=n(905),h=n(16);n(2),n(179),n(3);var m=function(e){var t=e.team,n=e.participants,r=e.tournaments,o=e.tournamentSeasons,l=n[t.id].countryCode,d=[];for(var v in o){var c=o[v];if("cup"!==c.seasonType)r[c.tournamentId].countryCode===l&&d.push(c)}for(var h of d)if(new Date(h.startDate)<=new Date&&new Date(h.endDate)>=new Date)return h;return d.length>0?d.sort(((a,b)=>new Date(b.startDate)-new Date(a.startDate)))[0]:Object.values(o).sort(((a,b)=>new Date(b.startDate)-new Date(a.startDate)))[0]};t.default={mixins:[o.default,l.default,c.a],components:d.a,computed:Object.assign({},Object(h.d)({publicationName:e=>e.config.publication.publicationName,context:e=>e.context,articles:e=>e.bundles.teasers,tagsWithSeoHeader:e=>{var t;return null==(t=e.config.meta)?void 0:t.tagsWithSeoHeader},shouldHaveSeoHeader:e=>{var t;return Object.keys((null==(t=e.config.meta)?void 0:t.tagsWithSeoHeader)||{}).includes(e.context.tagName||e.context.sectionName)}})),data:()=>
1({data:null,team:null,primarySeason:null}),methods:{fetchTeamData(e){var t=this;return Object(r.a)((function*(){try{var n=e=>t.$store.$axios.get(e,{},true),r=(yield n("https://api.sportsnext.schibsted.io/v1/nor/participants/teams/"+e)).data,o=m(r),l=(yield n("https://api.sportsnext.schibsted.io/v1/nor/tournaments/seasons/"+o.id+"/standings")).data;t.data=l,t.team=r,t.primarySeason=o}catch(e){v.a.info("fetch failed: %o",e)}}))()}}}},903:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n(51),n(179),n(6),n(24);var r={link:"a",explanation:"span"},o={highlight:"mark"},l=(text,e,t)=>{for(var n=text.split(""),l=((e,t)=>e.slice().sort(((a,b)=>a.offset-b.offset)).reduce(((e,n)=>{var l=n.type,d=n.offset,v=n.uri,symbol=n.symbol,c=n.length,h=l.split(":"),m=h[0],f=h[1],y=r[m]||o[f]||f,w=((e,t,n,symbol,r)=>{var o;if("explanation"===e)return' data-tooltip="'+(null==symbol||null==(o=symbol.replace(/'/g,"'"))?void 0:o.replace(/"/g,"""))+'"';if("internal"===t){var l=null==n?void 0:n.split(":").pop();return l?' href="/i/'+l+'"':""}if("commercial"===t){var d=null==n?void 0:n.split(":").pop();return d?' href="/annonsorinnhold/i/'+d+'"':""}return"external"===t?' href="'+n+'" rel="noopener"':n?' href="'+n+'"':r?' class="'+r+'"':""})(m,f,v,symbol,t);e[d]=e[d]||[],e[d].unshift("<"+y+w+">");var I=d+c;return e[I]=e[I]||[],e[I].push("</"+y+">"),e}),[]))(e,t),d=function(e){l[e]&&l[e].forEach((t=>n.splice(e,0,t)))},v=l.length;v>=0;v--)d(v);return n.join("")};function d(text,e,t){return text?Array.isArray(e)&&0!==e.length?l(text,e,t):text:""}},905:function(e,t,n){"use strict";var r=n(0),o=(n(119),n(2),n(51),n(5),n(154),n(133),n(6),n(25),n(71),n(24),n(91),n(3),n(903)),l=n(4);t.a={data:()=>({adCount:0}),methods:{injectAds(e){var t,n;if(null==(t=this.adflow)||!t.length||void 0===this.adIndex)return e;if(!this.adflow[this.adIndex+this.adCount])return e;for(var r=(null==(n=this.items)?void 0:n.length)||0,i=0;i<e.length;i++){var o=r+i;if(this.adFrequency[this.adCount]===o){var l=this.adflow[this.adIndex+this.adCount++];l&&e.splice(i-(this.pinnedEntry?1:0),0,{id:l,blockType:"ad",isAd:!0})}}return e},parseEntry(e){var t,n,r;void 0===e&&(e={});var o=e,l=o.id,d=o.createdAt,content=o.content,v=o.journalistName,c=o.journalistAvatarUrl,title=o.title,h=o.entryType,meta=o.meta,m=o.minutesTotal,f=o.structuredContent,y=(void 0===f?{}:f).components,w=void 0===y?[]:y;if("sport"===h)return Object.assign(e,{isSport:!0});var I=w.reduce(((e,component)=>(Object.prototype.hasOwnProperty.call(e,component.type)&&(e[component.type]=!0),e)),{chat:!1,text:!1,tweet:/twitter-tweet/.test(content)}),E=I.chat?w.find((e=>"answer"===e.subtype)):void 0,x=void 0!==(null==E||null==(t=E.components)?void 0:t.find((e=>"object"==typeof e&&"string"==typeof e.value&&e.value.length>0))),html=content;html=null==(n=html)?void 0:n.replace(/<(\w+)>(\s+)?<\/\1>/g,""),I.text&&w.filter((e=>"image"===e.type)).forEach((e=>{var t,n,r,o,l,d=null==(t=e.imageAsset)?void 0:t.id;if(d){var v=100*(null==(n=e.cropRatio)?void 0:n.height)/(null==(r=e.cropRatio)?void 0:r.width),c="data-img-template.*"+d+".*";html=null==(l=html=null==(o=html)?void 0:o.replace(new RegExp(c+'(?: style=\\")'),(e=>e+"padding-bottom:"+v+"%;")))?void 0:l.replace(new RegExp(c+"</div>"),(t=>{var n,r;return t+"<small>"+(null==(n=e.caption)?void 0:n.value)+(null!=(r=e.byline)&&r.title?" Foto: <b>"+e.byline.title+"</b>":"")+"</small>"}))}}));var video=w.find((component=>"video"===component.type));I.tweet&&(this.addScript("https://platform.twitter.com/widgets.js"),this.$nextTick((()=>{var e;return null==(e=window.twttr)?void 0:e.widgets.load()})));for(var S=[],i=0;i<w.length;i++)if("image"===w[i].type){var j=w[i],U=new RegExp("(<div.+"+j.imageAsset.id+".+</small>)"),$=html.match(U),D=$&&$.length&&$[0];if(!D){S=[{type:"full-content",html:html}];break}S.push({type:"image",html:D})}else if("embed-code"===w[i].type)S.push({type:"embed-code",content:w[i].embedCode});else{if("chat"===w[i].type){var O=new RegExp("(<blockquote(?:\n|.)+$)"),T=html.match(O),C=T&&T.length&&T[0];if(!C){S=[{type:"chat",html:html}];break}S.push({type:"chat",html:C});break}var A;"text"===w[i].type?(null==(A=w[i].value)?void 0:A.trim())&&S.push(w[i]):S.push(w[i])}var M={id:l,title:title,date:d,html:html,author:{fullname:v,imageUrl:c},isChat:I.chat,hasChatAnswer:x,video:video,components:S},k="";if(this.isPenalties)k=120;else if(this.isPlaying){var P;k=null!=(P=null!=m?m:null==meta?void 0:meta.minutes)?P:new Date(d).toLocaleTimeString().substring(0,5)}else k=new Date(d).toLocaleTimeString().substring(0,5);return null!=(r=this.meta)&&r.sportType&&Object.assign(M,{sportTime:k,createdAt:d}),M},parseEntries(e){void 0===e&&(e=[]);for(var t=this.items.slice(0),n=[],i=e.length-1;i>=0;i--){var r=e[i],o=r.type,l=r.subtype,d=r.id;"eventStart"===o||"periodStart"===o?(this.$store.commit("liveblog/setMatchState",{liveblogId:this.liveblogUniqueId,matchState:"playing"}),"penaltyShootout"===l&&this.$store.commit("liveblog/setMatchState",{liveblogId:this.liveblogUniqueId,matchState:"penaltyShootout"})):"eventEnd"!==o&&"pauseStart"!==o||this.$store.commit("liveblog/setMatchState",{liveblogId:this.liveblogUniqueId,matchState:"notPlaying"});var v=this.$store.getters["liveblog/getFilteredEntries"](this.liveblogUniqueId);d&&v.indexOf(d)>-1||n.unshift(this.parseEntry(e[i]))}var c=this.injectAds(t.concat(n));this.$store.commit("liveblog/setItems",{liveblogId:this.liveblogUniqueId,items:c})},parseMeta(meta){void 0===meta&&(meta={});var e=meta,t=e.eventId,n=e.meta,r=void 0===n?{}:n,l=r.closed,d=r.pinnedEntryId,v=r.sportType,c=r.isUserMessagesLoginRequired,h=r.isSeeMoreFeatureLoginRequired,m=e.feeds,f=(void 0===m?[]:m)[0],y=void 0===f?{}:f,title=y.title,w=y.description,I=void 0===w?"":w,E=y.actionText,x=y.theme,S=y.allowUserMessages,j=y.structuredSummary,U=(void 0===j?{}:j).components,$=void 0===U?[]:U,D="";null==I||(D=null==I?void 0:I.replace(/\$1/g,"?"));var O=component=>"<li>"+Object(o.a)(component.value,component.markup)+"</li>",T=$.find((e=>{var t,n;return(null==(t=e.items)?void 0:t.map((e=>{var t;return null==(t=e.value)?void 0:t.trim()})).join(""))||(null==(n=e.value)?void 0:n.trim())}))&&$.map((component=>{var e="ordered"===component.subtype?"ol":"ul";return"<"+e+">"+(component.items?component.items.map(O).join(""):O(component))+"</"+e+">"})).join(""),C=Object.assign({},this.meta,{title:title,closed:l,pinnedEntryId:d,type:v?"sport":"default",theme:x.toLowerCase(),sportType:v,eventId:t,leadText:T,hasForm:!l&&S,isUserMessagesLoginRequired:c,isSeeMoreFeatureLoginRequired:h,form:{label:E,description:D}});this.$store.commit("liveblog/setMeta",{liveblogId:this.liveblogUniqueId,meta:C})},setPinnedEntry(e){var t=this;return Object(r.a)((function*(){var n=t.$route.query.pinnedEntry;if(void 0!==n)yield t.handlePinnedEntry(e,n,!0);else{var r=t.meta.pinnedEntryId;void 0!==r&&(yield t.handlePinnedEntry(e,r,!1))}}))()},handlePinnedEntry(e,t,n){var o=this;return Object(r.a)((function*(){if(!(o.$store.getters["liveblog/getFilteredEntries"](o.liveblogUniqueId).indexOf(t)>-1)&&t){var r,d=(r=t,e.findIndex((e=>{var t;return(null==(t=e.id)?void 0:t.toString())===(null==r?void 0:r.toString())})));if(d<0){if(parseInt(t,10)>0)try{var v=o.baseApiUrl+"/entries/"+t;l.a.debug("Liveblog: fetching pinned entry from API: %s",v);var c=yield o.$store.$axios({method:"GET",url:v},!1);o.liveblogId===c.data.liveblogId&&o.$store.commit("liveblog/setPinnedEntry",{liveblogId:o.liveblogUniqueId,pinnedEntry:o.parseEntry(c.data),pinnedByUrl:n})}catch(e){l.a.error("Error fetching pinned entry %s on liveblog %s %s",t,o.liveblogUniqueId,e)}}else{var h=e[d];o.$store.commit("liveblog/setPinnedEntry",{liveblogId:o.liveblogUniqueId,pinnedEntry:h,pinnedByUrl:n})}}}))()},parseResult(data){var e,t,n;void 0===data&&(data={});
1var r=null==(e=data.entries)?void 0:e.slice(this.loadMoreQuery?1:0);if(r){this.meta.type||this.parseMeta(data.liveblog),this.parseEntries(r);var o=(null==(t=data.meta)?void 0:t.count)||(null==(n=data.liveblog)?void 0:n.entriesCount);this.$store.commit("liveblog/setEntriesCount",{liveblogId:this.liveblogUniqueId,entriesCount:o}),this.updateLoadMoreButton(data.entries)}else l.a.warn("problems fetching liveblog")}}}}}]);
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.