PageSourceSearch

https://magalu.cloud/_astro/MegaMenuSegment.astro_astro_type_script_index_0_lang._X8ix9_d.js

js magalu.cloud collected 2026-10-03 22:13:30 UTC 989 bytes, 1 lines download raw bytes

1import{n as e}from"./url-utils.CI-WnWZX.js";document.querySelectorAll(`[data-segment-mega-menu]`).forEach(t=>{let n=t.querySelectorAll(`[data-segment-tab-button]`),r=t.querySelectorAll(`[data-segment-tab-panel]`),i=e=>{let t=e.getAttribute(`data-tab-index`);n.forEach(t=>{let n=t===e;t.setAttribute(`aria-selected`,String(n)),t.classList.toggle(`bg-primary-500`,n),t.classList.toggle(`text-white`,n),t.classList.toggle(`bg-white`,!n),t.classList.toggle(`text-primary-500`,!n),t.classList.toggle(`bg-grayscale-50`,!n),t.classList.toggle(`text-grayscale-700`,!n);let r=t.querySelector(`svg`);r&&(r.classList.toggle(`text-white!`,n),r.classList.toggle(`text-primary-500!`,!n),r.classList.toggle(`text-grayscale-500!`,!n))}),r.forEach(e=>{e.classList.toggle(`hidden`,e.getAttribute(`data-tab-index`)!==t)})};n.forEach(t=>{t.addEventListener(`click`,n=>{n.preventDefault(),n.stopPropagation();let r=t.getAttribute(`data-segment-tab-url`);if(r&&e(r)){window.location.assign(r);return}i(t)})})});

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.