PageSourceSearch

https://www.coor.com/dist/client/assets/mega-menu.component-DH_Km2e3.js

js coor.com collected 2026-10-02 16:28:18 UTC 2,128 bytes, 4 lines download raw bytes

1/* empty css                  */import{h as b,a as f,A as g}from"./entry-client-D4F_DRpu.js";const h={vertical:{next:"ArrowDown",previous:"ArrowUp"},horizontal:{next:"ArrowRight",previous:"ArrowLeft"}};function v(n,l={}){if(n.__isArrowNavigationEnabled)return()=>{};n.__isArrowNavigationEnabled=!0;const i=Array.from(n.querySelectorAll(`
2    a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]):not([type="hidden"]),
3    select:not([disabled]), [tabindex]:not([tabindex="-1"])
4  `)),{loop:o=!0,direction:a="vertical"}=l,s=h[a];if(i.length===0)return()=>{};const d=t=>{const r=i.indexOf(document.activeElement);let e=null;t.key===s.next?(e=r+1,e>=i.length&&(e=o?0:i.length-1)):t.key===s.previous&&(e=r-1,e<0&&(e=o?i.length-1:0)),e!==null&&i[e]&&(t.preventDefault(),i[e].focus())};return n.addEventListener("keydown",d),()=>{n.__isArrowNavigationEnabled=!1,n.removeEventListener("keydown",d)}}const p=n=>{if(n.__isMegaMenuInitialized)return;n.__isMegaMenuInitialized=!0;const l=new b,w="data-mega-menu-children",i=Array.from(n.querySelectorAll(`[${f}]`)),o=new Map(i.reduce((t,r)=>{const e=r.getAttribute(f);if(!e)return t;const u=n.querySelector(`#${e}`);return u&&t.push([e,u]),t},[])),a=n.closest("#menu"),s=()=>{if(!a)return;const t=Array.from(o.values()).find(e=>e.getAttribute(g)==="false"),r=window.getComputedStyle(t??a).backgroundColor;a.style.setProperty("--menu-cta-background",r)};if(a){const t=new MutationObserver(()=>requestAnimationFrame(s));o.forEach(r=>{t.observe(r,{attributes:!0,attributeFilter:[g]})}),requestAnimationFrame(s)}document.addEventListener("click",t=>{var m;const r=t.target;if(!r||o.has(r.id))return;const e=(m=r.closest(`[${w}]`))==null?void 0:m.id;if(e&&o.has(e))return;const u=r.closest("[data-arrow-navigation]");let A=()=>{};u?A=v(u):A(),o.forEach(c=>{c.getAttribute(g)==="true"||r.getAttribute(f)===c.id||l.AriaHidden(c,!0)})});let d=window.innerWidth;window.addEventListener("resize",()=>{const t=d>1024?"(min-width: 1024px)":"(max-width: 1023px)";window.matchMedia(t).matches||(d=window.innerWidth,o.forEach(e=>{l.AriaHidden(e,!0)}))})};export{p as default};

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.