1"use strict";function menuNoOverflowCal(){let e=document.documentElement.clientWidth,t=document.querySelector(".js__calendar__wrapper");if(t){let l=t.querySelectorAll("div.calendar__tooltip");l&&l.length&&l.forEach(function(t){t.style.left="unset",t.style.right="unset";let l=t.getBoundingClientRect();e-(l.left+l.width)<190?t.style.right="-1px":t.style.left="-1px"})}}function refresh_calendar_list(e){let t=e;for(;!t.classList.contains("js__calendar__wrapper")&&t!==document.bodyElement;)t=t.parentElement;if(t&&t!==document.bodyElement&&t.getAttribute("data-list_id")){let l=document.querySelector("#"+t.getAttribute("data-list_id"));if(l){let t="default";e.getAttribute("data-date")&&(t=e.getAttribute("data-date"));let n=l.querySelector(".module_body");if(n){let e=n,l={};l.parms="date="+t,l.finish=function(){recalculateHeight(),menuNoOverflowCal()},module_refresh(e,l)}}}}function slide_days(e){let t=window.innerWidth,l=0;l=t>1199?9:t>1e3?8:t>767?7:t>600?9:t>400?8:7;let n=e.target;for(;!n.getAttribute("data-value")&&n!==document.bodyElement;)n=n.parentElement;let a=n.parentElement.querySelector(".js__calendar__days"),r=parseFloat(window.getComputedStyle(a.querySelector(".calendar__day_container")).width)+parseFloat(window.getComputedStyle(a.querySelector(".calendar__day_container")).marginRight),o=parseInt(n.getAttribute("data-value")),d=parseInt(n.getAttribute("data-direction")),i=-1*(a.childElementCount-o-(l-o))*r,c=parseFloat(window.getComputedStyle(a).left),u=Math.min(0,Math.max(i,c+r*o*d));u!==i&&0!==u||(n.title="Brak dalszych dni do wyÅwietlenia"),a.style.left=`${u}px`}function change_month(e){let t=document.querySelectorAll(".calendar"),l={},n=e.target,a=null,r=n;for(;!r.classList.contains("calendar")&&r!==document.bodyElement;)r=r.parentElement;let o=[];for(t.forEach(function(e){e!==r&&o.push(e)});!n.getAttribute("data-value")&&n!==document.bodyElement;)n=n.parentElement;if(n!==document.bodyElement&&r!==document.bodyElement&&(a=n.getAttribute("data-value"),a)){l.finish=function(){Array.from(document.querySelectorAll(".js__calendar__arrow_month")).forEach(e=>e.addEventListener("click",change_month)),Array.from(document.querySelectorAll(".js__calendar__arrow_day")).forEach(e=>e.addEventListener("click",slide_days)),add_events_to_days(),refresh_calendar_list(e.target)},l.parms="month_change="+a;const{origin:t,pathname:n}=new URL(window.location.href),o=n.split("/").filter(Boolean),d=e.target.parentElement.getAttribute("data-dppn")??"strona";new RegExp(`^${d}-\\d+$`).test(o[o.length-1])&&o.pop();let i=`${t}/`;o.length>0&&(i+=o.join("/")+"/"),history.pushState(null,"",i),module_refresh(r,l)}}function add_events_to_days(){let e=document.querySelectorAll(".js__calendar__field.calendar__field--has_news");e&&Array.from(e).forEach(e=>e.addEventListener("click",function(e){refresh_calendar_list(e.target)}))}function recalculateHeight(){setTimeout(function(){let e=document.querySelector(".js__calendar__wrapper"),t=document.querySelector("#"+e.getAttribute("data-list_id"));if(t){let e=t.querySelectorAll(".js_calendar_list__desc__collapsible");e&&Array.from(e).forEach(function(e){e.setAttribute("style","height: 100% !important; transform:none;");let t=e.scrollHeight;e.style.height=t+"px",e.style.transform=""})}},100)}js_included.Calendar=!0;
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.