1(()=>{"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function i(e,t,i){return(t=o(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}const n=function(){function e(t){var o=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"footer",null),i(this,"footerToggles",[]),i(this,"isMobileMediaQueryList",null),t instanceof HTMLElement?this.footer=t:"string"==typeof t&&(this.footer=document.querySelector(t)),!this.footer)throw new Error("[HSGFooter] footer element required");this.footerToggles=this.footer.querySelectorAll(e.TOGGLE_SELECTOR),this.footerToggles.forEach(function(e){e.addEventListener("click",o.handleToggleClick.bind(o))});var n=document.getElementById("back-link");n&&n.addEventListener("click",this.handleBackButtonClick.bind(this)),this.initViewportChangeListener()}return o=e,n=[{key:"activeToggle",get:function(){return this.footer.querySelector(e.ACTIVE_TOGGLE_SELECTOR)}},{key:"isMobile",get:function(){return this.isMobileMediaQueryList&&this.isMobileMediaQueryList.matches}},{key:"disableToggle",value:function(t){this.isMobile||t.setAttribute("aria-disabled","true"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-expanded","true");var i=t.closest(e.HEADING_SELECTOR);i&&!this.isMobile&&i.removeAttribute("role")}},{key:"disableToggles",value:function(){var e=this;this.footerToggles.forEach(function(t){e.disableToggle(t)})}},{key:"enableToggles",value:function(){this.footerToggles.forEach(e.enableToggle)}},{key:"openSection",value:function(t){this.footer.classList.add(e.ACTIVE_CLASS),this.disableToggle(t);var i=t.closest(e.SECTION_SELECTOR);i&&i.classList.add(e.ACTIVE_CLASS)}},{key:"closeSection",value:function(t,i){this.footer.classList.remove(e.ACTIVE_CLASS),e.enableToggle(t);var o=t.closest(e.SECTION_SELECTOR);o&&o.classList.remove(e.ACTIVE_CLASS);var n=i&&0===i.detail;this.footer.contains(document.activeElement)&&n&&t.focus()}},{key:"toggleSection",value:function(e,t){"true"===e.getAttribute("aria-expanded")?this.closeSection(e,t):this.openSection(e)}},{key:"handleToggleClick",value:function(e){var t=e.currentTarget,i=0===e.detail;"true"===t.getAttribute("aria-expanded")&&!i||this.toggleSection(t,e)}},{key:"handleBackButtonClick",value:function(e){this.activeToggle&&this.closeSection(this.activeToggle,e)}},{key:"initViewportChangeListener",value:function(){this.isMobileMediaQueryList=window.matchMedia(e.IS_MOBILE_MEDIA_QUERY),this.isMobileMediaQueryList.addEventListener("change",this.handleViewportChange.bind(this)),this.handleViewportChange(this.isMobileMediaQueryList)}},{key:"handleViewportChange",value:function(e){e.matches?this.enableToggles():(this.activeToggle&&this.closeSection(this.activeToggle),this.disableToggles())}}],r=[{key:"ACTIVE_CLASS",get:function(){return"active"}},{key:"TOGGLE_SELECTOR",get:function(){return".global-footer__nav-toggle"}},{key:"HEADING_SELECTOR",get:function(){return".global-footer__nav-heading"}},{key:"SECTION_SELECTOR",get:function(){return".global-footer__nav-column"}},{key:"ACTIVE_TOGGLE_SELECTOR",get:function(){return"".concat(e.TOGGLE_SELECTOR,'[aria-expanded="true"]')}},{key:"IS_MOBILE_MEDIA_QUERY",get:function(){return"(max-width: 928px)"}},{key:"enableToggle",value:function(t){t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"),t.setAttribute("aria-expanded","false");var i=t.closest(e.HEADING_SELECTOR);i&&i.setAttribute("role","presentation")}}],n&&t(o.prototype,n),r&&t(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,n,r}();window.location.search.toLowerCase().indexOf("highcontrast=true")>-1&&document.body.classList.add("high-contrast"),new n(".global-footer")})(); 2//# sourceURL=https://53.fs1.hubspotusercontent-na1.net/hubfs/53/hub_generated/template_assets/1/207928094060/1790170494828/template_footer.js
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.