1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[358],{358:function(e,t,n){n.r(t);const o="open",r="focused",s="--drop-height",c={content:"drop-down__content",list:"drop-down__list",arrow:"drop-down__arrow",button:"drop-down__button"},a={links:"drop-down__link"},i=[],l=(e,t)=>e.classList.add(t),u=(e,t)=>e.classList.remove(t),d=(e,t,n)=>e.style.setProperty(t,n),f=(e,t,n)=>e.addEventListener(t,n),h=e=>{const{target:t}=e;i.forEach((([e,n])=>{e.contains(t)||e===t||n()}))},p=e=>{const t=e?"addEventListener":"removeEventListener";["click","focusin"].forEach((e=>document[t](e,h)))},w=(e,t,n)=>{t.forEach((e=>e.setAttribute("tabindex",n?"0":"-1"))),e.setAttribute("aria-expanded",n.toString())},k=(e,t,n)=>{const o=n?"querySelectorAll":"querySelector",r={...e};Object.keys(t).forEach((e=>{r[e]=r.root[o](`.${t[e]}`)})),Object.assign(e,r)};let v,_=!1,b=0;const g=(e,t,n,r)=>{_&&(_=!1,d(e,s,"0px"),f(e,"transitionend",v),w(n,r,_),u(t,o),u(e,o),(e=>{if(!i.length)return;const t=i.findIndex((([t])=>t===e));-1!==t&&(i.splice(t,1),i.length||p(!1))})(e),b=0)},m=(e,t,n,r,c,a)=>{if(_)return;_=!0,l(t,o),l(e,o);const u=n.scrollHeight+20;d(e,s,`${u}px`),w(c,a,_),((e,t)=>{h({target:e}),i.length||p(!0),i.push([e,t])})(e,(()=>g(e,t,c,a)))},y=(e,t,n,o,r,s)=>{_?g(e,t,r,s):m(e,t,n,0,r,s)},E=(e,t,n,o,s,c)=>{f(t,"click",(()=>y(e,n,o,0,t,c))),f(e,"mouseenter",(()=>m(e,n,o,0,t,c))),f(e,"mouseleave",(()=>g(e,n,t,c))),f(t,"touchend",(r=>{r.preventDefault(),y(e,n,o,0,t,c)})),f(t,"focus",(()=>l(e,r))),f(t,"blur",(()=>u(e,r))),f(document,"keydown",(o=>((e,t,n,o,r)=>{if(_)switch(e.key){case"ArrowDown":e.preventDefault(),b=(b+1)%r.length,r[b].focus();break;case"ArrowUp":e.preventDefault(),b=(b-1+r.length)%r.length,r[b].focus();break;default:g(t,n,o,r)}})(o,e,n,t,c)))};t.default={init(e){e.forEach((e=>{const t={root:e};((e,t)=>{k(e,t,!1)})(t,c),((e,t)=>{k(e,t,!0)})(t,a),v=()=>((e,t)=>{var n,r;u(t,o),u(e,o),n="transitionend",r=v,e.removeEventListener(n,r)})(e,t.arrow),E(e,t.button,t.arrow,t.content,e.querySelector("li a"),t.links)}))}}}}]);
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.