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