!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=94)}({94:function(e,t){function n(){var e=window.getCurrentBreakPoint();if("sm"===e||"xs"===e){var t=document.getElementById("calendar-title");t&&(t.classList.remove("sr-only"),t.textContent="Alterations for the month")}}!function(e,t){e.behaviors.SaCalendar={attach:function(e){console.log("Loaded -- Service Alterations"),t("SaCalendar","#sac-calendar",e).forEach((function(){var e,t,r;window.addEventListener("resize",(function(){n()})),e=function(){document.querySelectorAll("#calendar-table .sac-table-row").forEach((function(e){e.classList.add("tr-hidden"),e.classList.remove("odd")})),document.getElementById("calendar-thead").classList.add("tr-hidden"),document.getElementById("calendar-title").classList.add("sr-only")},(r=function(e,t,n){Array.from(document.getElementsByClassName(e)).forEach((function(e){e.addEventListener(n,t)}))})("sac-day-disp",t=function(t){if("keydown"!==t.type||"Enter"===t.key){var n=t.target;console.error("xxxx"),e();var r=n.parentElement.getAttribute("data-nids"),a=n.parentElement.getAttribute("data-date"),o=[];r&&(o=r.split("|")).forEach((function(e){var t=document.getElementById("nid-".concat(e));t&&t.classList.remove("tr-hidden")}));var d=0;document.querySelectorAll("#calendar-table .sac-table-row").forEach((function(e){e.classList.contains("tr-hidden")||(d%2&&e.classList.add("odd"),d+=1)})),o.length&&(window.scrollToElement(document.getElementById("calendar-title"),100),document.getElementById("calendar-thead").classList.remove("tr-hidden"),document.getElementById("calendar-title").classList.remove("sr-only"),document.getElementById("calendar-title").textContent="Alterations ".concat(a))}},"click"),r("sac-day-disp",t,"keydown"),r("incident-dot",(function(e){if("keydown"!==e.type||"Enter"===e.key){var t=e.target.getAttribute("data-url");t&&(window.location.href=t)}}),"keydown"),r("sac-day disabled",e,"click"),n()}))}}}(Drupal,once)}});
//# sourceMappingURL=sa-calendar.js.map