{ "version": 3, "sources": ["apps/business-center-client/src/app/core/image.service.ts"], "sourcesContent": ["import { Injectable } from '@angular/core';\nimport { BrandingV2Service } from '@galaxy/partner';\nimport { map, take } from 'rxjs/operators';\nimport { Observable } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class ImageService {\n constructor(private brandingService: BrandingV2Service) {}\n\n public getImageSrc(imageName: string): string {\n if (window.location.hostname === 'localhost') {\n return `/assets/${imageName}`;\n }\n return `https://vstatic-prod.apigateway.co/business-center-client.9223372035143138814.prod/assets/${imageName}`;\n }\n\n public getPartnerMarketLogoImage(partnerId: string, marketId: string): Observable {\n return this.brandingService.getBranding(partnerId, marketId).pipe(\n take(1),\n map((branding) => branding?.logoUrl),\n );\n }\n}\n"], "mappings": "sKAAA,IAMaA,EANbC,EAAAC,EAAA,KAEAC,YAIaH,GAAY,IAAA,CAAnB,IAAOA,EAAP,MAAOA,CAAY,CACvBI,YAAoBC,EAAkC,CAAlC,KAAAA,gBAAAA,CAAqC,CAElDC,YAAYC,EAAiB,CAClC,OAAIC,OAAOC,SAASC,WAAa,YACxB,WAAWH,CAAS,GAEtB,oEAAoEA,CAAS,EACtF,CAEOI,0BAA0BC,EAAmBC,EAAgB,CAClE,OAAO,KAAKR,gBAAgBS,YAAYF,EAAWC,CAAQ,EAAEE,KAC3DC,EAAK,CAAC,EACNC,EAAKC,GAAaA,GAAUC,OAAO,CAAC,CAExC,yCAfWnB,GAAYoB,EAAAC,CAAA,CAAA,CAAA,wBAAZrB,EAAYsB,QAAZtB,EAAYuB,UAAAC,WADC,MAAM,CAAA,EAC1B,IAAOxB,EAAPyB,SAAOzB,CAAY,GAAA", "names": ["ImageService", "init_image_service", "__esmMin", "init_operators", "constructor", "brandingService", "getImageSrc", "imageName", "window", "location", "hostname", "getPartnerMarketLogoImage", "partnerId", "marketId", "getBranding", "pipe", "take", "map", "branding", "logoUrl", "\u0275\u0275inject", "BrandingV2Service", "factory", "\u0275fac", "providedIn", "_ImageService"] }