PageSourceSearch

https://www.arvikanyheter.se/assets/rev/js/trackable-accordion-module-NF7U3H3F.js

js arvikanyheter.se collected 2026-10-04 02:15:20 UTC 937 bytes, 2 lines download raw bytes

1import{a as r}from"./chunk-5FWKMTUW.js";import"./chunk-6KHOHYTW.js";var i=class{constructor(t){this.element=t,this._init()}_init(){this._COLLAPSE_NAME=this.element.getAttribute("collapseName"),this._EXPAND_NAME=this.element.getAttribute("expandName"),this._EXPAND_ACTION="expand",this._COLLAPSE_ACTION="collapse";let t=document.querySelectorAll("summary");t&&t.forEach(e=>{e.hasAttribute("tracking-listener")||(e.setAttribute("tracking-listener",""),e.addEventListener("click",n=>{this.toggleAccordionTrackingEventHandler(n)}))})}toggleAccordionTrackingEventHandler(t){let e=this.element.querySelector("details");if(!e)return;let n=e.hasAttribute("open"),s=n?this._COLLAPSE_ACTION:this._EXPAND_ACTION,o=n?this._COLLAPSE_NAME:this._EXPAND_NAME;r({element:t.target,eventName:"follow-interaction-click-accordion",data:{action:s,type:"button",name:o}})}};export{i as default};
2//# sourceMappingURL=trackable-accordion-module-NF7U3H3F.js.map

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.