1"use strict";(self.webpackChunksvk_designsystem=self.webpackChunksvk_designsystem||[]).push([[2190,8060],{2190:function(e,t,i){i.r(t),i.d(t,{SvkBlockVideo:function(){return o}});i(98060);class o extends HTMLElement{constructor(){super()}}window.customElements.define("svk-block-video",o)},98060:function(e,t,i){i.r(t),i.d(t,{SvkVideo:function(){return o}});class o extends HTMLElement{constructor(){super(),this.src=this.getAttribute("src"),this.type=this.getType(this.src),this.cookiebotBlocked=!1}connectedCallback(){this.init()}getType(e){let t=null;return Object.entries({youtube:"(?:youtube.com/|youtu.be/)",vimeo:"(?:vimeo.com/)",streamio:"(?:streamio.com/)",liveStream:"(?:livestream.rackfish.com/)",file:".(mp4)"}).forEach((i,o)=>{if(new RegExp(i[1]).test(e))return t=i[0],!1}),t}initYoutube(){window.Cookiebot?.consent?.marketing||window.isAdmin?Promise.all([i.e(229),i.e(460),i.e(7453),i.e(5463)]).then(i.bind(i,5463)).then(e=>{new e.default(this,this.src)}):i.e(5759).then(i.t.bind(i,5759,19)).then(e=>{this.innerHTML=e.default({cookiebotBlocked:this.cookiebotBlocked,videoType:"YouTube",url:this.src,type:"marknadsföring"}),this.style.opacity=1})}initVimeo(){window.Cookiebot?.consent?.marketing||window.isAdmin?i.e(321).then(i.bind(i,90321)).then(e=>{new e.default(this,this.src)}):i.e(5759).then(i.t.bind(i,5759,19)).then(e=>{this.innerHTML=e.default({cookiebotBlocked:this.cookiebotBlocked,videoType:"Vimeo",url:this.src,type:"marknadsföring"}),this.style.opacity=1})}initStreamio(){if(window.Cookiebot?.consent?.preferences||window.isAdmin)i.e(5975).then(i.bind(i,35975)).then(e=>{new e.default(this,this.src)});else{let e=e=>e.includes("public_show.json")?e.replace("public_show.json","public_show"):e.includes("/public_show")?e:e+"/public_show";i.e(5759).then(i.t.bind(i,5759,19)).then(t=>{this.innerHTML=t.default({cookiebotBlocked:this.cookiebotBlocked,videoType:"Streamio",url:e(this.src),type:"inställningar"}),this.style.opacity=1})}}initLivestream(){window.Cookiebot?.consent?.preferences||window.isAdmin?i.e(3063).then(i.bind(i,3063)).then(e=>{new e.default(this,this.src)}):i.e(5759).then(i.t.bind(i,5759,19)).then(e=>{this.innerHTML=e.default({cookiebotBlocked:this.cookiebotBlocked,videoType:"Streamio",url:this.src,type:"inställningar"}),this.style.opacity=1})}init(){const e=()=>{switch(this.type){case"youtube":this.initYoutube();break;case"vimeo":this.initVimeo();break;case"liveStream":this.initLivestream();break;case"streamio":this.initStreamio();break;case"file":i.e(8041).then(i.bind(i,28041)).then(e=>{new e.default(this,this.src)})}},t=()=>{e.call(this)};window.Cookiebot&&window.Cookiebot.consent||window.isAdmin||(this.cookiebotBlocked=!0),t(),window.addEventListener("CookiebotOnConsentReady",t.bind(this))}}window.customElements.define("svk-video",o)}}]);
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.