1(globalThis.webpackChunkbrom_web=globalThis.webpackChunkbrom_web||[]).push([[2077],{1212:()=>{({form:null,crimelist:null,processlist:null,ageRadioButtons:null,button:null,ageIndex:-1,crimeIndex:0,processUrl:0,processTree:null,Init:function(){if(void 0===window.PROCESS_TREE)return;const e=new URL(window.WEB_URL).origin;this.processTree=window.PROCESS_TREE,this.form=document.getElementById("processfinder-form"),this.form&&(this.crimelist=document.getElementById("crimelist"),this.crimelist.required=!1,this.crimelistError=document.getElementById("crimelist_error"),this.processlist=document.getElementById("processlist"),this.processlist.required=!1,this.processlistError=document.getElementById("processlist_error"),this.ageRadioButtons=document.querySelectorAll(".radio-age"),this.ageRadioButtons[0].required=!1,this.ageError=document.getElementById("age_error"),this.button=document.getElementById("send-button"),this.processTree.length&&this.crimelist&&this.processlist&&(this.crimeIndex=0,this.FillCrimeList(),this.ageError.classList.add("form-message--hidden"),this.form.addEventListener("reset",(()=>{this.ClearSelect(this.processlist);const e=document.createElement("option");e.text="Välj steg i rättsprocessen",e.value="",this.processlist.appendChild(e),this.crimeIndex=0,this.ageIndex=-1,this.processUrl=""})),this.form.addEventListener("submit",(t=>{let s=!1;return t.preventDefault(),this.crimeIndex<=0&&(this.crimelistError.classList.remove("form-message--hidden"),s=!0),this.ageIndex<0&&(this.ageError.classList.remove("form-message--hidden"),s=!0),this.processUrl.length||(this.processlistError.classList.remove("form-message--hidden"),s=!0),s?console.error("form error"):this.processUrl.includes("http")?location.href=this.processUrl:location.href=`${e}${this.processUrl}`,!1})),this.ageRadioButtons.addEventListener("change",(e=>{this.ageIndex=parseInt(e.srcElement.value),this.crimeIndex>-1&&(this.RebuildOptions(),this.ageError.classList.add("form-message--hidden"))})),this.button.addEventListener("mousedown",(()=>{})),this.crimelist.addEventListener("change",(e=>{if(!e.srcElement.value.length)return this.FillProcessList(!1,!0),void(this.crimeIndex=0);this.crimeIndex=parseInt(e.srcElement.value),this.RebuildOptions(),this.crimelistError.classList.add("form-message--hidden")})),this.processlist.addEventListener("change",(e=>{e.srcElement.value.length?(this.processUrl=e.srcElement.value,this.processlistError.classList.add("form-message--hidden")):this.processUrl=""}))))},RebuildOptions(){this.ageIndex<0?this.FillProcessList(!1,!0):this.processTree.forEach((e=>{if(e.UmbracoPageId&&e.UmbracoPageId===this.crimeIndex)if(this.ClearSelect(this.processlist),e.Children&&e.Children.length){const t=e.Children[this.ageIndex];t&&t.ProcessPages&&e.Children[this.ageIndex].ProcessPages.length&&this.FillProcessList(e.Children[this.ageIndex].ProcessPages[0],!0)}else{const e=document.createElement("option");e.text="Välj steg i rättsprocessen",e.value="",this.processlist.appendChild(e)}}))},FillCrimeList:function(){this.processTree.forEach((e=>{const t=document.createElement("option");t.text=e.MenuName,t.value=e.UmbracoPageIdOfClonedPage?e.UmbracoPageIdOfClonedPage:e.UmbracoPageId,this.crimelist.appendChild(t)}))},FillProcessList:function(e,t){if(t){this.ClearSelect(this.processlist);const e=document.createElement("option");e.text="Välj steg i rättsprocessen",e.value="",this.processlist.appendChild(e)}if(e){const t=document.createElement("option");t.text=e.MenuName,t.value=e.UmbracoPageUrl,this.processlist.appendChild(t),e.Children&&e.Children.length&&(e.Children[0]&&this.FillProcessList(e.Children[0],!1),e.Children[1]&&this.FillProcessList(e.Children[1],!1))}},ClearSelect(e){for(let t=e.options.length-1;t>=0;t--)e.remove(t)}}).Init()},1313:(e,t,s)=>{"use strict";var i=s(2983),o=s(7863);const n={YTPlayers:[],VimeoPlayers:[],CurrentVideo:[],Init:function(){if(document.querySelectorAll(".card-video, .video-block, .video-macro, .video-rte-block, .t-v-video, .section-top-video, .page-video").forEach((e=>{this.AddBlockEvents(e)})),document.querySelector(".popup .card-video")&&document.addEventListener("popupClose",(e=>{const t=e.detail.popup.querySelector(".video-wrapper");if(t){const e=t.dataset.pid;e in n.YTPlayers?n.YTPlayers[e].pauseVideo():e in n.VimeoPlayers&&n.VimeoPlayers[e].pause()}})),document.querySelectorAll(".video-youtube").length){try{document.addEventListener("YouTubeIframeAPIReady",(function(){n.AddYoutubeEvents()}),!1)}catch(e){console.warn("Event YouTubeIframeAPIReady",e)}l.Add()}if(document.querySelectorAll(".video-vimeo").length){const e=document.createElement("script");e.src="https://player.vimeo.com/api/player.js";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),this.AddVimeoEvents()}const e=document.querySelectorAll(".vimeo-cover");e&&e.length&&e.forEach((e=>{const t=`https://vimeo.com/api/oembed.json?url=${e.dataset.vid}`;(0,o.N7)(t).then((e=>e.json())).then((t=>{const s=t;"img"===e.tagName.toLowerCase()?e.src=s.thumbnail_url:e.style.backgroundImage=`url('${s.thumbnail_url}')`})).catch((e=>{console.warn("parsing failed",e)}))}
1))},AddYoutubeEvents:function(){document.querySelectorAll(".video-youtube .video-overlay").addEventListener("click",(e=>{const t=e.currentTarget,s=t.parentNode,i=s.dataset.vid,o=s.dataset.pid;n.AddYTPlayer(o,i),s.classList.remove("video-wrapper-inactive"),t.remove()}))},AddVimeoEvents:function(){document.querySelectorAll(".video-vimeo .video-overlay").addEventListener("click",(e=>{const t=e.currentTarget,s=t.parentNode,i=s.dataset.vid,o=s.dataset.pid;n.AddVimeoPlayer(o,i),s.classList.remove("video-wrapper-inactive"),s.removeAttribute("style"),t.remove()}))},AddBlockEvents:function(e){const t=e.querySelector(".video-wrapper"),s=e.querySelectorAll(".video-item-thumbnail"),o=e.querySelector(".toggle-block"),r=e.querySelector(".card-footer .h3"),d=e.querySelector(".video-overlay"),a=e.querySelector(".audio-desc-video-link"),c=e.querySelector(".card-extra");let u=null,h=null;a&&(l.Add(),a.addEventListener("click",(e=>{e.preventDefault();const s=e.currentTarget;try{const e=t.dataset.pid,i=s.dataset.text,o=s.dataset.toggletext;s.dataset.text=o,s.dataset.toggletext=i,s.querySelector("span").innerText=i;const l=s.dataset.json,r=s.dataset.togglejson;s.dataset.json=r,s.dataset.togglejson=l;const a=JSON.parse(l),c=a.id,m=a.url;t&&(t.style.removeProperty("background-image"),t.classList.remove("video-wrapper-inactive")),d&&d.remove(),"youtube"===a.type.toLowerCase()?(t&&(t.classList.remove("video-vimeo"),t.style.paddingBottom="56.25%"),e in n.VimeoPlayers&&(delete n.VimeoPlayers[e],h=null,n.ResetElement(e)),e in n.YTPlayers&&(u=n.YTPlayers[e]),null===u?n.AddYTPlayer(e,c):(n.CurrentVideo[e]={id:c,type:"youtube"},u.loadVideoById({videoId:c}))):(t&&t.classList.add("video-vimeo"),e in n.YTPlayers&&(delete n.YTPlayers[e],n.ResetElement(e),u=null),e in n.VimeoPlayers&&(h=n.VimeoPlayers[e]),null===h?n.AddVimeoPlayer(e,m):h.destroy().then((()=>{n.AddVimeoPlayer(e,m)})).catch((e=>{console.warn(e)})))}catch(e){console.warn("audioDescVideo -> click error",e)}return!1}))),s.addEventListener("click",(e=>{e.preventDefault();const l=e.currentTarget,m=t.dataset.pid,g=l.dataset.vid;if(s.forEach((function(e){e!==l?e.classList.remove("playing"):e.classList.toggle("playing")})),c.classList.add("card-extra--hidden"),l.parentNode){const e=l.parentNode;try{r&&(r.innerText=l.dataset.videotitle),o&&e.querySelector(".video-item-speechtext")&&(o.innerHTML=e.querySelector(".video-item-speechtext").innerHTML,c.classList.remove("card-extra--hidden")),a&&(a.dataset.text=l.dataset.toggletext,a.dataset.toggletext=l.dataset.text,a.dataset.togglejson=l.dataset.togglejson,a.dataset.json=l.dataset.json,a.querySelector("span").innerText=l.dataset.text,a.parentNode&&(l.dataset.json&&l.dataset.json.length?a.parentNode.classList.remove("hide"):a.parentNode.classList.add("hide")))}catch(e){console.warn("AA1",e)}}if(t&&(t.style.removeProperty("background-image"),t.classList.remove("video-wrapper-inactive")),d&&d.remove(),"youtube"===l.dataset.type){if(t.classList.remove("video-vimeo"),t.style.paddingBottom="56.25%",m in n.VimeoPlayers&&(delete n.VimeoPlayers[m],h=null,n.ResetElement(m)),m in n.YTPlayers&&(u=n.YTPlayers[m]),null===u)n.AddYTPlayer(m,g);else{if(n.CurrentVideo[m]&&n.CurrentVideo[m].id===g)return void(l.classList.contains("playing")?u.playVideo():u.pauseVideo());n.CurrentVideo[m]={id:g,type:"youtube"},u.loadVideoById({videoId:g})}(0,i.e)(t,{duration:1e3,offset:-100})}else{if(t.style.paddingBottom=l.dataset.padding,t.classList.add("video-vimeo"),m in n.YTPlayers&&(delete n.YTPlayers[m],n.ResetElement(m),u=null),m in n.VimeoPlayers&&(h=n.VimeoPlayers[m]),null===h)n.AddVimeoPlayer(m,g);else{if(n.CurrentVideo[m]&&n.CurrentVideo[m].id===g)return void(l.classList.contains("playing")?h.play():h.pause());h.destroy().then((()=>{n.AddVimeoPlayer(m,g)})).catch((e=>{console.warn(e)}))}(0,i.e)(t,{duration:500,offset:-100})}return!1}))},AddYTPlayer:function(e,t){const s=new YT.Player(e,{videoId:t,width:"890",height:"500",host:"https://www.youtube-nocookie.com",playerVars:{rel:0,modestbranding:1,autoplay:1,playsinline:0,iv_load_policy:3,cc_load_policy:1,fs:1},events:{onReady:function(){s.playVideo()},onStateChange:function(e){const t=e.target.h?e.target.h:e.target.f;if(!t)return;const s=t.parentNode?.parentNode?.parentNode?.parentNode;if(!s)return;const i=t.id;let o=null;if(e.data)switch(e.data){case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:o=s.querySelector(".video-item-thumbnail.playing"),o&&o.classList.remove("playing");break;case YT.PlayerState.PLAYING:o=s.querySelector(`.video-item-thumbnail[data-vi
1d=${n.CurrentVideo[i].id}]`),o&&o.classList.add("playing")}}}});n.CurrentVideo[e]={id:t,type:"youtube"},n.YTPlayers[e]=s},AddVimeoPlayer:function(e,t){const s=new Vimeo.Player(e,{autoplay:!0,url:t});s.on("loaded",(function(){try{s.play()}catch(e){console.warn("Vimeo play",e)}})),n.CurrentVideo[e]={id:t,type:"vimeo",dnt:!0},n.VimeoPlayers[e]=s},ResetElement:function(e){const t=document.getElementById(e);t.id="remove";const s=document.createElement("div");s.id=e,s.class="video-iframe",t.parentNode.insertBefore(s,t),t.remove()}},l={Add:function(){if(!document.getElementById("yt-script")){const e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.id="yt-script";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}}};void 0===window.onYouTubeIframeAPIReady&&(window.onYouTubeIframeAPIReady=function(){try{const e=new CustomEvent("YouTubeIframeAPIReady",{detail:Date.now()});document.dispatchEvent(e)}catch(e){console.warn("onYouTubeIframeAPIReady",e)}}),n.Init()},2983:(e,t,s)=>{"use strict";function i(e,t){t||(t={});const s=window.scrollY,i={duration:t.duration||300,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,s,i){return(e/=i/2)<1?s/2*e*e+t:-s/2*(--e*(e-2)-1)+t}},o="string"==typeof e?i.offset+document.querySelector(e).getBoundingClientRect().top:i.offset+e.getBoundingClientRect().top,n="function"==typeof i.duration?i.duration(o):i.duration;let l,r;function d(e){r=e-l,window.scrollTo(0,i.easing(r,s,o,n)),r<n?requestAnimationFrame(d):(window.scrollTo(0,s+o),setTimeout((function(){window._IsSmothScrolling=!1}),300),"function"==typeof i.callback&&i.callback())}window._IsSmothScrolling=!0,requestAnimationFrame((function(e){l=e,d(e)}))}s.d(t,{e:()=>i});const o=document.querySelector(".scroll-to-me");o&&i(o,{})},4295:(e,t,s)=>{"use strict";var i=s(701);class o{constructor(){const e=document.querySelectorAll(".toggle-item-link");if(e){e.addEventListener("click",this.onClick.bind(this));const t=document.location.hash;if(t&&t.length){const e=document.querySelector(t);e&&e.classList.contains("toggle-item-link")&&e.click()}}}onClick(e){e.preventDefault();const t=e.currentTarget,s=t.getAttribute("href");if(s.length&&s.startsWith("#")){const e=document.querySelector(s);e&&this.toggle(t,e)}}toggle(e,t){t.style.display="block",setTimeout((()=>{let s=0;[].forEach.call(t.children,(function(e){s+=e.clientHeight})),t.classList.contains("collapsed")?(t.style.height=s+"px",setTimeout((function(){t.removeAttribute("style"),setTimeout((()=>{t.style.display="block"}),5)}),310),e.parentNode.parentNode.classList.add("toggle-item--expanded")):(t.style.height=s+"px",setTimeout((()=>{t.style.height=0}),0),setTimeout((()=>{t.removeAttribute("style"),setTimeout((()=>{t.style.display="none"}),5)}),310),e.parentNode.parentNode.classList.remove("toggle-item--expanded")),e.classList.toggle("collapsed"),t.classList.toggle("collapsed"),i.s.toggle(e,"expanded")}),20)}}window.addEventListener("DOMContentLoaded",(()=>{new o}))},5164:(e,t,s)=>{"use strict";var i=s(701);class o{constructor(){const e=document.querySelectorAll(".slide-toggle-btn, .slide-toggle-link");e.length&&e.addEventListener("click",this.toggle.bind(this))}accordionClose(e,t){document.querySelectorAll('.slide-toggle-btn[data-accordion="'+t+'"], .slide-toggle-link[data-accordion="'+t+'"]').forEach((t=>{e===t||t.classList.contains("collapsed")||t.click()}))}toggle(e){e.preventDefault();const t=e.currentTarget;if(t.disabled)return!1;t.dataset.accordion&&this.accordionClose(t,t.dataset.accordion);const s=t.dataset.target?t.dataset.target:t.hasAttribute("href")?t.href:"";if(!s.startsWith("#"))return;const o=document.querySelector(s);if(!o)return;t.hasAttribute("once")&&this.hideBtn(t);let n=0;[].forEach.call(o.children,(function(e){n+=e.clientHeight})),o.classList.contains("collapsed")?(o.style.height=n+"px",setTimeout((()=>{this.removeStyle(o)}),500)):(o.style.height=n+"px",setTimeout((()=>{this.removeStyle(o)}),10)),o.classList.toggle("collapsed"),t.classList.toggle("collapsed"),i.s.toggle(t,"expanded"),i.s.toggle(o,"expanded")}hideBtn(e){i.s.add(e,"hidden",!0)}showBtn(e){i.s.add(e,"hidden",!1)}removeStyle(e){e.removeAttribute("style")}}document.addEventListener("DOMContentLoaded",(function(){new o}))},7588:(e,t,s)=>{"use strict";s.d(t,{R:()=>o});var i=s(701);const o={Init:function(){const e=document.querySelectorAll(".toggle-link");e&&e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();const t=this.hash;if(!t)return;const s=document.querySelector(t);if(!s)return;const o=s.classList.contains("page-introduction");if(s){this.classList.toggle("toggle-link--open"),s.classList.toggle("toggle-block--hidden"),s.classList.toggle("toggle-block--open"),i.s.toggle(s,"hidden");const e=s.parentNode;e&&(e.classList.contains("card-extra")&&(e.classList.toggle("card-extra--open"),i.s.toggle(e,"hidden"),e.classList.contains("card-extra--open")?s.setAttribute("tabindex",0):s.removeAttribute("tabindex")),e.classList.contains("card-content-extra-wrapper")&&(e.classList.toggle("card-content-extra-wrapper--open"),i.s.toggle(e,"hidden"))),o&&s.parentNode.parentNode.classList.toggle("section-small");const t=this.querySelector("span");i.s.toggle(this,"expanded"),t&&this.dataset.activetext&&this.dataset.defaulttext&&(this.classList.contains("toggle-link--open")?t.innerText=this.dataset.activetext:t.innerText=this.dataset.defaulttext)}}
1))}))}};"undefined"!=typeof window&&(window.ToggleLink=o);let n=!1;!function(){const e=document.querySelector(".toggle-button-menu");if(!e)return;const t=document.querySelector(".nav-main");e.addEventListener("click",(function(){document.body.classList.toggle("menu--show"),n=document.body.classList.contains("menu--show"),n&&t.querySelector("a").focus()})),document.querySelectorAll('.nav-main a[href^="#"]').addEventListener("click",(function(){n=document.body.classList.contains("menu--show"),n&&document.body.classList.remove("menu--show")}))}()},8001:(e,t,s)=>{"use strict";var i=s(7885),o=s(701);class n{constructor(e,t){this.folder=e,this.id=e.id,this.base=t,this.btn=this.folder.querySelector(".toggle-folder-btn"),this.content=this.folder.querySelector(".toggle-folder-content"),this.btn&&this.content&&this.btn.addEventListener("click",this.click.bind(this)),this.base.inState(this.id)&&this.folder.classList.contains("collapsed")&&(this.folder.classList.remove("collapsed"),o.s.add(this.btn,"expanded"),o.s.add(this.content,"expanded"))}click(e){e.preventDefault(),this.toggle()}toggle(){let e=0;[].forEach.call(this.content.children,(function(t){e+=t.clientHeight})),this.folder.classList.contains("collapsed")?(this.content.style.height=e+"px",setTimeout(this.removeStyle.bind(this),500),this.base.addState(this.id)):(this.content.style.height=e+"px",setTimeout(this.removeStyle.bind(this),10),this.base.removeState(this.id)),this.folder.classList.toggle("collapsed"),o.s.toggle(this.btn,"expanded"),o.s.toggle(this.content,"expanded")}removeStyle(){this.content.removeAttribute("style")}}new class{constructor(){this.toggleFolderCookieName="toggleFolderState";const e=document.querySelectorAll(".toggle-folder");this.list=this.getState(),e.forEach((e=>{new n(e,this)}))}addState(e){this.inState(e)||(this.list.push(e),this.setState())}removeState(e){const t=this.list.findIndex((t=>t===e));t>-1&&this.list.splice(t,1),this.setState()}inState(e){return!!(this.list&&this.list.length&&this.list.find((t=>t===e)))}setState(){this.list&&i.H.add(this.toggleFolderCookieName,JSON.stringify(this.list))}getState(){const e=i.H.value(this.toggleFolderCookieName);if(e&&e.length){const t=JSON.parse(e);return Array.isArray(t)?t:[]}return[]}}},9199:(e,t,s)=>{"use strict";var i=s(7282),o=s(3213),n=s(6777),l=s(3274),r=s.n(l),d=s(7863);class a{constructor(e){this.id=e.dataset.id,this.url=e.dataset.url,this.base=e,this.isSafari=!1,this.fullscreenBtn=this.base.querySelector(".slideshow-start"),this.exitFullscreenBtn=this.base.querySelector(".slideshow-close"),this.printBtn=this.base.querySelector(".slideshow-print"),this.glideNode=this.base.querySelector(".glide"),this.track=this.glideNode.querySelector(".glide__track"),this.indexNode=this.glideNode.querySelector(".glide__index"),this.slides=this.glideNode.querySelectorAll(".glide__slide"),this.total=this.slides.length,this.currentIndex=0,this.videoNodes=this.base.querySelectorAll(".video-iframe"),this.videos=[],this.browser=new i.P,this.isSafari="safari"===this.browser.name,(r().tablet()||r().mobile())&&(this.printBtn.style.display="none",this.fullscreenBtn.style.display="none"),this.isSafari&&this.browser.version<14&&(this.fullscreenBtn.style.display="none"),this.settings={type:"slider",startAt:0,perView:1,gap:0,peek:{before:0,after:0}},this.fullscreenSuported()?(this.isSafari&&this.browser.version<14?document.onwebkitfullscreenchange=()=>{this.fullscreenchange()}:(document.addEventListener("fullscreenchange",this.fullscreenchange.bind(this),!1),document.addEventListener("webkitfullscreenchange",this.fullscreenchange.bind(this),!1)),this.fullscreenBtn.addEventListener("click",this.fullscreen.bind(this)),this.exitFullscreenBtn.addEventListener("click",this.exitFullscreen.bind(this))):(this.fullscreenBtn.style.display="none",this.exitFullscreenBtn.style.display="none");try{new o.IT(this.printBtn)}catch(e){console.warn(e.message)}this.glideNode.classList.add("slideshow--loaded"),this.mount(),this.addVideos(),this.addHoverEvent()}addHoverEvent(){this.base.onmousemove=(()=>{const e=()=>{this.base.classList.remove("hover")};let t;return()=>{this.base.classList.add("hover"),clearTimeout(t),t=setTimeout(e,1500)}})()}fullscreen(){const e=this.base;e&&(e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen())}exitFullscreen(){(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())}fullscreenSuported(){return document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled}mount(){this.glide=new n.A("#"+this.glideNode.id,this.settings),this.indexNode&&this.glide.on("move.after",this.indexChange.bind(this)),this.total=this.glideNode.querySelectorAll(".glide__slide:not(.hidden):not(.glide__slide--clone)").length,this.glide.on("move",(e=>{this.track.scrollLeft=0,setTimeout((()=>{this.track.scrollLeft=0}),0)})),this.glide.mount(),setTimeout((()=>{this.glideNode.querySelectorAll(".glide__slide--clone").forEach((e=>{e.querySelectorAll("a, button").forEach((e=>{e.tabIndex=-1}))}));const e=this.glideNode.querySelectorAll(".glide__slide:not(.glide__slide--clone)");e.forEach((t=>{t.querySelectorAll("a, button").addEventListener("focusin",(t=>{t.preventDefault(),t.stopPropagation();const s=(0,d.uN)(t.target,".glide__slide"),i=Array.prototype.indexOf.call(e,s);this.glide.go(`=${i}`)}),!0)}))}),100)}
1addVideos(){if(this.videoNodes.length){try{document.addEventListener("YouTubeIframeAPIReady",(e=>{this.addYoutubeVideo()}),!1)}catch(e){console.warn("Event YouTubeIframeAPIReady",e)}YoutubeScript.Add()}}indexChange(){this.glide&&(this.indexNode.innerHTML=(this.glide.index+1).toString()+" av "+this.total,this.glide.index!=this.currentIndex&&this.videos.forEach((e=>{try{e.pauseVideo()}catch(e){console.warn("Error video pause",e)}})),this.currentIndex=this.glide.index)}fullscreenchange(e){document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement?(this.base.classList.add("slideshow-wrapper--fullscreen"),this.isSafari&&this.glide.update()):(this.base.classList.remove("slideshow-wrapper--fullscreen"),this.glide.update())}destory(){this.glide.destroy(),this.base.querySelectorAll("ol, li").forEach((function(e){e.removeAttribute("style")})),this.glide=null}addYoutubeVideo(){const e=this.base;this.videoNodes.forEach((t=>{const s=new YT.Player(t.id,{videoId:t.dataset.id,width:"1920",height:"1080",host:"https://www.youtube-nocookie.com",playerVars:{rel:0,modestbranding:1,autoplay:0,playsinline:1,iv_load_policy:3,cc_load_policy:1,fs:0},events:{onReady:function(e){},onStateChange:function(t){if(t.data)switch(t.data){case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:e.classList.add("hover");break;case YT.PlayerState.PLAYING:e.classList.remove("hover")}}}});this.videos.push(s)}))}}(()=>{const e=document.querySelectorAll(".slideshow-wrapper");e.length&&e.forEach((function(e){new a(e)}))})()},9725:(e,t,s)=>{"use strict";var i=s(6777),o=s(7863);!function(){const e=document.querySelectorAll(".glide-small-no-slide");e&&e.length&&e.forEach((e=>{!function(e){const t=e.querySelector(".glide__index"),s=e.querySelectorAll(".glide__slide").length,n=e.querySelector(".glide__track");let l=30;const r={before:75,after:75};window.innerWidth<=767&&(l=20,r.after=20,r.before=r.after),s<2&&(r.before=r.after=0);const d=e.dataset.glidetype?e.dataset.glidetype:"carousel",a=new i.A("#"+e.id,{type:d,startAt:0,perView:1,gap:l,peek:r,rewind:"slider"!==d});t&&a.on("move.after",(function(){t.innerHTML=(a.index+1).toString()+" av "+s})),e.querySelectorAll(".card").forEach((e=>{if(((t=e.querySelector(".card-text > div"))?t.offsetHeight:0)<101){const t=e.querySelector(".card-toggle");t&&(t.style.display="none")}var t})),"slider"===d&&a.on(["move.after","run"],(()=>{const t=e.querySelector(".glide__arrow--left");t&&(0===a.index?t.setAttribute("disabled",""):t.removeAttribute("disabled"));const i=e.querySelector(".glide__arrow--right");i&&(a.index===s-1?i.setAttribute("disabled",""):i.removeAttribute("disabled"))})),a.on("move",(function(){n.scrollLeft=0,setTimeout((()=>{n.scrollLeft=0}),0)})),a.mount(),setTimeout((()=>{e.querySelectorAll(".glide__slide--clone").forEach((e=>{e.querySelectorAll("a, button").forEach((e=>{e.tabIndex=-1}))}));const t=e.querySelectorAll(".glide__slide:not(.glide__slide--clone)");t.forEach((e=>{e.querySelectorAll("a, button").addEventListener("focusin",(e=>{e.preventDefault(),e.stopPropagation();const s=(0,o.uN)(e.target,".glide__slide"),i=Array.prototype.indexOf.call(t,s);this.glide.go(`=${i}`)}),!0)}))}),100)}(e)}))}(),function(){const e=document.querySelectorAll(".glide__slide h2, .glide__slide h3, .card-toggle");e&&e.length&&e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),this.parentNode.parentNode.classList.toggle("open")}),!1)}()}}]);
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.