{ "version": 3, "sources": ["libs/galaxy/ai-icon/src/ai-icon-svg-string.ts", "libs/galaxy/ai-icon/src/ai-icon.service.ts"], "sourcesContent": ["export const GalaxyAiIconSvg = ``;\n\nexport const GalaxyAiIconMonochrome = ``;\n\nexport const GalaxyAiIconWithBackgroundSvg = ``;\n", "import { inject, Injectable } from '@angular/core';\nimport { MatIconRegistry } from '@angular/material/icon';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { GalaxyAiIconMonochrome, GalaxyAiIconSvg, GalaxyAiIconWithBackgroundSvg } from './ai-icon-svg-string';\nexport { GalaxyAiIconSvg, GalaxyAiIconWithBackgroundSvg };\n\n@Injectable({\n providedIn: 'root',\n})\nexport class GalaxyAiIconService {\n private readonly iconRegistry = inject(MatIconRegistry);\n private readonly sanitizer = inject(DomSanitizer);\n\n constructor() {\n // because this service is injected as root, it will only be instantiated once\n // which means we wont need to worry about adding the same icon multiple times\n this.iconRegistry.addSvgIconLiteral('galaxy-ai-icon', this.sanitizer.bypassSecurityTrustHtml(GalaxyAiIconSvg));\n\n this.iconRegistry.addSvgIconLiteral(\n 'galaxy-ai-icon-monochrome',\n this.sanitizer.bypassSecurityTrustHtml(GalaxyAiIconMonochrome),\n );\n\n this.iconRegistry.addSvgIconLiteral(\n 'galaxy-ai-icon-with-background',\n this.sanitizer.bypassSecurityTrustHtml(GalaxyAiIconWithBackgroundSvg),\n );\n }\n\n dummyInit() {\n // If the service when injected as `private` and is marked as unused,\n // you can call this method when you inject the service into your\n // component so it will be \"used\" and not marked as unused.\n }\n}\n"], "mappings": "iIAAO,IAAMA,EAAkB,o7CAElBC,EAAyB,67CAEzBC,EAAgC,uxDCK7C,IAAaC,GAAmB,IAAA,CAA1B,IAAOA,EAAP,MAAOA,CAAmB,CAI9BC,aAAA,CAHiB,KAAAC,aAAeC,EAAOC,CAAe,EACrC,KAAAC,UAAYF,EAAOG,CAAY,EAK9C,KAAKJ,aAAaK,kBAAkB,iBAAkB,KAAKF,UAAUG,wBAAwBC,CAAe,CAAC,EAE7G,KAAKP,aAAaK,kBAChB,4BACA,KAAKF,UAAUG,wBAAwBE,CAAsB,CAAC,EAGhE,KAAKR,aAAaK,kBAChB,iCACA,KAAKF,UAAUG,wBAAwBG,CAA6B,CAAC,CAEzE,CAEAC,WAAS,CAGP,yCAvBSZ,EAAmB,wBAAnBA,EAAmBa,QAAnBb,EAAmBc,UAAAC,WAFlB,MAAM,CAAA,EAEd,IAAOf,EAAPgB,SAAOhB,CAAmB,GAAA", "names": ["GalaxyAiIconSvg", "GalaxyAiIconMonochrome", "GalaxyAiIconWithBackgroundSvg", "GalaxyAiIconService", "constructor", "iconRegistry", "inject", "MatIconRegistry", "sanitizer", "DomSanitizer", "addSvgIconLiteral", "bypassSecurityTrustHtml", "GalaxyAiIconSvg", "GalaxyAiIconMonochrome", "GalaxyAiIconWithBackgroundSvg", "dummyInit", "factory", "\u0275fac", "providedIn", "_GalaxyAiIconService"] }