!function(){function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Drupal.behaviors.themekitCasesListing={attach:function(e){var r="active-filter",n=document.body,i=e.classList&&e.classList.contains("view-cases-listing")?e:e.querySelector(".view-cases-listing");if(i){var o=i.querySelector(".toggle-filters");if(o){var a=i.querySelector(".views-exposed-form");if(a){var c=a.querySelectorAll(".form-checkbox");if(c.length){o.addEventListener("click",(function(){n.classList.toggle(r)}));var s=function(){var e;(e=c,function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter((function(t){return t.checked})).length>0&&n.classList.add(r)};s(),a.addEventListener("submit",s)}}}}}}}();