1import { 2 DomSanitizer 3} from "./chunk-YMUBKLGP.js"; 4import { 5 Pipe, 6 setClassMetadata, 7 ɵɵdefinePipe, 8 ɵɵdirectiveInject 9} from "./chunk-52VUJERO.js"; 10 11// src/app/shared/pipes/special-glyphs.pipe.ts 12var SpecialGlyphsPipe = class _SpecialGlyphsPipe { 13 sanitizer; 14 constructor(sanitizer) { 15 this.sanitizer = sanitizer; 16 } 17 transform(value) { 18 if (!value) 19 return ""; 20 let result = value; 21 result = result.replace(/\+(?=\d)/g, '<span class="ata-dingbats-a">+</span>'); 22 const map = /* @__PURE__ */ new Map([ 23 // Wingdings Font-family characters 24 ["\uF049", '<span class="wingding">I</span>'], 25 // ï â (U+F049 â Hand) 26 // Helvetica Font-family characters 27 ["\uF054", '<span class="helvetica">\u2BBD</span>'], 28 // ⮽ â (U+2612 â Ballot Box with X) 29 ["\uF048", '<span class="helvetica">\u2605</span>'], 30 // â â (U+2605 â Black Star) 31 ["\uF04A", '<span class="helvetica">\u272A</span>'], 32 // ⪠â (U+272A â Circled White Star) 33 ["\uF075", '<span class="helvetica">\u2BC8</span>'] 34 // ⯠â (U+2BC8 â Rightward Arrow) 35 ]); 36 map.forEach((replacement, targetChar) => { 37 const regex = new RegExp(targetChar, "g"); 38 result = result.replace(regex, replacement); 39 }); 40 return this.sanitizer.bypassSecurityTrustHtml(result); 41 } 42 static \u0275fac = function SpecialGlyphsPipe_Factory(__ngFactoryType__) { 43 return new (__ngFactoryType__ || _SpecialGlyphsPipe)(\u0275\u0275directiveInject(DomSanitizer, 16)); 44 }; 45 static \u0275pipe = /* @__PURE__ */ \u0275\u0275definePipe({ name: "SpecialGlyphs", type: _SpecialGlyphsPipe, pure: true }); 46}; 47(() => { 48 (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(SpecialGlyphsPipe, [{ 49 type: Pipe, 50 args: [{ 51 name: "SpecialGlyphs", 52 standalone: true 53 }] 54 }], () => [{ type: DomSanitizer }], null); 55})(); 56 57export { 58 SpecialGlyphsPipe 59}; 60//# sourceMappingURL=chunk-7W3ZHBJ7.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.