import { Component , OnInit } from '@angular/core' ; import { AiService } from '../shared/services/ai.service' ; @ Component ( { selector : 'trial-expired' , templateUrl : './trial-expired.component.html' , styleUrls : [ './trial-expired.component.scss' ] , } ) export class TrialExpiredComponent implements OnInit { public freeTrialUri : string ; constructor ( private _aiService ) { this . freeTrialUri = `${ window . location . protocol }//azure.microsoft.com/${ window . navigator . language }/free` ; } ngOnInit ( ) { } trackLinkClick ( buttonName ) { if ( buttonName ) { try { this . _aiService . trackLinkClick ( buttonName , 'true' ) ; } catch ( error ) { this . _aiService . trackException ( error , 'trackLinkClick' ) ; } } } }