{"version":3,"file":"chunk-eanr5jen.js","sources":["packages/promo/app/src/offers/offers-history/free-spins-history/culture-date.pipe.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\nimport { IntlService } from '@frontend/vanilla/core';\n\nimport { PromoFreeSpinHistoryConfiguration } from '../../../client-configs/freespin-history-config';\nimport { PromoOffersHistoryConfiguration } from '../../../client-configs/offers-history-v2-config';\n\n@Pipe({\n name: 'cultureDate',\n standalone: true,\n})\nexport class CultureDatePipe implements PipeTransform {\n readonly DELIMITER = '-';\n constructor(\n private intlService: IntlService,\n private historyConfiguration: PromoFreeSpinHistoryConfiguration,\n private offersHistoryConfiguration: PromoOffersHistoryConfiguration,\n ) {}\n\n transform(date: any): any {\n if ((this.offersHistoryConfiguration.enableLocalDateTimeFormat || this.historyConfiguration.enableLocalDateTimeFormat) && date) {\n const cultureDate = this.intlService.formatDate(date, 'mediumDate');\n const shortTime = this.intlService.formatDate(date, 'shortTime');\n date = cultureDate + ' ' + shortTime;\n }\n return date;\n }\n}\n"],"names":["CultureDatePipe","constructor","intlService","historyConfiguration","offersHistoryConfiguration","DELIMITER","transform","date","enableLocalDateTimeFormat","cultureDate","formatDate","shortTime","ɵɵdirectiveInject","IntlService","PromoFreeSpinHistoryConfiguration","PromoOffersHistoryConfiguration","pure","standalone","_CultureDatePipe"],"mappings":"6GAWA,IAAaA,GAAe,IAAA,CAAtB,IAAOA,CAAP,CAAA,MAAOA,CAAe,CAExBC,WAAAA,CACYC,CACAC,CAAAA,CAAAA,CACAC,EAA2D,CAF3D,IAAA,CAAAF,YAAAA,CACA,CAAA,IAAA,CAAAC,qBAAAA,CACA,CAAA,IAAA,CAAAC,0BAAAA,CAAAA,CAAAA,CAJH,KAAAC,SAAY,CAAA,IAKlB,CAEHC,SAAUC,CAAAA,CAAAA,CAAS,CACf,GAAK,CAAA,IAAA,CAAKH,2BAA2BI,yBAA6B,EAAA,IAAA,CAAKL,qBAAqBK,yBAA8BD,GAAAA,CAAAA,CAAM,CAC5H,IAAME,CAAAA,CAAc,KAAKP,WAAYQ,CAAAA,UAAAA,CAAWH,CAAM,CAAA,YAAY,EAC5DI,CAAY,CAAA,IAAA,CAAKT,YAAYQ,UAAWH,CAAAA,CAAAA,CAAM,WAAW,CAC/DA,CAAAA,CAAAA,CAAOE,EAAc,GAAME,CAAAA,EAC/B,CACA,OAAOJ,CACX,yCAfSP,CAAeY,EAAAA,GAAAA,CAAAC,GAAA,EAAA,CAAA,CAAAD,GAAAE,CAAAA,CAAAA,CAAA,EAAA,CAAAF,CAAAA,GAAAA,CAAAG,EAAA,EAAA,CAAA,CAAA,CAAff,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,EAAAA,CAAAA,CAAAA,IAAAA,CAAAA,aAAAA,CAAAA,IAAAA,CAAAA,CAAAA,CAAegB,KAAA,CAAAC,CAAAA,CAAAA,UAAAA,CAAA,EAAA,CAAA,CAAA,CAAtB,IAAOjB,CAAPkB,CAAAA,CAAAA,CAAAA,OAAOlB,CAAe,CAAA"}