From bcdb0b2ffc5d1eed13f9dc0c95f8b8c8944dc1ed Mon Sep 17 00:00:00 2001 From: CircleCI Date: Wed, 26 Apr 2023 16:34:25 +0000 Subject: [PATCH 1/2] 9.4.18 --- .../humsci_default_content/humsci_default_content.info.yml | 2 +- .../humsci_events_listeners/humsci_events_listeners.info.yml | 2 +- .../humsci/su_humsci_profile/su_humsci_profile.info.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docroot/profiles/humsci/su_humsci_profile/modules/humsci_default_content/humsci_default_content.info.yml b/docroot/profiles/humsci/su_humsci_profile/modules/humsci_default_content/humsci_default_content.info.yml index 1dca0ddba2..f13ab5a4e9 100644 --- a/docroot/profiles/humsci/su_humsci_profile/modules/humsci_default_content/humsci_default_content.info.yml +++ b/docroot/profiles/humsci/su_humsci_profile/modules/humsci_default_content/humsci_default_content.info.yml @@ -3,7 +3,7 @@ description: 'DO NOT INSTALL. This is for profile installation task only.' core_version_requirement: '^9.4 || ^10' hidden: true type: module -version: 9.4.17 +version: 9.4.18 default_content: shortcut: - 0c69448d-c6fa-4fb8-9b2e-f93f3a955baf diff --git a/docroot/profiles/humsci/su_humsci_profile/modules/humsci_events_listeners/humsci_events_listeners.info.yml b/docroot/profiles/humsci/su_humsci_profile/modules/humsci_events_listeners/humsci_events_listeners.info.yml index aa32ca4f08..44b2f12484 100644 --- a/docroot/profiles/humsci/su_humsci_profile/modules/humsci_events_listeners/humsci_events_listeners.info.yml +++ b/docroot/profiles/humsci/su_humsci_profile/modules/humsci_events_listeners/humsci_events_listeners.info.yml @@ -14,4 +14,4 @@ dependencies: - 'hook_event_dispatcher:toolbar_event_dispatcher' - 'hook_event_dispatcher:user_event_dispatcher' - 'hook_event_dispatcher:views_event_dispatcher' -version: 9.4.17 +version: 9.4.18 diff --git a/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.info.yml b/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.info.yml index 184a87e1b0..70ce8745a9 100644 --- a/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.info.yml +++ b/docroot/profiles/humsci/su_humsci_profile/su_humsci_profile.info.yml @@ -1,7 +1,7 @@ name: 'Stanford HumSci' type: profile description: 'Installation profile for HumSci Drupal' -version: 9.4.17 +version: 9.4.18 core_version_requirement: '^9.4 || ^10' themes: - material_admin From 821ac1733a5f2023b4c99afc929ffda4178e5112 Mon Sep 17 00:00:00 2001 From: Ryan Hagerty Date: Mon, 1 May 2023 14:56:15 -0400 Subject: [PATCH 2/2] fix: hotfix for stray query parameters attached to url (#1301) --- .../src/js/shared/accordion/accordion-toggle-all.js | 2 +- .../src/js/shared/timeline/expand-collapse-timeline.js | 2 +- docroot/themes/humsci/humsci_colorful/js/index.js | 2 +- docroot/themes/humsci/humsci_traditional/js/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docroot/themes/humsci/humsci_basic/src/js/shared/accordion/accordion-toggle-all.js b/docroot/themes/humsci/humsci_basic/src/js/shared/accordion/accordion-toggle-all.js index 1cd0a33df5..4140ccab4a 100644 --- a/docroot/themes/humsci/humsci_basic/src/js/shared/accordion/accordion-toggle-all.js +++ b/docroot/themes/humsci/humsci_basic/src/js/shared/accordion/accordion-toggle-all.js @@ -97,6 +97,6 @@ function toggleAccordionFromSearch() { }); } -if (Object.keys(params).length) { +if (Object.keys(params).length && Object.prototype.hasOwnProperty.call(params, 'search')) { toggleAccordionFromSearch(); } diff --git a/docroot/themes/humsci/humsci_basic/src/js/shared/timeline/expand-collapse-timeline.js b/docroot/themes/humsci/humsci_basic/src/js/shared/timeline/expand-collapse-timeline.js index cdabdf4334..4e3938451c 100644 --- a/docroot/themes/humsci/humsci_basic/src/js/shared/timeline/expand-collapse-timeline.js +++ b/docroot/themes/humsci/humsci_basic/src/js/shared/timeline/expand-collapse-timeline.js @@ -67,6 +67,6 @@ function toggleTimelineFromSearch() { }); } -if (Object.keys(params).length) { +if (Object.keys(params).length && Object.prototype.hasOwnProperty.call(params, 'search')) { toggleTimelineFromSearch(); } diff --git a/docroot/themes/humsci/humsci_colorful/js/index.js b/docroot/themes/humsci/humsci_colorful/js/index.js index d346a4ed68..18daa58c1e 100644 --- a/docroot/themes/humsci/humsci_colorful/js/index.js +++ b/docroot/themes/humsci/humsci_colorful/js/index.js @@ -1 +1 @@ -(()=>{var e={418:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(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.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=1){var a=!1;o.forEach((function(e){if(e.classList.contains("hb-accordion_toggle-all")){var t=function(){var e=document.createElement("Button");return e.innerText="Expand All",e.classList.add("hb-link"),e.classList.add("hb-accordion-toggle-all"),e}();e.parentNode.insertBefore(t,e)}}));var i=e(document.querySelectorAll(".hb-accordion-toggle-all"));i.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),a?(r(o,"closeAll"),n(i,"closeAll"),a=!1):(r(o,"openAll"),n(i,"openAll"),a=!0),e.scrollIntoView(!0)}))}))}var l,c=new URLSearchParams(window.location.search),u=Object.fromEntries(c.entries());Object.keys(u).length&&(l=u.search.toLowerCase(),o.forEach((function(e){e.textContent.toLowerCase().includes(l)&&e.setAttribute("open","")})))},356:()=>{var e=document.querySelector(".hb-has-animation-enhancements"),t=document.querySelector(".hb-experimental"),r=[document.querySelectorAll(".hs-font-lead")],n=[document.querySelectorAll(".hb-gradient-hero"),document.querySelectorAll(".hb-gradient-hero__text"),document.querySelectorAll(".hb-gradient-hero__image-wrapper"),document.querySelectorAll(".field-hs-gradient-hero-image"),document.querySelectorAll(".hb-hero-overlay"),document.querySelectorAll(".hb-hero-overlay__text"),document.querySelectorAll(".hb-hero-overlay__image-wrapper"),document.querySelectorAll(".field-hs-hero-image"),document.querySelectorAll(".hs-font-splash")];t&&n.push(r);var o=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&e.target.classList.add("animate")}))}));e&&n.forEach((function(e){e&&e.forEach((function(e){o.observe(e)}))}))},642:()=>{function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(o(),window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(o,250)})))},808:()=>{var e=document.querySelectorAll(".field-media-oembed-video");if(e&&e.length>0)for(var t=0;t{var e=document.querySelector(".js-megamenu");if(e){var t=document.querySelector(".js-megamenu__mobile-btn"),r=e.querySelector(".js-megamenu__list--main"),n=e.querySelectorAll(".js-megamenu__toggle"),o=window.innerWidth,a=o<992;window.addEventListener("resize",(function(){o=window.innerWidth,a=o<=992}));var i=function(e){e.nextElementSibling.classList.remove("is-expanded"),e.classList.remove("is-expanded"),e.setAttribute("aria-expanded","false")};document.body.addEventListener("mousedown",(function(t){e.contains(t.target)||n.forEach((function(e){i(e)}))}));var l=function(e,t){var r=e.getAttribute("aria-".concat(t));r="true"===r?"false":"true",e.setAttribute("aria-".concat(t),r)};t&&(l(t,"expanded"),a&&function(){var e=document.querySelector(".js-megamenu__active-trail");if(e){var t=e.nextElementSibling;l(e,"expanded"),e.classList.add("is-expanded"),t.classList.add("is-expanded")}}(),t.addEventListener("click",(function(){l(t,"expanded"),r&&r.classList.toggle("is-active")}))),n.forEach((function(e){e.addEventListener("click",(function(t){var r=t.currentTarget,o=t.currentTarget.parentElement.querySelector(".js-megamenu__expanded-container");a||function(e){n.forEach((function(t){t!==e&&i(t)}))}(r),l(r,"expanded"),e.classList.toggle("is-expanded"),o.classList.toggle("is-expanded")}))}))}},638:()=>{function e(e,t){for(var r=0;r{var e=document.querySelectorAll("".concat("div.hb-table-pattern__header > div.hb-table-pattern__row > div",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > span",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > p")),t=document.querySelectorAll(".hb-table-row");if(t)for(var r=0;r{function e(e){var t=document.createElement("div");t.className="hb-table-wrap",e.parentNode.insertBefore(t,e),t.appendChild(e)}for(var t=document.querySelectorAll("table"),r=document.querySelectorAll(".hb-table-pattern"),n=0;n{document.querySelectorAll(".hb-timeline__collapsed").forEach((function(e){e.querySelectorAll(".hb-timeline-item").forEach((function(e){e.removeAttribute("open")})),e.querySelectorAll(".hb-timeline-item__summary").forEach((function(e){e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false")}))}));var e=document.querySelectorAll(".hb-timeline-item");e&&e.forEach((function(e){var t=e.querySelector(".hb-timeline-item__summary"),r=t.getAttribute("aria-expanded");t.addEventListener("click",(function(){"true"===r?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-pressed","false")):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-pressed","true")),r=t.getAttribute("aria-expanded")}))}));var t,r=new URLSearchParams(window.location.search),n=Object.fromEntries(r.entries());Object.keys(n).length&&(t=n.search.toLowerCase(),e.forEach((function(e){if(e.textContent.toLowerCase().includes(t)){var r=e.querySelector("summary");e.setAttribute("open",""),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-pressed","true")}})))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{"use strict";r(642),r(42),r(638),r(965);const e=function(e,t,r){e.setAttribute("aria-expanded",r),t.setAttribute("aria-hidden",!r)};var t,n,o=document.querySelector(".hb-main-nav__toggle"),a=document.querySelector(".hb-main-nav__menu-lv1");o&&(o.addEventListener("click",(function(){var t="true"===o.getAttribute("aria-expanded");e(o,a,!t)})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&!n&&(e(o,a,!0),n=!0),t<992&&n&&(e(o,a,!1),n=!1)})));const i=function(t,r,n){t.preventDefault();var o="true"===t.target.getAttribute("aria-expanded");e(r,n,!o)};var l=document.querySelectorAll(".hb-nested-toggler");if(l)for(var c=function(){var t=window.innerWidth,r=l[u],n=r.getAttribute("id"),o=document.querySelector('[aria-labelledby="'.concat(n,'"]')),a=r.parentNode;if(!o)return"continue";r.addEventListener("click",(function(e){return i(e,r,o)})),r.addEventListener("keydown",(function(t){if(32===t.which){t.preventDefault();var n="true"===t.target.getAttribute("aria-expanded");e(r,o,!n)}})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&e(r,o,!1)})),["focusin","click"].forEach((function(n){document.body.addEventListener(n,(function(n){t>=992&&!a.contains(n.target)&&e(r,o,!1)}),!1)}))},u=0;u0){var t=Array.prototype.map.call(e,(function(e){return e.scrollHeight}));return new Promise((function(r){var n=Math.max.apply(null,t),o=t.indexOf(n);Array.prototype.forEach.call(e,(function(e,t){t!==o&&(e.style.minHeight="".concat(n,"px"))})),r()}))}},w=function(e){e.forEach((function(e){e.style.minHeight="auto"}))};function E(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):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.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&w(n),e&&t.length>0&&w(t),e&&window.innerWidth>=576&&(t.length>0?_(t).then((function(){return _(n)})).catch((function(e){return console.error("issue loading equal height cards",e)})):n.length>0&&_(n))}))};setTimeout((function(){x()}),1e3),window.addEventListener("resize",(function(){setTimeout((function(){x()}),500)})),r(808),r(356),r(227),r(418),r(743)})()})(); \ No newline at end of file +(()=>{var e={418:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(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.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=1){var a=!1;o.forEach((function(e){if(e.classList.contains("hb-accordion_toggle-all")){var t=function(){var e=document.createElement("Button");return e.innerText="Expand All",e.classList.add("hb-link"),e.classList.add("hb-accordion-toggle-all"),e}();e.parentNode.insertBefore(t,e)}}));var i=e(document.querySelectorAll(".hb-accordion-toggle-all"));i.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),a?(r(o,"closeAll"),n(i,"closeAll"),a=!1):(r(o,"openAll"),n(i,"openAll"),a=!0),e.scrollIntoView(!0)}))}))}var l,c=new URLSearchParams(window.location.search),u=Object.fromEntries(c.entries());Object.keys(u).length&&Object.prototype.hasOwnProperty.call(u,"search")&&(l=u.search.toLowerCase(),o.forEach((function(e){e.textContent.toLowerCase().includes(l)&&e.setAttribute("open","")})))},356:()=>{var e=document.querySelector(".hb-has-animation-enhancements"),t=document.querySelector(".hb-experimental"),r=[document.querySelectorAll(".hs-font-lead")],n=[document.querySelectorAll(".hb-gradient-hero"),document.querySelectorAll(".hb-gradient-hero__text"),document.querySelectorAll(".hb-gradient-hero__image-wrapper"),document.querySelectorAll(".field-hs-gradient-hero-image"),document.querySelectorAll(".hb-hero-overlay"),document.querySelectorAll(".hb-hero-overlay__text"),document.querySelectorAll(".hb-hero-overlay__image-wrapper"),document.querySelectorAll(".field-hs-hero-image"),document.querySelectorAll(".hs-font-splash")];t&&n.push(r);var o=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&e.target.classList.add("animate")}))}));e&&n.forEach((function(e){e&&e.forEach((function(e){o.observe(e)}))}))},642:()=>{function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(o(),window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(o,250)})))},808:()=>{var e=document.querySelectorAll(".field-media-oembed-video");if(e&&e.length>0)for(var t=0;t{var e=document.querySelector(".js-megamenu");if(e){var t=document.querySelector(".js-megamenu__mobile-btn"),r=e.querySelector(".js-megamenu__list--main"),n=e.querySelectorAll(".js-megamenu__toggle"),o=window.innerWidth,a=o<992;window.addEventListener("resize",(function(){o=window.innerWidth,a=o<=992}));var i=function(e){e.nextElementSibling.classList.remove("is-expanded"),e.classList.remove("is-expanded"),e.setAttribute("aria-expanded","false")};document.body.addEventListener("mousedown",(function(t){e.contains(t.target)||n.forEach((function(e){i(e)}))}));var l=function(e,t){var r=e.getAttribute("aria-".concat(t));r="true"===r?"false":"true",e.setAttribute("aria-".concat(t),r)};t&&(l(t,"expanded"),a&&function(){var e=document.querySelector(".js-megamenu__active-trail");if(e){var t=e.nextElementSibling;l(e,"expanded"),e.classList.add("is-expanded"),t.classList.add("is-expanded")}}(),t.addEventListener("click",(function(){l(t,"expanded"),r&&r.classList.toggle("is-active")}))),n.forEach((function(e){e.addEventListener("click",(function(t){var r=t.currentTarget,o=t.currentTarget.parentElement.querySelector(".js-megamenu__expanded-container");a||function(e){n.forEach((function(t){t!==e&&i(t)}))}(r),l(r,"expanded"),e.classList.toggle("is-expanded"),o.classList.toggle("is-expanded")}))}))}},638:()=>{function e(e,t){for(var r=0;r{var e=document.querySelectorAll("".concat("div.hb-table-pattern__header > div.hb-table-pattern__row > div",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > span",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > p")),t=document.querySelectorAll(".hb-table-row");if(t)for(var r=0;r{function e(e){var t=document.createElement("div");t.className="hb-table-wrap",e.parentNode.insertBefore(t,e),t.appendChild(e)}for(var t=document.querySelectorAll("table"),r=document.querySelectorAll(".hb-table-pattern"),n=0;n{document.querySelectorAll(".hb-timeline__collapsed").forEach((function(e){e.querySelectorAll(".hb-timeline-item").forEach((function(e){e.removeAttribute("open")})),e.querySelectorAll(".hb-timeline-item__summary").forEach((function(e){e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false")}))}));var e=document.querySelectorAll(".hb-timeline-item");e&&e.forEach((function(e){var t=e.querySelector(".hb-timeline-item__summary"),r=t.getAttribute("aria-expanded");t.addEventListener("click",(function(){"true"===r?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-pressed","false")):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-pressed","true")),r=t.getAttribute("aria-expanded")}))}));var t,r=new URLSearchParams(window.location.search),n=Object.fromEntries(r.entries());Object.keys(n).length&&Object.prototype.hasOwnProperty.call(n,"search")&&(t=n.search.toLowerCase(),e.forEach((function(e){if(e.textContent.toLowerCase().includes(t)){var r=e.querySelector("summary");e.setAttribute("open",""),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-pressed","true")}})))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{"use strict";r(642),r(42),r(638),r(965);const e=function(e,t,r){e.setAttribute("aria-expanded",r),t.setAttribute("aria-hidden",!r)};var t,n,o=document.querySelector(".hb-main-nav__toggle"),a=document.querySelector(".hb-main-nav__menu-lv1");o&&(o.addEventListener("click",(function(){var t="true"===o.getAttribute("aria-expanded");e(o,a,!t)})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&!n&&(e(o,a,!0),n=!0),t<992&&n&&(e(o,a,!1),n=!1)})));const i=function(t,r,n){t.preventDefault();var o="true"===t.target.getAttribute("aria-expanded");e(r,n,!o)};var l=document.querySelectorAll(".hb-nested-toggler");if(l)for(var c=function(){var t=window.innerWidth,r=l[u],n=r.getAttribute("id"),o=document.querySelector('[aria-labelledby="'.concat(n,'"]')),a=r.parentNode;if(!o)return"continue";r.addEventListener("click",(function(e){return i(e,r,o)})),r.addEventListener("keydown",(function(t){if(32===t.which){t.preventDefault();var n="true"===t.target.getAttribute("aria-expanded");e(r,o,!n)}})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&e(r,o,!1)})),["focusin","click"].forEach((function(n){document.body.addEventListener(n,(function(n){t>=992&&!a.contains(n.target)&&e(r,o,!1)}),!1)}))},u=0;u0){var t=Array.prototype.map.call(e,(function(e){return e.scrollHeight}));return new Promise((function(r){var n=Math.max.apply(null,t),o=t.indexOf(n);Array.prototype.forEach.call(e,(function(e,t){t!==o&&(e.style.minHeight="".concat(n,"px"))})),r()}))}},_=function(e){e.forEach((function(e){e.style.minHeight="auto"}))};function E(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):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.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&_(n),e&&t.length>0&&_(t),e&&window.innerWidth>=576&&(t.length>0?w(t).then((function(){return w(n)})).catch((function(e){return console.error("issue loading equal height cards",e)})):n.length>0&&w(n))}))};setTimeout((function(){x()}),1e3),window.addEventListener("resize",(function(){setTimeout((function(){x()}),500)})),r(808),r(356),r(227),r(418),r(743)})()})(); \ No newline at end of file diff --git a/docroot/themes/humsci/humsci_traditional/js/index.js b/docroot/themes/humsci/humsci_traditional/js/index.js index d346a4ed68..18daa58c1e 100644 --- a/docroot/themes/humsci/humsci_traditional/js/index.js +++ b/docroot/themes/humsci/humsci_traditional/js/index.js @@ -1 +1 @@ -(()=>{var e={418:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(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.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=1){var a=!1;o.forEach((function(e){if(e.classList.contains("hb-accordion_toggle-all")){var t=function(){var e=document.createElement("Button");return e.innerText="Expand All",e.classList.add("hb-link"),e.classList.add("hb-accordion-toggle-all"),e}();e.parentNode.insertBefore(t,e)}}));var i=e(document.querySelectorAll(".hb-accordion-toggle-all"));i.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),a?(r(o,"closeAll"),n(i,"closeAll"),a=!1):(r(o,"openAll"),n(i,"openAll"),a=!0),e.scrollIntoView(!0)}))}))}var l,c=new URLSearchParams(window.location.search),u=Object.fromEntries(c.entries());Object.keys(u).length&&(l=u.search.toLowerCase(),o.forEach((function(e){e.textContent.toLowerCase().includes(l)&&e.setAttribute("open","")})))},356:()=>{var e=document.querySelector(".hb-has-animation-enhancements"),t=document.querySelector(".hb-experimental"),r=[document.querySelectorAll(".hs-font-lead")],n=[document.querySelectorAll(".hb-gradient-hero"),document.querySelectorAll(".hb-gradient-hero__text"),document.querySelectorAll(".hb-gradient-hero__image-wrapper"),document.querySelectorAll(".field-hs-gradient-hero-image"),document.querySelectorAll(".hb-hero-overlay"),document.querySelectorAll(".hb-hero-overlay__text"),document.querySelectorAll(".hb-hero-overlay__image-wrapper"),document.querySelectorAll(".field-hs-hero-image"),document.querySelectorAll(".hs-font-splash")];t&&n.push(r);var o=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&e.target.classList.add("animate")}))}));e&&n.forEach((function(e){e&&e.forEach((function(e){o.observe(e)}))}))},642:()=>{function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(o(),window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(o,250)})))},808:()=>{var e=document.querySelectorAll(".field-media-oembed-video");if(e&&e.length>0)for(var t=0;t{var e=document.querySelector(".js-megamenu");if(e){var t=document.querySelector(".js-megamenu__mobile-btn"),r=e.querySelector(".js-megamenu__list--main"),n=e.querySelectorAll(".js-megamenu__toggle"),o=window.innerWidth,a=o<992;window.addEventListener("resize",(function(){o=window.innerWidth,a=o<=992}));var i=function(e){e.nextElementSibling.classList.remove("is-expanded"),e.classList.remove("is-expanded"),e.setAttribute("aria-expanded","false")};document.body.addEventListener("mousedown",(function(t){e.contains(t.target)||n.forEach((function(e){i(e)}))}));var l=function(e,t){var r=e.getAttribute("aria-".concat(t));r="true"===r?"false":"true",e.setAttribute("aria-".concat(t),r)};t&&(l(t,"expanded"),a&&function(){var e=document.querySelector(".js-megamenu__active-trail");if(e){var t=e.nextElementSibling;l(e,"expanded"),e.classList.add("is-expanded"),t.classList.add("is-expanded")}}(),t.addEventListener("click",(function(){l(t,"expanded"),r&&r.classList.toggle("is-active")}))),n.forEach((function(e){e.addEventListener("click",(function(t){var r=t.currentTarget,o=t.currentTarget.parentElement.querySelector(".js-megamenu__expanded-container");a||function(e){n.forEach((function(t){t!==e&&i(t)}))}(r),l(r,"expanded"),e.classList.toggle("is-expanded"),o.classList.toggle("is-expanded")}))}))}},638:()=>{function e(e,t){for(var r=0;r{var e=document.querySelectorAll("".concat("div.hb-table-pattern__header > div.hb-table-pattern__row > div",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > span",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > p")),t=document.querySelectorAll(".hb-table-row");if(t)for(var r=0;r{function e(e){var t=document.createElement("div");t.className="hb-table-wrap",e.parentNode.insertBefore(t,e),t.appendChild(e)}for(var t=document.querySelectorAll("table"),r=document.querySelectorAll(".hb-table-pattern"),n=0;n{document.querySelectorAll(".hb-timeline__collapsed").forEach((function(e){e.querySelectorAll(".hb-timeline-item").forEach((function(e){e.removeAttribute("open")})),e.querySelectorAll(".hb-timeline-item__summary").forEach((function(e){e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false")}))}));var e=document.querySelectorAll(".hb-timeline-item");e&&e.forEach((function(e){var t=e.querySelector(".hb-timeline-item__summary"),r=t.getAttribute("aria-expanded");t.addEventListener("click",(function(){"true"===r?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-pressed","false")):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-pressed","true")),r=t.getAttribute("aria-expanded")}))}));var t,r=new URLSearchParams(window.location.search),n=Object.fromEntries(r.entries());Object.keys(n).length&&(t=n.search.toLowerCase(),e.forEach((function(e){if(e.textContent.toLowerCase().includes(t)){var r=e.querySelector("summary");e.setAttribute("open",""),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-pressed","true")}})))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{"use strict";r(642),r(42),r(638),r(965);const e=function(e,t,r){e.setAttribute("aria-expanded",r),t.setAttribute("aria-hidden",!r)};var t,n,o=document.querySelector(".hb-main-nav__toggle"),a=document.querySelector(".hb-main-nav__menu-lv1");o&&(o.addEventListener("click",(function(){var t="true"===o.getAttribute("aria-expanded");e(o,a,!t)})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&!n&&(e(o,a,!0),n=!0),t<992&&n&&(e(o,a,!1),n=!1)})));const i=function(t,r,n){t.preventDefault();var o="true"===t.target.getAttribute("aria-expanded");e(r,n,!o)};var l=document.querySelectorAll(".hb-nested-toggler");if(l)for(var c=function(){var t=window.innerWidth,r=l[u],n=r.getAttribute("id"),o=document.querySelector('[aria-labelledby="'.concat(n,'"]')),a=r.parentNode;if(!o)return"continue";r.addEventListener("click",(function(e){return i(e,r,o)})),r.addEventListener("keydown",(function(t){if(32===t.which){t.preventDefault();var n="true"===t.target.getAttribute("aria-expanded");e(r,o,!n)}})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&e(r,o,!1)})),["focusin","click"].forEach((function(n){document.body.addEventListener(n,(function(n){t>=992&&!a.contains(n.target)&&e(r,o,!1)}),!1)}))},u=0;u0){var t=Array.prototype.map.call(e,(function(e){return e.scrollHeight}));return new Promise((function(r){var n=Math.max.apply(null,t),o=t.indexOf(n);Array.prototype.forEach.call(e,(function(e,t){t!==o&&(e.style.minHeight="".concat(n,"px"))})),r()}))}},w=function(e){e.forEach((function(e){e.style.minHeight="auto"}))};function E(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):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.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&w(n),e&&t.length>0&&w(t),e&&window.innerWidth>=576&&(t.length>0?_(t).then((function(){return _(n)})).catch((function(e){return console.error("issue loading equal height cards",e)})):n.length>0&&_(n))}))};setTimeout((function(){x()}),1e3),window.addEventListener("resize",(function(){setTimeout((function(){x()}),500)})),r(808),r(356),r(227),r(418),r(743)})()})(); \ No newline at end of file +(()=>{var e={418:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(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.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=1){var a=!1;o.forEach((function(e){if(e.classList.contains("hb-accordion_toggle-all")){var t=function(){var e=document.createElement("Button");return e.innerText="Expand All",e.classList.add("hb-link"),e.classList.add("hb-accordion-toggle-all"),e}();e.parentNode.insertBefore(t,e)}}));var i=e(document.querySelectorAll(".hb-accordion-toggle-all"));i.forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),a?(r(o,"closeAll"),n(i,"closeAll"),a=!1):(r(o,"openAll"),n(i,"openAll"),a=!0),e.scrollIntoView(!0)}))}))}var l,c=new URLSearchParams(window.location.search),u=Object.fromEntries(c.entries());Object.keys(u).length&&Object.prototype.hasOwnProperty.call(u,"search")&&(l=u.search.toLowerCase(),o.forEach((function(e){e.textContent.toLowerCase().includes(l)&&e.setAttribute("open","")})))},356:()=>{var e=document.querySelector(".hb-has-animation-enhancements"),t=document.querySelector(".hb-experimental"),r=[document.querySelectorAll(".hs-font-lead")],n=[document.querySelectorAll(".hb-gradient-hero"),document.querySelectorAll(".hb-gradient-hero__text"),document.querySelectorAll(".hb-gradient-hero__image-wrapper"),document.querySelectorAll(".field-hs-gradient-hero-image"),document.querySelectorAll(".hb-hero-overlay"),document.querySelectorAll(".hb-hero-overlay__text"),document.querySelectorAll(".hb-hero-overlay__image-wrapper"),document.querySelectorAll(".field-hs-hero-image"),document.querySelectorAll(".hs-font-splash")];t&&n.push(r);var o=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&e.target.classList.add("animate")}))}));e&&n.forEach((function(e){e&&e.forEach((function(e){o.observe(e)}))}))},642:()=>{function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(o(),window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(o,250)})))},808:()=>{var e=document.querySelectorAll(".field-media-oembed-video");if(e&&e.length>0)for(var t=0;t{var e=document.querySelector(".js-megamenu");if(e){var t=document.querySelector(".js-megamenu__mobile-btn"),r=e.querySelector(".js-megamenu__list--main"),n=e.querySelectorAll(".js-megamenu__toggle"),o=window.innerWidth,a=o<992;window.addEventListener("resize",(function(){o=window.innerWidth,a=o<=992}));var i=function(e){e.nextElementSibling.classList.remove("is-expanded"),e.classList.remove("is-expanded"),e.setAttribute("aria-expanded","false")};document.body.addEventListener("mousedown",(function(t){e.contains(t.target)||n.forEach((function(e){i(e)}))}));var l=function(e,t){var r=e.getAttribute("aria-".concat(t));r="true"===r?"false":"true",e.setAttribute("aria-".concat(t),r)};t&&(l(t,"expanded"),a&&function(){var e=document.querySelector(".js-megamenu__active-trail");if(e){var t=e.nextElementSibling;l(e,"expanded"),e.classList.add("is-expanded"),t.classList.add("is-expanded")}}(),t.addEventListener("click",(function(){l(t,"expanded"),r&&r.classList.toggle("is-active")}))),n.forEach((function(e){e.addEventListener("click",(function(t){var r=t.currentTarget,o=t.currentTarget.parentElement.querySelector(".js-megamenu__expanded-container");a||function(e){n.forEach((function(t){t!==e&&i(t)}))}(r),l(r,"expanded"),e.classList.toggle("is-expanded"),o.classList.toggle("is-expanded")}))}))}},638:()=>{function e(e,t){for(var r=0;r{var e=document.querySelectorAll("".concat("div.hb-table-pattern__header > div.hb-table-pattern__row > div",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > span",", ").concat("div.hb-table-pattern__header > div.hb-table-pattern__row > p")),t=document.querySelectorAll(".hb-table-row");if(t)for(var r=0;r{function e(e){var t=document.createElement("div");t.className="hb-table-wrap",e.parentNode.insertBefore(t,e),t.appendChild(e)}for(var t=document.querySelectorAll("table"),r=document.querySelectorAll(".hb-table-pattern"),n=0;n{document.querySelectorAll(".hb-timeline__collapsed").forEach((function(e){e.querySelectorAll(".hb-timeline-item").forEach((function(e){e.removeAttribute("open")})),e.querySelectorAll(".hb-timeline-item__summary").forEach((function(e){e.setAttribute("aria-expanded","false"),e.setAttribute("aria-pressed","false")}))}));var e=document.querySelectorAll(".hb-timeline-item");e&&e.forEach((function(e){var t=e.querySelector(".hb-timeline-item__summary"),r=t.getAttribute("aria-expanded");t.addEventListener("click",(function(){"true"===r?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-pressed","false")):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-pressed","true")),r=t.getAttribute("aria-expanded")}))}));var t,r=new URLSearchParams(window.location.search),n=Object.fromEntries(r.entries());Object.keys(n).length&&Object.prototype.hasOwnProperty.call(n,"search")&&(t=n.search.toLowerCase(),e.forEach((function(e){if(e.textContent.toLowerCase().includes(t)){var r=e.querySelector("summary");e.setAttribute("open",""),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-pressed","true")}})))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}(()=>{"use strict";r(642),r(42),r(638),r(965);const e=function(e,t,r){e.setAttribute("aria-expanded",r),t.setAttribute("aria-hidden",!r)};var t,n,o=document.querySelector(".hb-main-nav__toggle"),a=document.querySelector(".hb-main-nav__menu-lv1");o&&(o.addEventListener("click",(function(){var t="true"===o.getAttribute("aria-expanded");e(o,a,!t)})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&!n&&(e(o,a,!0),n=!0),t<992&&n&&(e(o,a,!1),n=!1)})));const i=function(t,r,n){t.preventDefault();var o="true"===t.target.getAttribute("aria-expanded");e(r,n,!o)};var l=document.querySelectorAll(".hb-nested-toggler");if(l)for(var c=function(){var t=window.innerWidth,r=l[u],n=r.getAttribute("id"),o=document.querySelector('[aria-labelledby="'.concat(n,'"]')),a=r.parentNode;if(!o)return"continue";r.addEventListener("click",(function(e){return i(e,r,o)})),r.addEventListener("keydown",(function(t){if(32===t.which){t.preventDefault();var n="true"===t.target.getAttribute("aria-expanded");e(r,o,!n)}})),window.addEventListener("resize",(function(){(t=window.innerWidth)>=992&&e(r,o,!1)})),["focusin","click"].forEach((function(n){document.body.addEventListener(n,(function(n){t>=992&&!a.contains(n.target)&&e(r,o,!1)}),!1)}))},u=0;u0){var t=Array.prototype.map.call(e,(function(e){return e.scrollHeight}));return new Promise((function(r){var n=Math.max.apply(null,t),o=t.indexOf(n);Array.prototype.forEach.call(e,(function(e,t){t!==o&&(e.style.minHeight="".concat(n,"px"))})),r()}))}},_=function(e){e.forEach((function(e){e.style.minHeight="auto"}))};function E(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q(e,t):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.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&_(n),e&&t.length>0&&_(t),e&&window.innerWidth>=576&&(t.length>0?w(t).then((function(){return w(n)})).catch((function(e){return console.error("issue loading equal height cards",e)})):n.length>0&&w(n))}))};setTimeout((function(){x()}),1e3),window.addEventListener("resize",(function(){setTimeout((function(){x()}),500)})),r(808),r(356),r(227),r(418),r(743)})()})(); \ No newline at end of file