PageSourceSearch

https://www.chesterbrookacademy.com/wp-content/themes/spring/assets/scripts/component-accordion.js?ver=7.1.1

js chesterbrookacademy.com collected 2026-09-26 03:18:59 UTC 3,960 bytes, 1 lines download raw bytes

1!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,c=void 0,c=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(i,"string"),"symbol"===t(c)?c:String(c)),o)}var i,c}function n(e){var n=c();return function(){var o,i=a(e);if(n){var c=a(this).constructor;o=Reflect.construct(i,arguments,c)}else o=i.apply(this,arguments);return function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return r(e)}(this,o)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return i(t,arguments,a(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)},o(t)}function i(t,e,n){return i=c()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&u(o,n.prototype),o},i.apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}if(!customElements.get("accordion-block")){var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(f,t);var o,i,c,a=n(f);function f(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);var e=r(t=a.call(this)),n=t.querySelectorAll(".accordion__item");t.$items=n,document.addEventListener("js-window-resize-complete",(function(){e.setHeights()})),t.setHeights();var o=t.querySelectorAll(".accordion__title");return t.$titles=o,o.forEach((function(t,r){t.addEventListener("click",(function(){e.toggle(n[r])}))})),t}return o=f,(i=[{key:"setHeights",value:function(){this.$items.forEach((function(t){var e=t.querySelector(".accordion__content > div").offsetHeight;t.setAttribute("data-height",e),t.classList.contains("accordion__item--open")&&(t.querySelector(".accordion__content").style.height="".concat(e,"px"))}))}},{key:"toggle",value:function(t){var e=t.getAttribute("data-height"),n=t.querySelector(".accordion__content");t.classList.contains("accordion__item--open")?(t.classList.remove("accordion__item--open"),n.style.height=0):(t.classList.add("accordion__item--open"),n.style.height="".concat(e,"px"))}}])&&e(o.prototype,i),c&&e(o,c),Object.defineProperty(o,"prototype",{writable:!1}),f}(o(HTMLElement));customElements.define("accordion-block",f)}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.