1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1454],{4183:function(e,t,i){i.r(t),i.d(t,{STATES:function(){return u},default:function(){return h}});var s=i(5890),r=i(8581),n=i(1351),o=i(4132),l=i(6295),a=i(5398);function c(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const u={VISIBLE:"is-visible",ACTIVE:"is-active"};class h extends s.A{constructor(e){super(e),c(this,"handleSwupClickLink",(()=>{this.close()})),c(this,"handlePopupNavToggle",(()=>{this.toggle()})),c(this,"handleClick",(e=>{if(!this.ref.content.contains(e.target))return e.preventDefault(),void this.close();const t=e.target.closest("[data-group-toggler]");if(t){const e=t.dataset.groupToggler;if(e)return void this.selectGroup(e,t)}e.target.closest("a")&&this.close()})),this.ref={content:null,groupHeaderTemplate:null,groupPlaceholder:null},this.groupHeaderTemplate=this.ref.groupHeaderTemplate.innerText.trim(),this.selectDefaultTimer=null,this.currentGroupToggler=null}prepare(){this.element.addEventListener("click",this.handleClick),this.element.addEventListener("transitionend",(e=>{this.element!==e.target||this.is(u.ACTIVE)||this.element.classList.remove(u.VISIBLE)})),n.A.on(o.q.POPUPNAV_TOGGLE,this.handlePopupNavToggle),n.A.on(o.q.SWUP_CLICK_LINK,this.handleSwupClickLink)}destroy(){this.close(),n.A.off(o.q.POPUPNAV_TOGGLE,this.handlePopupNavToggle),n.A.off(o.q.SWUP_CLICK_LINK,this.handleSwupClickLink)}selectGroup(e,t=null){if(t===this.currentGroupToggler)return;const i=e=>t=>{e===t.target&&(e.removeEventListener("transitionend",i(e)),e.classList.contains("is-active")||e.classList.remove("is-visible"))},r=s=>{s.removeEventListener("transitionend",i(s)),this.createGroupHeader(e,t),s.classList.add("is-visible"),s.offsetWidth,s.classList.add("is-active"),this.ref.groupPlaceholder.style.height=`${s.offsetHeight}px`};if((0,l.YG)("[data-group]",this.element).forEach((t=>{t.dataset.group===e?r(t):t.classList.contains("is-active")&&(e=>{e.classList.remove("is-active"),e.addEventListener("transitionend",i(e))})(t)})),t){(0,l.YG)("[data-group-toggler]",this.element).forEach((e=>{e.classList.remove("is-active")})),t.classList.add("is-active"),this.currentGroupToggler=t}if(!this.isMobile){const e=s.A.getFromElement(this.ref.line);null==e||e.updateIndicator()}}clear(){(0,l.YG)("[data-group],[data-group-toggler]",this.element).forEach((e=>{e.classList.remove("is-visible"),e.classList.remove("is-active")})),this.currentGroupToggler=null}createGroupHeader(e,t){const i=(0,l.P)(`[data-group='${e}']`,this.element);if(!i)return;const s=(0,l.P)("[data-group-header]",i);if(!s)return;let r="";if(t){const e=t.innerText;r=(0,a.V2)(this.groupHeaderTemplate,{name:e})}s.innerHTML=r}toggle(){this.is(u.ACTIVE)?this.close():this.open()}close(){this.is(u.ACTIVE)&&(this.element.classList.remove(u.ACTIVE),document.removeEventListener("keydown",this.handleKeydown),(0,r.Vn)(),n.A.emit(o.q.POPUPNAV_CLOSED),this.clear())}open(){this.clear(),(0,r.y5)(),this.element.classList.add(u.VISIBLE),this.element.offsetWidth,this.element.classList.add(u.ACTIVE),document.addEventListener("keydown",this.handleKeydown),n.A.emit(o.q.POPUPNAV_OPENED),this.selectGroup("none")}}},5398:function(e,t,i){i.d(t,{V2:function(){return s}});function s(e,t,i){return String(e).replace(i||/\\?\{([^{}]+)\}/g,(function(e,i){return"\\"==e.charAt(0)?e.slice(1):void 0===t[i]?e:null!=t[i]?t[i]:""}))}}}]); 2//# sourceMappingURL=PopupNav.195a68eb2ee59bf96a4a.min.js.map
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.