!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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=38)}({38:function(e,t){(e=>{Drupal.behaviors.juiceBox={attach(t){const n=document.querySelectorAll(".jcbx");e("juiceBox",n).forEach(e=>{const n=e.id,r=e.parentElement,o=t.getElementById("jb-hide-"+n),l=t.getElementById("jb-expand-"+n),a=t.getElementById("crslc-main-"+n),c=t.getElementById("crslc-nav-"+n),d=e.getElementsByClassName("jcbx-thumb");let i=null;c&&(i=new window.Carousel(c,{ride:!1,wrap:!1,interval:0})),r&&a&&o&&l&&(d&&i&&a.addEventListener("slid.bs.carousel",(function(e){for(const e of d)e.classList.remove("tb-active");const r=e.to,o=t.getElementById(`jcbx-thumb-${n}-${r}`);if(o&&(o.classList.add("tb-active"),i)){const e=parseInt(o.dataset.jcbxThumbSlide,10);i.to(e)}})),o.addEventListener("click",(function(t){t.preventDefault(),e.classList.remove("full_screen"),o.classList.add("display-hidden"),l.classList.remove("display-hidden"),r.appendChild(e),document.body.classList.remove("page-overlay-on")}),!1),l.addEventListener("click",(function(t){t.preventDefault(),e.classList.add("full_screen"),l.classList.add("display-hidden"),o.classList.remove("display-hidden"),document.body.appendChild(e),document.body.classList.add("page-overlay-on")}),!1),document.addEventListener("keydown",e=>{if("Escape"===e.key){!(e.ctrlKey||e.altKey||e.shiftKey)&&o.click()}}))})}}})(once)}});
//# sourceMappingURL=tm-gallery.js.map