import { ChangeDetectionStrategy , Component , OnDestroy } from '@angular/core' ; import { ChannelsV2Service } from '../channels-v2.service' ; import { WireModalService } from '../../../wire/wire-modal.service' ; import { SupportTier , SupportTiersService , } from '../../../wire/v2/support-tiers.service' ; import { Subscription } from 'rxjs' ; import { MindsUser } from '../../../../interfaces/entities' ; @ Component ( { selector : 'm-channelShop__brief' , changeDetection : ChangeDetectionStrategy . OnPush , templateUrl : 'brief.component.html' , styleUrls : [ 'brief.component.ng.scss' ] , providers : [ SupportTiersService ] , } ) export class ChannelShopBriefComponent implements OnDestroy { /**
     * Channel GUID subscription
     */ protected channelGuidSubscription : Subscription ; param service param supportTiers param wireModal constructor ( public service , public supportTiers , public channelService , protected wireModal ) { this . channelGuidSubscription = this . service . guid$ . subscribe ( guid => this . supportTiers . setEntityGuid ( guid ) ) ; } /**
     * Component destroy
     */ ngOnDestroy ( ) { if ( this . channelGuidSubscription ) { this . channelGuidSubscription . unsubscribe ( ) ; } } param channel param supportTier async onEntryClick ( channel , supportTier ) { await this . wireModal . present ( channel , { supportTier , } ) . toPromise ( ) ; this . supportTiers . refresh ( ) ; } }