PageSourceSearch

https://www.pamelasproducts.com/cdn/shop/t/38/assets/truncate-text.js?v=110224493870955327341784156933

js pamelasproducts.com collected 2026-10-02 16:50:57 UTC 2,044 bytes, 2 lines download raw bytes

1window.Eurus.loadedScript.has("truncate-text.js")||(window.Eurus.loadedScript.add("truncate-text.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xTruncateText",()=>({truncateEl:"",truncateInnerEl:"",truncated:!1,truncatable:!1,label:"",expanded:!1,load(truncateEl){const truncateRect=truncateEl.getBoundingClientRect();truncateEl.style.setProperty("--truncate-height",`${truncateRect.height}px`)},setTruncate(element){element.offsetHeight<element.scrollHeight||element.offsetWidth<element.scrollWidth?(this.truncated=!0,this.truncatable=!0,this.expanded=!1):(this.truncated=!1,this.truncatable=!1,this.expanded=!0)},open(el,newLabel){const truncateEl=el.closest(".truncate-container").querySelector(".truncate-text");if(this.expanded=!0,this.label=newLabel,truncateEl.classList.contains("truncate-expanded"))this.truncated=!0;else{const truncateInnerEl=truncateEl.querySelector(".truncate-inner");window.requestAnimationFrame(()=>{const truncateInnerRect=truncateInnerEl.getBoundingClientRect();truncateEl.style.setProperty("--truncate-height-expanded",`${truncateInnerRect.height}px`),truncateEl.classList.add("truncate-expanded")}),this.truncated=!1}},close(el,newLabel,isQuickview=!1){this.label=newLabel;const truncateEl=el.closest(".truncate-container").querySelector(".truncate-text"),isInViewport=()=>{const rect=truncateEl.getBoundingClientRect();return rect.top>=0&&rect.left>=0&&rect.bottom<=(window.xViewport.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.xViewport.innerWidth||document.documentElement.clientWidth)};if(this.truncated=!0,!isInViewport()&&!isQuickview){const scrollPosition=truncateEl.getBoundingClientRect().top+window.scrollY-500;window.scrollTo({top:scrollPosition,behavior:"smooth"}),truncateEl.style.transition="none",setTimeout(()=>{truncateEl.style.transition=""},1e3)}truncateEl.classList.remove("truncate-expanded"),this.expanded=!1}}))})}));
2//# sourceMappingURL=/cdn/shop/t/38/assets/truncate-text.js.map?v=110224493870955327341784156933

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.