//Copyright © [Year(s)] Nokia Corporation and/or its subsidiary(-ies).
Fp.Menu.Report.Inappropriate=Fp.Utils.extendObject(Fp.Menu.Report,{type:"INAPPROPRIATE",Reason:{PRIVACY:"PRIVACY",SEXUAL_CONTENT:"SEXUAL_CONTENT",SPAM:"SPAM",VIOLENT_CONTENT:"VIOLENT_CONTENT"},tempReason:false,init:function(){this.setupEvents(this.post);},setupEvents:function(a){new Fp.Utils.Events.addTapEvent({element:Fp.byId("menu-report-button-inappropriate"),onEvent:Fp.Utils.bind(this.showPage,this)});new Fp.Utils.Events.addTapEvent({element:Fp.byId("iSpam"),onEvent:Fp.Utils.bind(a,this,this.Reason.SPAM)});new Fp.Utils.Events.addTapEvent({element:Fp.byId("iInvadesPrivacy"),onEvent:Fp.Utils.bind(a,this,this.Reason.PRIVACY)});new Fp.Utils.Events.addTapEvent({element:Fp.byId("iSexualContent"),onEvent:Fp.Utils.bind(a,this,this.Reason.SEXUAL_CONTENT)});new Fp.Utils.Events.addTapEvent({element:Fp.byId("iViolentContent"),onEvent:Fp.Utils.bind(a,this,this.Reason.VIOLENT_CONTENT)});},showPage:function(){Fp.Pages.showPage({name:Fp.Pages.PAGE.REPORTINAPPROPRIATE});},post:function(a){if(a){this.tempReason=a;}if(this.tempReason){var b=Fp.Menu.Report.initIncident({reportType:this.type,reportValue:this.tempReason});this.sendIncident(b);}}});