1"use strict";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 a=document.querySelector("#"+t.getAttribute("data-list_id"));if(a){let t="default";e.getAttribute("data-date")&&(t=e.getAttribute("data-date"));let r=a.querySelector(".module_body");if(r){let e=r,a={};a.parms="date="+t,a.finish=function(){recalculateHeight()},module_refresh(e,a)}}}}function slide_days(e){let t=window.innerWidth,a=0;a=t>1199?9:t>1e3?8:t>767?7:t>600?9:t>400?8:7;let r=e.target;for(;!r.getAttribute("data-value")&&r!==document.bodyElement;)r=r.parentElement;let n=r.parentElement.querySelector(".js__calendar__days"),l=parseFloat(window.getComputedStyle(n.querySelector(".calendar__day_container")).width)+parseFloat(window.getComputedStyle(n.querySelector(".calendar__day_container")).marginRight),o=parseInt(r.getAttribute("data-value")),d=parseInt(r.getAttribute("data-direction")),c=-1*(n.childElementCount-o-(a-o))*l,i=parseFloat(window.getComputedStyle(n).left),_=Math.min(0,Math.max(c,i+l*o*d));n.setStyle("left",_)}function change_month(e){let t=document.querySelectorAll(".calendar"),a={},r=e.target,n=null,l=r;for(;!l.classList.contains("calendar")&&l!==document.bodyElement;)l=l.parentElement;let o=[];for(t.forEach((function(e){e!==l&&o.push(e)}));!r.getAttribute("data-value")&&r!==document.bodyElement;)r=r.parentElement;r!==document.bodyElement&&l!==document.bodyElement&&(n=r.getAttribute("data-value"),n&&(a.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()},a.parms="month_change="+n,module_refresh(l,a))),setTimeout((function(){o.forEach((function(e){a.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()},a.parms="month_change=0",module_refresh(e,a)}))}),100)}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.