!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=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,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 has-alterations",t=function(t){if(!t.target.getAttribute("data-bs-toggle")&&("keydown"!==t.type||"Enter"===t.key)){var n=t.target;n.classList.contains("sac-day")||(n=n.closest(".sac-day")),e();var a=n.getAttribute("data-nids"),r=n.getAttribute("data-date"),o=[];a&&(o=a.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(r))}},"click"),a("sac-day has-alterations",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