!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},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=96)}({96: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,a;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")},(a=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,a=n.closest?n.closest(".sac-day-disp"):n.classList&&n.classList.contains("sac-day-disp")?n:n.parentElement;e();var r=a.parentElement.getAttribute("data-nids"),o=a.parentElement.getAttribute("data-date"),d=[];r&&(d=r.split("|")).forEach((function(e){var t=document.getElementById("nid-".concat(e));t&&t.classList.remove("tr-hidden")}));var c=0;document.querySelectorAll("#calendar-table .sac-table-row").forEach((function(e){e.classList.contains("tr-hidden")||(c%2&&e.classList.add("odd"),c+=1)})),d.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(o))}},"click"),a("sac-day-disp",t,"keydown"),a("incident-dot",(function(e){if("keydown"!==e.type||"Enter"===e.key){var t=e.target.getAttribute("data-url");t&&(window.location.href=t)}}),"keydown"),a("sac-day disabled",e,"click"),n()}))}}}(Drupal,once)}});
//# sourceMappingURL=sa-calendar.js.map