PageSourceSearch

https://www.archerandolive.com/cdn/shop/t/287/assets/product-title-truncation.js

js archerandolive.com collected 2026-09-27 21:37:07 UTC 1,426 bytes, 1 lines download raw bytes

1var a=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||a("Cannot "+e);var c=(i,s,e)=>s.has(i)?a("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e);var n=(i,s,e)=>(w(i,s,"access private method"),e);import{C as g}from"./component.js";import"./utilities.js";var t,d,o,l;class f extends g{constructor(){super();c(this,t)}connectedCallback(){super.connectedCallback(),n(this,t,d).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect(),window.removeEventListener("resize",n(this,t,l))}}t=new WeakSet,d=function(){"ResizeObserver"in window?(this.resizeObserver=new ResizeObserver(()=>{n(this,t,o).call(this)}),this.resizeObserver.observe(this),n(this,t,o).call(this)):(window.addEventListener("resize",n(this,t,l).bind(this)),n(this,t,o).call(this))},o=function(){const e=this.refs.text||this.querySelector(".title-text")||this;if(!e.textContent)return;const h=this.clientHeight,r=window.getComputedStyle(this),p=parseFloat(r.lineHeight),b=parseFloat(r.paddingTop),m=parseFloat(r.paddingBottom),u=h-b-m,v=Math.max(1,Math.floor(u/p));e.style.display="-webkit-box",e.style.webkitBoxOrient="vertical",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.webkitLineClamp=String(v)},l=function(){n(this,t,o).call(this)};customElements.get("product-title")||customElements.define("product-title",f);export{f 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.