PageSourceSearch

https://www.nutrient.io/_astro/LinkButton.astro_astro_type_script_index_0_lang.BHoFg1U6.js

js nutrient.io collected 2026-09-24 21:50:07 UTC 1,171 bytes, 1 lines download raw bytes

1import{t as c}from"./modal.BmHjR5TO.js";document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".link-button").forEach(e=>{const o=e.getAttribute("data-url"),r=e.getAttribute("data-modal-trigger"),d=e.querySelector(".link-button-text")?.textContent||"Unknown",a=o!==null&&o!==""&&o!=="undefined",s=r!==null&&r!==""&&r!=="undefined";!a&&!s&&console.warn(`⚠️ LinkButton "${d}": Must provide either "url" or "modalTrigger" prop`,e),a&&s&&console.warn(`⚠️ LinkButton "${d}": Cannot provide both "url" and "modalTrigger" props. Only one should be used.`,e),e.addEventListener("mouseenter",()=>{const t=e.querySelector(".link-button-text");t&&(t.scrollWidth>t.clientWidth?e.setAttribute("title",t.textContent?.trim()??""):e.removeAttribute("title"))}),e.addEventListener("click",t=>{const l=t.currentTarget.dataset.modalTrigger;if(l&&(t.preventDefault(),!c(l))){const n=document.getElementById(l);if(n){n.classList.remove("opacity-0","pointer-events-none"),n.classList.add("opacity-100");const i=n.querySelector("[data-modal-content]");i&&(i.classList.remove("scale-95"),i.classList.add("scale-100")),document.body.style.overflow="hidden"}}})})});

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.