PageSourceSearch

https://www.brottsoffermyndigheten.se/Dist/brom/toggle.130dad9dcf52c18c1bcc.js

js brottsoffermyndigheten.se collected 2026-10-02 04:26:06 UTC 948 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkbrom_web=globalThis.webpackChunkbrom_web||[]).push([[3775],{935:(t,e,n)=>{n.r(e),n.d(e,{ToggleBlock:()=>i});class i{constructor(t){t&&(this.button=t.querySelector(".toggle-block__button"),this.content=t.querySelector(".toggle-block__content"),this.container=t.querySelector(".toggle-block__content > div"),this.expanded=!1,this.button&&this.button.addEventListener("click",this.toggle.bind(this)))}toggle(t){if(t.preventDefault(),this.content.hidden){this.content.hidden=!this.content.hidden,this.button.setAttribute("aria-expanded",!this.content.hidden),this.container.style.height="auto";const t=this.container.clientHeight+"px";this.container.style.height="0",setTimeout((()=>{this.container.style.height=t}),0)}else this.container.style.height="0",this.container.addEventListener("transitionend",(()=>{this.content.hidden=!0,this.button.setAttribute("aria-expanded",!this.content.hidden)}),{once:!0})}}}}]);

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.