PageSourceSearch

https://provence-alpes-cotedazur.com/app/dist/crt-paca/addons/wood…/interactive-svg-component.0a12c900fa.mjs

js provence-alpes-cotedazur.com collected 2026-10-02 03:25:01 UTC 1,130 bytes, 1 lines download raw bytes

1import n from"woody_library_woody_component";class a extends n{#e={item:".item",active_class:"active",dataset_index:"id"};#i;#t;constructor(){super()}init(i){super.init(i),this.style.display="block",this.config=Object.assign(this.#e,this.config),this.#t=this.querySelectorAll(this.config.item),this.#t?.length>0?this.#t.forEach(t=>{t.classList.contains(this.config.active_class)&&(this.#i=t.dataset[this.config.dataset_index]);const s=()=>{this.setActiveIndex(t.dataset[this.config.dataset_index]),this.dispatchEvent(new CustomEvent("itemclick",{detail:{index:t.dataset[this.config.dataset_index]}}))};t.addEventListener("click",s),t.addEventListener("keydown",e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),s())})}):console.warn("InteractiveSVGComponent - no item found for selector ",this.config.item),this.dispatchEvent(new CustomEvent("initialized"))}setActiveIndex(i){i!=this.#i&&(this.#t?.length>0&&this.#t.forEach(t=>{t.classList.remove(this.config.active_class),t.dataset[this.config.dataset_index]==i&&t.classList.add(this.config.active_class)}),this.#i=i)}getActiveIndex(){return this.#i}}export{a as default};

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.