1import { 2 Pipe, 3 setClassMetadata, 4 ɵɵdefinePipe 5} from "./chunk-ZGC4HH7K.js"; 6 7// src/app/_pipes/truncate/truncate.pipe.ts 8var TruncatePipe = class _TruncatePipe { 9 transform(value, limit = 25) { 10 if (!value) 11 return ""; 12 const words = value.split(" "); 13 if (words.length > 0) { 14 words[0] = words[0].charAt(0).toUpperCase() + words[0].slice(1); 15 } 16 const transformedValue = words.join(" "); 17 return transformedValue.length > limit ? transformedValue.substring(0, limit) + "..." : transformedValue; 18 } 19 static { 20 this.\u0275fac = function TruncatePipe_Factory(__ngFactoryType__) { 21 return new (__ngFactoryType__ || _TruncatePipe)(); 22 }; 23 } 24 static { 25 this.\u0275pipe = /* @__PURE__ */ \u0275\u0275definePipe({ name: "truncate", type: _TruncatePipe, pure: true }); 26 } 27}; 28(() => { 29 (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(TruncatePipe, [{ 30 type: Pipe, 31 args: [{ 32 name: "truncate", 33 standalone: true 34 }] 35 }], null, null); 36})(); 37 38export { 39 TruncatePipe 40}; 41/**i18n:55a58011b6fcf12b70aba021cbe233ce2fe179902ce3502a5c6547ccaba0ed7f*/ 42//# sourceMappingURL=chunk-WIW33OG3.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.