PageSourceSearch

https://bgpn.gov.pl/build/assets/ulist-11dc1e6e.js

js bgpn.gov.pl collected 2026-09-25 05:03:03 UTC 3,315 bytes, 12 lines download raw bytes

1import{D as h,p as L}from"./pl-9a875d0b.js";Object.assign(h.locales,L);function S(a,s){var d;const r={page:(d=a.dataset)!=null&&d.page?a.dataset.page:1,filters:{},perPage:parseInt(a.dataset.perPage,10)},u=a.dataset.paginationUrl;function c(){a.style.opacity=.4,v(),fetch(u,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then(t=>t.json()).then(t=>{if(!t.html)throw new Error;a.innerHTML=t.html,a.style.opacity=1,y(),w(t.maxItems,t.maxItemsTrans?t.maxItemsTrans:null),m()}).catch(t=>{a.style.opacity=1})}a.classList.contains("js-init-disabled")||c();const g=new Date,f=`<svg width="50" height="31" viewBox="0 0 50 31" fill="none" xmlns="http://www.w3.org/2000/svg">
2  <rect x="-0.5" y="0.5" width="49" height="29" rx="11.5" transform="matrix(-1 0 0 1 49 0.363281)" fill="white"/>
3  <rect x="-0.5" y="0.5" width="49" height="29" rx="11.5" transform="matrix(-1 0 0 1 49 0.363281)" stroke="#222222"/>
4  <path d="M21 10.3633L16 15.3633L21 20.3633" stroke="#222222" stroke-width="1.5"/>
5  <path d="M34 15.3633L16 15.3633" stroke="#222222" stroke-width="1.5"/>
6  </svg>
7  `,p=`<svg width="50" height="31" viewBox="0 0 50 31" fill="none" xmlns="http://www.w3.org/2000/svg">
8  <rect x="0.5" y="0.863281" width="49" height="29" rx="11.5" fill="white"/>
9  <rect x="0.5" y="0.863281" width="49" height="29" rx="11.5" stroke="#222222"/>
10  <path d="M29 10.3633L34 15.3633L29 20.3633" stroke="#222222" stroke-width="1.5"/>
11  <path d="M16 15.3633H34" stroke="#222222" stroke-width="1.5"/>
12  </svg>`;s.querySelectorAll(".js-block-date").forEach(t=>{new h(t,{language:"pl",format:"yyyy-mm-dd",minDate:t.dataset.min?new Date(t.dataset.min):g,prevArrow:f,nextArrow:p,todayHighlight:!0,autohide:!0}),t.addEventListener("changeDate",function(){const e=new Event("change",{bubbles:!0});t.dispatchEvent(e)})});function y(){const t=a.querySelectorAll(".js-pagination-value");t&&t.forEach(e=>{e.addEventListener("click",function(n){n.preventDefault(),r.page=parseInt(this.dataset.value,10),c()})})}function v(){r.filters={};const t=new FormData(s);for(const[e,n]of t)r.filters[e]=t.getAll(e)}function w(t,e=null){const n=s.querySelector(".js-ulist-total");n&&(n.innerHTML=t);const o=s.querySelector(".js-ulist-trans");o&&e&&(o.innerHTML=e)}s&&s.addEventListener("keydown",function(t){if(t.keyIdentifier=="U+000A"||t.keyIdentifier=="Enter"||t.keyCode==13)return t.preventDefault(),t.target.nodeName==="INPUT"&&c(),!1}),s.querySelectorAll("input,select").forEach(t=>{t.addEventListener("change",function(e){e.preventDefault(),r.page=1,c()})});const l=s.querySelectorAll(".js-tag"),i=s.querySelector(".js-clear-tags");if(l.length>0&&i){const t=i.querySelector("span"),e=()=>{const n=s.querySelectorAll(".js-tag:checked");n.length>0?(i.classList.contains("hide")&&i.classList.remove("hide"),t&&(t.innerHTML=`(${n.length})`)):i.classList.add("hide")};e(),l.forEach(n=>{n.addEventListener("change",o=>{o.preventDefault(),e()})}),i.addEventListener("click",n=>{n.preventDefault(),i.classList.add("hide"),l.forEach(o=>{o.checked=!1}),c()})}function m(){var t=a.querySelectorAll(".js-popular-count:not(.ready)");t.forEach(e=>{e.addEventListener("click",function(n){const o=e.dataset.pop;fetch(o,{method:"POST",body:"",headers:{"Content-Type":"application/json"}})}),e.classList.add("ready")})}}export{S as UList};

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.