PageSourceSearch

https://endorfy.com/cdn/shop/t/6/assets/at-text-truncate.js?v=183472676478185254021784116140

js endorfy.com collected 2026-10-04 15:34:35 UTC 3,336 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkEndorfy=self.webpackChunkEndorfy||[]).push([["text-truncate"],{
1"./src/js/text-truncate.js":function(e,t,s){s.r(t);var r=s("./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js"),a=s.n(r),l=s("./node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js"),o=s("./node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js"),n=s("./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js"),u=s("./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js"),c=s("./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js");function i(){try{var e=!Boolean.prototype.valueOf.call(a()(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}var d=function(e){function t(){var e,s,r,o;return(0,l.default)(this,t),s=this,r=t,r=(0,u.default)(r),(e=(0,n.default)(s,i()?a()(r,o||[],(0,u.default)(s).constructor):r.apply(s,o))).handleShowMore=e.handleShowMore.bind(e),e.handleShowLess=e.handleShowLess.bind(e),e}return(0,c.default)(t,e),(0,o.default)(t,[{key:"connectedCallback",value:function(){var e=this.querySelector(".at-text-toggle-group"),t=this.querySelector(".at-text-toggle--show-more"),s=this.querySelector(".at-text-toggle--show-less");if(e&&t&&s){var r=this.querySelector(".at-truncate__text--truncated"),a=this.querySelector(".at-truncate__text--full");r&&a&&(t.addEventListener("click",this.handleShowMore),s.addEventListener("click",this.handleShowLess))}}},{key:"disconnectedCallback",value:function(){var e=this.querySelector(".at-text-toggle--show-more"),t=this.querySelector(".at-text-toggle--show-less");e&&e.removeEventListener("click",this.handleShowMore),t&&t.removeEventListener("click",this.handleShowLess)}},{key:"handleShowMore",value:function(e){e.preventDefault(),this.expand()}},{key:"handleShowLess",value:function(e){e.preventDefault(),this.collapse()}},{key:"expand",value:function(){var e=this.querySelector(".at-text-toggle-group"),t=this.querySelector(".at-text-toggle--show-more"),s=this.querySelector(".at-text-toggle--show-less"),r=this.querySelector(".at-truncate__text--truncated"),a=this.querySelector(".at-truncate__text--full");e&&t&&s&&r&&a&&(r.style.display="none",a.style.display="block",t.style.display="none",s.style.display="",this.setAttribute("aria-expanded","true"),e.setAttribute("aria-expanded","true"),t.setAttribute("aria-expanded","false"),s.setAttribute("aria-expanded","true"))}},{key:"collapse",value:function(){var e=this.querySelector(".at-text-toggle-group"),t=this.querySelector(".at-text-toggle--show-more"),s=this.querySelector(".at-text-toggle--show-less"),r=this.querySelector(".at-truncate__text--truncated"),a=this.querySelector(".at-truncate__text--full");e&&t&&s&&r&&a&&(r.style.display="block",a.style.display="none",t.style.display="",s.style.display="none",this.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded","false"),s.setAttribute("aria-expanded","false"))}}])}((0,s("./node_modules/@babel/runtime-corejs3/helpers/esm/wrapNativeSuper.js").default)(HTMLElement));customElements.get("at-text-truncate")||customElements.define("at-text-truncate",d)}
1},function(e){e.O(0,["vendors"],function(){return t="./src/js/text-truncate.js",e(e.s=t);var t});e.O()}]);
2//# sourceMappingURL=at-text-truncate.js.map

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.