PageSourceSearch

https://traton.com/.resources/vw-tab-website-light-module/webresou…/v3/js/modules/SimpleDropdown-8c5711dc.js

js traton.com collected 2026-10-02 05:22:24 UTC 1,067 bytes, 1 lines download raw bytes

1function a(e){let i,t,r,s,d,o;this.init=function(){i=e.querySelector(".simple-dropdown-header"),t=e.querySelector(".simple-dropdown-menu"),r=e.querySelectorAll(".simple-dropdown-item label"),s=e.querySelectorAll('.simple-dropdown-item input[type="radio"]'),d=e.dataset.defaultOptionLabel,o=!1,i&&t&&r&&(s&&t.addEventListener("change",this.changeRadioHandler.bind(this)),i.addEventListener("click",this.clickHeaderHandler.bind(this)),document.addEventListener("click",this.closeDropdown.bind(this)),this.updateHeader())},this.clickHeaderHandler=function(n){n.stopPropagation(),o?this.closeDropdown():this.openDropdown()},this.changeRadioHandler=function(n){const l=e.querySelector('label[for="'.concat(n.target.id,'"]'));l&&(d=l.textContent.trim(),this.updateHeader(),this.closeDropdown())},this.updateHeader=function(){i&&(i.querySelector(".selected-label").textContent=d)},this.closeDropdown=function(n){o=!1,t&&t.classList.remove("open")},this.openDropdown=function(){o=!0,t&&t.classList.add("open")},this.init()}function c(e){return new a(e)}export{c as Factory};

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.