{ "version": 3, "sources": ["src/app/features/seo/json-ld/json-ld.component.ts"], "sourcesContent": ["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Component({\n selector: 'app-json-ld',\n templateUrl: './json-ld.component.html',\n\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class JsonLdComponent implements OnChanges {\n @Input() json: any;\n @HostBinding('innerHTML') jsonLD: SafeHtml;\n constructor(private sanitizer: DomSanitizer) {}\n\n ngOnChanges(changes: SimpleChanges) {\n this.jsonLD = this.getSafeHTML(changes.json.currentValue);\n }\n\n getSafeHTML(value: {}) {\n const json = value\n ? JSON.stringify(value, null, 2).replace(\n /<\\/script>/g,\n '<\\\\/script>'\n )\n : '';\n const html = ``;\n return this.sanitizer.bypassSecurityTrustHtml(html);\n }\n}\n"], "mappings": "yHAiBA,IAAaA,GAAe,IAAA,CAAtB,MAAOA,CAAe,CAGxBC,YAAoBC,EAAuB,CAAvB,KAAAA,UAAAA,CAA0B,CAE9CC,YAAYC,EAAsB,CAC9B,KAAKC,OAAS,KAAKC,YAAYF,EAAQG,KAAKC,YAAY,CAC5D,CAEAF,YAAYG,EAAS,CAOjB,IAAMC,EAAO,sCANAD,EACPE,KAAKC,UAAUH,EAAO,KAAM,CAAC,EAAEI,QAC3B,cACA,aAAa,EAEjB,EACiD,aACvD,OAAO,KAAKX,UAAUY,wBAAwBJ,CAAI,CACtD,iDAlBSV,GAAee,EAAAC,CAAA,CAAA,CAAA,CAAA,+BAAfhB,EAAeiB,UAAA,CAAA,CAAA,aAAA,CAAA,EAAAC,SAAA,EAAAC,aAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,GAAfE,EAAA,YAAAD,EAAAhB,OAAAkB,CAAA,yIAAAvB,CAAe,GAAA", "names": ["JsonLdComponent", "constructor", "sanitizer", "ngOnChanges", "changes", "jsonLD", "getSafeHTML", "json", "currentValue", "value", "html", "JSON", "stringify", "replace", "bypassSecurityTrustHtml", "\u0275\u0275directiveInject", "DomSanitizer", "selectors", "hostVars", "hostBindings", "rf", "ctx", "\u0275\u0275hostProperty", "\u0275\u0275sanitizeHtml"] }