{"version":3,"file":"chunk-nad9gnz8.js","sources":["packages/sports/libs/event-subscription/feature/grid-subscription/src/grid-subscription.service.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { EventModel } from '@frontend/sports/betting-offer/feature/model';\nimport { CdsSubscription, GridSubscription } from '@frontend/sports/content-distribution/feature';\nimport { MessageCallback } from '@frontend/sports/event-subscription/feature/base-subscription';\nimport { EventSubscriptionService } from '@frontend/sports/event-subscription/feature/event-subscription';\n\n/**\n * This service should be used for subscribing grid event for push. It automatically\n * subscribes to scoreboard slim and all grid configured markets including V1 and V2\n * games and option markets\n *\n * @export\n * @class GridSubscriptionService\n * @extends {BaseSubscriptionService}\n */\n@Injectable({ providedIn: 'root' })\nexport class GridSubscriptionService extends EventSubscriptionService {\n protected override getContextSubscriptions(event: EventModel, callback: MessageCallback): CdsSubscription[] {\n return [new GridSubscription(event.offerContext, event.id, this.connection.culture, callback)];\n }\n}\n"],"names":["GridSubscriptionService","EventSubscriptionService","getContextSubscriptions","event","callback","GridSubscription","offerContext","id","connection","culture","__ngFactoryType__","factory","ɵfac","providedIn","_GridSubscriptionService"],"mappings":"0HAiBaA,IAAAA,CAAAA,CAAAA,CAAwB,IAAA,CAA/B,IAAOA,EAAP,MAAOA,CAAAA,SAAgCC,CAAwB,CAC9CC,uBAAwBC,CAAAA,CAAAA,CAAmBC,EAAyB,CACnF,OAAO,CAAC,IAAIC,EAAAA,CAAiBF,EAAMG,YAAcH,CAAAA,CAAAA,CAAMI,EAAI,CAAA,IAAA,CAAKC,UAAWC,CAAAA,OAAAA,CAASL,CAAQ,CAAC,CACjG,+DAHSJ,CAAuB,CAAA,CAAA,EAAAU,GAAvBV,CAAuB,CAAA,CAAA,CAAA,GAAvBA,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAuBW,QAAvBX,CAAuBY,CAAAA,SAAAA,CAAAC,WADV,MAAM,CAAA,EAC1B,IAAOb,CAAAA,CAAPc,CAAOd,CAAAA,OAAAA,CAAwB,CAAA"}