PageSourceSearch

https://www.brottsoffermyndigheten.se/Dist/brom/main-085c4bd2.88fe2e5ae92d0a286338.js?8fefd3e90644954da2e9

js brottsoffermyndigheten.se collected 2026-10-02 04:25:54 UTC 18,209 bytes, 1 lines download raw bytes

1(globalThis.webpackChunkbrom_web=globalThis.webpackChunkbrom_web||[]).push([[773],{3213:(e,t,n)=>{"use strict";n.d(t,{IT:()=>o,Rq:()=>r,Ze:()=>i});class s{constructor(e){e&&e.addEventListener("click",(()=>{window.print()}))}}class r{constructor(){document.querySelectorAll(".btn-print").forEach((e=>{new s(e)}))}}class o{constructor(e){if(e){e.addEventListener("click",this.btnClick.bind(this));try{if(this.staticClass="print-node-mode",this.extraClass=e.dataset.extraclass,this.node=e.dataset.target.includes("#")?document.querySelector(e.dataset.target):document.querySelector("#"+e.dataset.target),!this.node)return;this.preloadImages(),this.node.dataset.print=!1}catch(e){console.warn(e)}}}beforeprint(){}afterprint(){window.removeEventListener("beforeprint",this.eventBefore),window.removeEventListener("afterprint",this.eventAfter),"false"!==this.node.dataset.print&&(document.body.classList.remove(this.staticClass),this.wrapper.remove(),this.node.dataset.print=!1)}btnClick(){this.eventBefore=this.beforeprint.bind(this),this.eventAfter=this.afterprint.bind(this),window.addEventListener("beforeprint",this.eventBefore),window.addEventListener("afterprint",this.eventAfter),this.node.dataset.print=!0,"false"!==this.node.dataset.print&&(document.body.classList.add(this.staticClass),this.wrapper=document.createElement("div"),this.wrapper.className="node-print-wrapper "+this.extraClass,document.body.appendChild(this.wrapper),this.wrapper.innerHTML=this.node.outerHTML,this.node.dataset.print=!0,setTimeout((()=>{window.print()}),100))}preloadImages(){const e=this.node.querySelectorAll("img");let t=e.length;e.forEach((e=>{e.complete&&0!==e.naturalHeight?t-=1:e.addEventListener("load",(()=>{t-=1}))}
1))}}class i{constructor(){document.querySelectorAll(".btn-print-node").forEach((e=>{new o(e)}))}}},3688:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});const s={currentid:null,Init:function(){const e=document.querySelectorAll(".popup");e.forEach((function(e){document.body.appendChild(e)})),document.querySelectorAll(".popup .card").forEach((function(e){e.setAttribute("tabindex",0)})),window.addEventListener("keydown",(e=>{27===e.keyCode&&null!==this.currentid&&s.Hide(this.currentid)})),setTimeout((()=>{e.forEach((function(e){e.classList.contains("close-outside")&&e.addEventListener("click",(e=>{e.target&&e.target.classList.contains("popup")&&(e.preventDefault(),s.currentid&&s.Hide(s.currentid))}),!1)}));const t=document.querySelectorAll(".popup-close");t&&t.addEventListener("click",(e=>{e.preventDefault(),this.currentid&&this.Hide(this.currentid)}),!1);const n=document.querySelectorAll(".popup-open");n&&n.addEventListener("click",(e=>{e.currentTarget.dataset.id&&(e.preventDefault(),this.Show(e.currentTarget.dataset.id,e.currentTarget.dataset))}),!1);const r=document.querySelectorAll(".popup .btn");this.AddStandardEvents(r)}),100)},AddStandardEvents:function(e){e.forEach((function(e){e.dataset&&e.dataset.action&&"close"===e.dataset.action&&e.addEventListener("click",(function(e){e.preventDefault(),s.Hide(s.currentid)}))}))},Show:function(e){let t=null;if(t=e.includes(".")||e.includes("#")?document.querySelector(e):document.getElementById(e),!t)return;this.currentid=e,t.classList.add("popup--show"),t.querySelector(".card").focus(),document.body.classList.add("state-popup--show");const n=new CustomEvent("popupOpen",{detail:{popup_id:e,popup:t}});document.dispatchEvent(n)},Hide:function(e){if(e||(e=this.currentid),!e)return;let t=null;if(t=e.includes(".")||e.includes("#")?document.querySelector(e):document.getElementById(e),!t)return;this.currentid=null,t.classList.remove("popup--show"),document.body.classList.remove("state-popup--show");const n=new CustomEvent("popupClose",{detail:{popup_id:e,popup:t}});document.dispatchEvent(n)},HideAll:function(){const e=document.querySelectorAll(".popup--show");this.currentid=null,document.body.classList.remove("state-popup--show"),e.forEach((e=>{e.classList.remove("popup--show");const t=e.id,n=new CustomEvent("popupClose",{detail:{popup_id:t,popup:e}});document.dispatchEvent(n)}))},AddEvent:function(e,t,n){e&&e.addEventListener(t,n)},AddText:function(e,t,n){if(e){if(t&&t.length){const n=e.querySelector("h2");n&&(n.innerText=t)}if(n&&n.length){const t=e.querySelector("p");t&&(t.innerText=n)}}}};s.Init()},4146:(e,t,n)=>{"use strict";n.d(t,{G5:()=>r,b3:()=>o,wr:()=>i});var s=n(701);class r{constructor(){document.querySelectorAll("form").forEach((e=>{const t=e.querySelectorAll("[type=reset]");t&&t.length&&t.addEventListener("click",(t=>{t.preventDefault(),e.querySelectorAll("input, select, textarea").forEach((e=>{switch(e.type.toLowerCase()){case"text":case"password":case"textarea":case"search":case"email":case"file":case"url":case"tel":case"number":e.value="";break;case"radio":case"checkbox":e.checked&&(e.checked=!1);break;case"select-one":case"select-multi":e.selectedIndex=0}}))}))}))}}class o{constructor(e,t){const n={id:"MyForm"};this.options=t?{...n,...t}:n,this.posted=!1,e&&(this.form=e,this.form.setAttribute("novalidate",!0),this.inputs=this.form.querySelectorAll("input, select"),this.inputs.forEach((e=>{e.hasAttribute("id")||(e.id="i-"+this.uniqeId()),e.parentNode.insertAdjacentHTML("afterend",'<span class="form-row form-message form-message-error form-message--hidden" role="alert"></span>'),["text","email","number"].includes(e.type)&&e.addEventListener("change",(t=>{e.value=e.value.trim()}))})),this.inputs.addEventListener("input",(e=>{this.validateInput(e.target,e.type)})),this.inputs.addEventListener("blur",(e=>{this.validateInput(e.target,e.type)})),this.form.addEventListener("submit",(e=>{this.posted=!0;let t=!0;return this.inputs.forEach((n=>{const s=this.validateInput(n,e.type);s||(t=s)})),e.preventDefault(),!1})))}validateInput(e,t){const n=e.parentNode.nextElementSibling;if(n.hasAttribute("id")||(n.id="m-"+e.id),!e.validity.valid)return e.classList.add("invalid"),e.validity.valueMissing?(n.innerHTML=e.dataset.requiredText?e.dataset.requiredText:"Värde saknas","submit"===t&&(n.classList.remove("form-message--hidden"),s.s.add(e,"invali
1d",!0),s.s.add(e,"describedby",n.id))):(e.validity.typeMismatch||e.validity.patternMismatch)&&(n.innerHTML=e.dataset.mismatchText?e.dataset.mismatchText:"Ogilltigt värde","submit"===t&&(n.classList.remove("form-message--hidden"),s.s.add(e,"invalid",!0),s.s.add(e,"describedby",n.id))),!1;if(!e.dataset.matchInput)return e.setCustomValidity(""),e.classList.remove("invalid"),s.s.add(e,"invalid",!1),n.classList.add("form-message--hidden"),!0;{const r=document.querySelector(e.dataset.matchInput);if(!r||e.value!==r.value)return n.innerHTML=e.dataset.mismatchInputText?e.dataset.mismatchInputText:"Fälten överensstämmer inte med varandra","submit"===t&&(n.classList.remove("form-message--hidden"),s.s.add(e,"invalid",!0),s.s.add(e,"describedby",n.id)),!1;e.classList.remove("invalid"),n.classList.add("form-message--hidden"),s.s.add(e,"invalid",!1)}}uniqeId(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}isFormValid(){let e=!0;return this.inputs.forEach((t=>{if(!t.validity.valid)return e=!1,!1;if(t.dataset.matchInput){const n=document.querySelector(t.dataset.matchInput);if(!n||t.value!==n.value)return e=!1,!1}})),e}}class i{constructor(){document.querySelectorAll(".umbraco-forms-form form").forEach((e=>{this.email(e)}))}email(e){e.querySelectorAll('input[type="email"]').forEach((e=>{e.oninvalid=function(e){const t=e.target;if(!t.validity.valid)return t.setCustomValidity(""),t.validity.valueMissing?t.setCustomValidity(t.dataset.valRequired):t.validity.typeMismatch?(t.setCustomValidity(t.dataset.valRegex),t.nextElementSibling.innerText=t.dataset.valRegex):t.validity.patternMismatch&&t.setCustomValidity(t.dataset.valRegex),!1},e.onchange=function(e){e.target.checkValidity()}}))}}},4709:(e,t,n)=>{"use strict";var s=n(7282),r=n(3688),o=n(7168),i=n.n(o);"undefined"!=typeof RUN_HOTSPOT&&document.querySelectorAll(".hotspot-area-wrapper").forEach((e=>{!function(e){const t=e,n=t.querySelector(".hotspot-area"),o=t.querySelector(".hotspot-img-wrapper"),a=t.querySelector("img"),l=t.querySelector(".btn-reset"),c=t.querySelector("#input-range"),d=t.querySelector(".hotspot-size-wrapper"),u=t.parentNode.querySelectorAll(".hsf"),p=t.querySelectorAll(".hotspot-point");let h=!1,m=null;const f={scale:1,translateX:0,translateY:0},v={scale:1,translateX:0,translateY:0},y={height:0,width:0,naturalHeight:0,naturalWidth:0,scaled:1};function g(){n.style.width="100%",E(),setTimeout((function(){y.naturalHeight=a.naturalHeight,y.naturalWidth=a.naturalWidth,y.height=a.clientHeight,y.width=a.clientWidth,y.scaled=y.height/y.naturalHeight,n.style.height=y.height+"px",s.P.isIE11&&(c.style.width=y.width-30+"px")}),0)}function w(){const e=(y.width*f.scale-y.width)/2,t=(y.height*f.scale-y.height)/2;f.translateX<0&&Math.abs(f.translateX)>e?f.translateX=0-e:f.translateX>0&&f.translateX>e&&(f.translateX=e),f.translateY<0&&Math.abs(f.translateY)>t?f.translateY=0-t:f.translateY>0&&f.translateY>t&&(f.translateY=t)}function E(){t.classList.add("hootspot-animate"),setTimeout((function(){t.classList.remove("hootspot-animate")}),500),c.value=1,v.scale=1,v.translateX=0,v.translateY=0,f.scale=1,f.translateX=0,f.translateY=0,b()}function b(){d?d.style.width=100*f.scale+"%":a.style.transform=`scale(${f.scale})`,o.style.transform=`translate(${f.translateX}px, ${f.translateY}px)`}c.addEventListener("input",(function(){f.scale=this.value/10,f.scale<=0&&(f.scale=0),f.scale>=4&&(f.scale=4),f.scale<v.scale&&w(),h||(b(),v.scale=f.scale)})),document.addEventListener("popupClose",(()=>{m&&(m.focus(),m=null)})),p.addEventListener("focus",(e=>{e.preventDefault();const t=e.target;n.scrollLeft=0,n.scrollTop=0,setTimeout((()=>{n.scrollTop=0,n.scrollLeft=0}),10),setTimeout((()=>{const e=n.getBoundingClientRect(),s=t.getBoundingClientRect();let r=0,o=0;e.right<s.right?r=e.right-s.right-40:e.left>s.left&&(r=e.left-s.left),e.top>s.top?o=e.top-s.top+40:e.bottom<s.bottom&&(o=e.bottom-s.bottom-40),0==r&&0==o||(0!=r&&(f.translateX+=r),0!=o&&(f.translateY+=o),w(),b())}),100)})),p.addEventListener("click",(e=>{e.preventDefault();const t=e.target.dataset.id;r.z.Show(`ph-${t}`),m=e.target}));const L=new(i().Manager)(n),S=new(i().Pinch)({}),q=new(i().Rotate),T=new(i().Pan)({threshold:20}),x=new(i().Tap)({taps:2});S.recognizeWith(q),L.add([S,q,T,x]),L.on("tap",E),L.on("pinchin pinchout pinchend",(function(e){f.scale=v.scale+(e.scale-1),f.scale<=1&&(f.scale=1),f.scale>=4&&(f.scale=4),w(),b(),"pinchend"===e.type?(v.scale=f.scale,h=!1):h=!0,c.value=Math.floor(10*f.scale)})),L.on("panleft panright panup pandown panend",(function(e){1===v.scale?(f.translateX=0,f.translateY=0):(f.translateX=v.translateX+e.deltaX,f.translateY=v.translateY+e.deltaY,w()),b(),"panend"===e.type&&(v.translateX=f.translateX,v.translateY=f.translateY)}));const A=new Image;A.onload=function(){g()},window.addEventListener("resize",g),l.addEventListener("click",E),u&&u.addEventListener("click",(e=>{e.preventDefault(),function(e,t){const n=document.documentElement;n&&(n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen()),setTimeout((()=>{const n=e.querySelector(".hotspot-img-wrapper"),s=n.querySelector("img"),o=n.outerHTML,i=function(e,t){let n="";return e.currentStyle?n=e.currentStyle[t]:window.getComputedStyle&&(n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t)),n}(e,"background-color");let a=null;s.clientHeight,s.clientWidth;const l=s.clientWidth/s.clientHeight,c=window.innerHeight,d=window.innerWidth,u=window.innerWidth/window.innerHeight;let p=`width: ${d-20}px; height: auto`,h="hotspot-fullscreen";l<u&&(p=`height: ${c-20}px; width: auto`,h+=" portrait");
1const m=document.createElement("div");m.innerHTML=o,m.style=`background-color:${i}`,m.tabIndex="-2",document.body.appendChild(m),m.className=h,m.insertAdjacentHTML("beforeend",'<button type="button" class="hotspot-close-fullscreen" aria-label="Stäng ner fönster"><i class="icon-close" aria-hidden="true"></i></button>'),document.addEventListener("fullscreenchange",(()=>{document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||(m&&(m.classList.remove("hotspot-fullscreen--show"),setTimeout((()=>{m&&m.remove()}),1e3)),document.body.classList.remove("no-scroll"))})),setTimeout((()=>{m.focus();const e=m.querySelector(".hotspot-img-wrapper"),n=m.querySelectorAll(".hotspot-point"),s=m.querySelector(".hotspot-close-fullscreen");n.addEventListener("click",(e=>{e.preventDefault();const t=e.target.dataset.id;r.z.Show(`ph-${t}`),a=e.target})),s&&s.addEventListener("click",(e=>{e.preventDefault(),m&&m.classList.remove("hotspot-fullscreen--show"),document.body.classList.remove("no-scroll"),(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()),a&&r.z.HideAll(),setTimeout((()=>{m.remove()}),1e3),setTimeout((()=>{t.focus()}),10)})),e.style=p,setTimeout((()=>{m&&m.classList.add("hotspot-fullscreen--show"),document.body.classList.add("no-scroll")}),50)}),0)}),250)}(t.parentNode.parentNode,e.currentTarget)})),A.src=a.src}(e)}))},5075:()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(let n=0;n<this.length;n++)e.call(t,this[n],n,this)}),NodeList.prototype.addEventListener||(NodeList.prototype.addEventListener=function(e,t,n){for(let s=0;s<this.length;s++)this[s].addEventListener(e,t,n)}),NodeList.prototype.dispatchEvent||(NodeList.prototype.dispatchEvent=function(e){const t=new Event(e);for(let e=0;e<this.length;e++)this[e].dispatchEvent(t)}),NodeList.prototype.removeEventListener||(NodeList.prototype.removeEventListener=function(e,t,n){for(let s=0;s<this.length;s++)this[s].removeEventListener(e,t,n)}),Node.prototype.index||(Node.prototype.index=function(){const e=this.parentNode.childNodes;let t=0;for(let n=0;n<e.length;n++){if(e[n]==this)return t;1==e[n].nodeType&&t++}return-1}),Node.prototype.siblings||(Node.prototype.siblings=function(e){const t=e?this.parentNode.querySelectorAll(`:scope > ${e}`):this.parentNode.children;return Array.prototype.filter.call(t,(e=>e!==this))}),"function"!=typeof FormData.prototype.toJSON&&(FormData.prototype.toJSON=function(){const e={};for(const[t,n]of this.entries())e[t]=n;return e}),Element.prototype.appendBefore||(Element.prototype.appendBefore=function(e){e.parentNode.insertBefore(this,e)}),Element.prototype.appendAfter||(Element.prototype.appendAfter=function(e){e.parentNode.insertBefore(this,e.nextSibling)}),Element.prototype.getCoords||(Element.prototype.getCoords=function(){const e=this.getBoundingClientRect(),t=document.body,n=document.documentElement,s=window.scrollY||n.scrollTop||t.scrollTop,r=window.scrollX||n.scrollLeft||t.scrollLeft,o=n.clientTop||t.clientTop||0,i=n.clientLeft||t.clientLeft||0,a=e.top+s-o,l=e.left+r-i;return{top:Math.round(a),left:Math.round(l)}}),String.prototype.format||(String.prototype.format=function(){const e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){const n=t>0?0|t:0;return this.substring(n,n+e.length)===e}}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Element.prototype.remove||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),Array.prototype.remove||(Array.prototype.remove=function(e,t){if(t){const t=this.indexOf(e);t>-1&&this.splice(t,1)}else{let t=0;for(;t<this.length;)this[t]===e?this.splice(t,1):++t}return this}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");
1return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},7863:(e,t,n)=>{"use strict";n.d(t,{N7:()=>s,uN:()=>o});const s=(r=0,e=>new Promise((t=>{const n=document.createElement("script"),s="_jsonp_"+r++;e.match(/\?/)?e+=`&callback=${s}`:e+=`?callback=${s}`,n.src=e,window[s]=e=>{t(new Response(JSON.stringify(e))),n.remove(),delete window[s]},document.body.appendChild(n)})));var r;function o(e,t){const n=t.charAt(0),s="classList"in document.documentElement;let r,o;for("["===n&&(r=(t=t.substring(1,t.length-2)).split("="),r.length>1&&(o=!0,r[1]=r[1].replace(/"/g,"").replace(/'/g,"")));e&&e!==document&&1===e.nodeType;e=e.parentNode){if("."===n)if(s){if(e.classList.contains(t.substring(1)))return e}else if(new RegExp("(^|\\s)"+t.substring(1)+"(\\s|$)").test(e.className))return e;if("#"===n&&e.id===t.substring(1))return e;if("["===n&&e.hasAttribute(r[0])){if(!o)return e;if(e.getAttribute(r[0])===r[1])return e}if(e.tagName.toLowerCase()===t)return e}return null}},9051:()=>{function e(e){e.preventDefault();const t=document.getElementById("insipioRefererForm");return t&&(t.referer.value=document.location,t.submit()),!1}document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".link-listen");t&&t.length&&t.forEach((t=>{t.addEventListener("click",e)}))}))}}]);

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.