PageSourceSearch

https://wopn.gov.pl/build/assets/expandedElement-77249cda.js

js wopn.gov.pl collected 2026-09-25 05:24:23 UTC 1,975 bytes, 1 lines download raw bytes

1let p=!0;const i=(o,s,t=null,a)=>{p=!0,s.classList.add("open"),a==="false"&&t.stop(),o.hasAttribute("data-focusin")&&s.addEventListener("focusout",d=>{s.contains(d.relatedTarget)||p&&o.focus()});const e=new CustomEvent("openelement");s.dispatchEvent(e)},x=(o,s,t,a)=>{o.hasAttribute("data-focusin")&&s.removeEventListener("focusout",d=>{}),p=!1,s.classList.remove("open"),a==="false"&&t.start();const e=new CustomEvent("closeelement");s.dispatchEvent(e)},r=(o,s)=>{const t=[...o].map((e,d)=>({index:d,expanded:e.getAttribute("aria-expanded")==="true",dialog:document.querySelector(`.${e.dataset.expanded}`),button:e,lenis:s,expandendname:e.dataset.expandendname,expandedscroll:e.dataset.scroll,expandedescape:e.dataset.expandedescape!=="false",expandednoclose:e.dataset.expandednoclose==="true",close:e.getAttribute("data-close")?document.querySelector(`.${e.getAttribute("data-close")}`):"",setExpanded(n){return this.expanded=n,this}})),a=e=>{e.dialog&&(e.expanded?i(e.button,e.dialog,e.lenis,e.expandedscroll):x(e.button,e.dialog,e.lenis,e.expandedscroll),e.button.setAttribute("aria-expanded",String(e.expanded)))};t.forEach(e=>{e.dialog&&e.button.addEventListener("click",()=>{if(e.expanded){if(!e.expandednoclose){const d=e.setExpanded(!1);a(d)}}else if(e.expandendname&&!e.expanded){t.forEach(n=>{if(n.expandendname===e.expandendname&&n.expanded){const c=n.setExpanded(!1);a(c)}});const d=e.setExpanded(!0);a(d)}else{const d=e.setExpanded(!0);a(d)}}),e.close&&e.close!=""&&e.dialog&&e.close.addEventListener("click",()=>{if(e.expanded){if(!e.expandednoclose){const d=e.setExpanded(!1);a(d)}}else if(e.expandendname&&!e.expanded){t.forEach(n=>{if(n.expandendname===e.expandendname&&n.expanded){const c=n.setExpanded(!1);a(c)}});const d=e.setExpanded(!0);a(d)}else{const d=e.setExpanded(!0);a(d)}})}),document.addEventListener("keydown",e=>{e.key==="Escape"&&t.forEach(d=>{if(d.expanded&&d.expandedescape){const n=d.setExpanded(!1);a(n)}})})};export{r as expandedInit};

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.