!function(e){var t={};function n(o){if(t[o])return t[o].exports;var c=t[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(o,c,function(t){return e[t]}.bind(null,c));return o},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=38)}({38:function(e,t){function n(){var e=document.getElementById("jcs-modal");if(e){var t=0,n=document.getElementById("sgha"),o=document.getElementById("sgsa");e.querySelectorAll("[data-bs-toggle=collapse]").forEach((function(e){e.classList.contains("collapsed")||(t+=1)})),t?(n&&n.classList.remove("visually-hidden"),o&&o.classList.add("visually-hidden")):(n&&n.classList.add("visually-hidden"),o&&o.classList.remove("visually-hidden"))}}function o(){var e=document.getElementById("jcs-modal");e&&(e.querySelectorAll("[data-bs-toggle=collapse]").forEach((function(e){e.classList.contains("collapsed")||e.click()})),n())}!function(e,t){e.behaviors.jcModalItems={attach:function(e){console.log("Loaded -- Modal items behaviors");var c=document.getElementById("jcs-modal");t("jcModalItems",c,e).forEach((function(e){e.addEventListener("hidden.bs.modal",(function(){o()}))}));var l=document.getElementById("sgha");t("jcModalItems",l,e).forEach((function(e){e.addEventListener("click",(function(){o()}),!1)}));var a=document.getElementById("sgsa");if(t("jcModalItems",a,e).forEach((function(e){e.addEventListener("click",(function(){!function(){var e=document.getElementById("jcs-modal");e&&(e.querySelectorAll("[data-bs-toggle=collapse]").forEach((function(e){e.classList.contains("collapsed")&&e.click()})),n())}()}),!1)})),c){var r=c.querySelectorAll("[data-bs-toggle=collapse]");t("jcModalItems",r,e).forEach((function(e){e.addEventListener("click",(function(){n()}),!1)}))}}}}(Drupal,once)}});
//# sourceMappingURL=jc-modal-items.js.map