PageSourceSearch

https://wealthmanagement.bnpparibas.ch/ebanking/chunk-7Y3AMHBT.js

js bnpparibas.ch collected 2026-10-05 03:29:26 UTC 84,520 bytes, 1 lines download raw bytes

1import{a as St,b as Pt,c as It,e as Lt,f as Tt}from"./chunk-2QN7TYSN.js";import"./chunk-LQCVCLTP.js";import{a as K}from"./chunk-6OS54HP5.js";import{b as bt,c as re,d as U}from"./chunk-UQTF62HO.js";import{R as xe,W as Et,a as yt,b as ae,d as G,e as wt,ea as Ot,f as Mt,ga as Oe,i as ve}from"./chunk-MTIZ3I5D.js";import{a as ne,f as F,i as D,r as A}from"./chunk-R5QSTOP4.js";import"./chunk-ELSQQY5D.js";import{$a as q,A as w,Ac as ge,B as M,Bd as Ce,Cd as Ct,Da as o,Ea as s,Ed as vt,Fa as a,Fc as ue,Ga as y,Gb as $e,Gd as xt,I as Ne,K as Fe,Ka as f,L as Re,La as C,Ma as te,Mb as H,Mc as at,N as qe,Na as P,Nb as X,Nc as rt,Ob as L,Oc as st,Pa as b,Qa as m,R as We,Sb as Ye,Tb as me,U as pe,Ub as Qe,Wb as W,Y as de,Zb as he,_a as B,_b as Xe,bb as Ae,cb as p,cd as fe,db as g,dd as k,eb as S,ed as ot,fa as n,fc as Je,fd as ct,g as Ie,ga as R,gd as lt,hd as pt,ib as Ue,id as dt,ie as J,jb as je,jd as mt,kb as ze,kd as ht,lb as ie,lc as Ge,ma as u,mb as He,md as _t,nc as _e,nd as gt,oc as Ze,od as ut,qb as $,qc as et,ra as O,rb as N,s as De,sa as Ve,sb as Ee,sc as tt,sd as ft,tb as Ke,tc as V,uc as T,v as Be,vb as l,vc as it,wa as _,wb as d,xb as I,xc as nt,yb as Y,zb as Q}from"./chunk-HLPRXW3H.js";import"./chunk-TWZW5B45.js";var At=t=>({"min-height mb24":t}),Ut=(t,c,e)=>({opinion:!0,hold:t,buy:c,sell:e});function jt(t,c){t&1&&(s(0,"div",7),p(1),l(2,"translate"),a()),t&2&&(n(),g(d(2,1,"sa.label.latestResearch")))}function zt(t,c){if(t&1){let e=P();s(0,"td",13)(1,"a",14),b("click",function(){let r=w(e).$implicit,h=m().$implicit,v=m(2);return M(v.downloadDesknote(h==null?null:h.documentId,r==null?null:r.languageCode))}),y(2,"em"),l(3,"lowercase"),a()()}if(t&2){let e=c.$implicit;n(2),Ae(He("icon icon-",d(3,3,e.languageCode)))}}function Ht(t,c){if(t&1&&(s(0,"tr",9)(1,"td",10),p(2),a(),s(3,"td",11),p(4),l(5,"uppercase"),l(6,"translate"),a(),_(7,zt,4,5,"td",12),a()),t&2){let e=c.$implicit;n(2),g(e.name),n(),o("ngClass",Ke(8,Ut,(e==null?null:e.opinion.toLowerCase())=="hold",(e==null?null:e.opinion.toLowerCase())=="buy",(e==null?null:e.opinion.toLowerCase())=="sell")),n(),S(" ",d(6,6,"opinionList."+d(5,4,e==null?null:e.opinion))),n(3),o("ngForOf",e==null?null:e.details)}}function Kt(t,c){if(t&1&&(f(0),_(1,Ht,8,12,"tr",8),l(2,"slice"),C()),t&2){let e=m();n(),o("ngForOf",Y(2,1,e.latestMarketReseachContent,e.limitStart,e.limitEnd))}}function $t(t,c){t&1&&(s(0,"tr")(1,"td",15)(2,"span"),p(3),l(4,"translate"),a()()()),t&2&&(n(3),g(d(4,1,"sa.label.error.latestResearch.unavailable")))}function Yt(t,c){t&1&&te(0)}function Qt(t,c){if(t&1&&(f(0),_(1,Yt,1,0,"ng-container",16),C()),t&2){m();let e=B(10);n(),o("ngTemplateOutlet",e)}}function Xt(t,c){t&1&&(s(0,"div",17)(1,"button",18),p(2),l(3,"translate"),l(4,"uppercase"),a()()),t&2&&(n(2),g(d(4,3,d(3,1,"sa.label.latestResearch.btn"))))}function Jt(t,c){t&1&&(s(0,"div",19)(1,"div",20),y(2,"div")(3,"div")(4,"div")(5,"div"),a()())}var Me=(()=>{class t{constructor(e,i,r,h,v,x){this.myNewsFeedService=e,this.utilService=i,this.modalService=r,this.equityResearchService=h,this.userService=v,this.translate=x,this.isLoading=!1,this.isError=!1,this.limitStart=0,this.limitEnd=5,this.desknote={isDownload:!1,isServiceFailed:!1},this.isDsclmrRunning=!1,this.isDocDownloadRunning=!1,this.noRecord=new R(!1)}ngOnInit(){this.limitStart=0,this.limitEnd=5,this.isLoading=!0,this.myNewsFeedService.getLatestMarketResearch(this.isins).subscribe(e=>{this.latestMarketReseachContent=e,this.latestMarketReseachContent?.publishedDate?.sort((i,r)=>new Date(r).getTime().toString().localeCompare(new Date(i).getTime().toString(),void 0,{numeric:!0})).splice(5),this.isDsclmrRunning||(this.isLoading=!1),this.latestMarketReseachContent.length===0&&this.noRecord.emit(!0),console.log("Latest market research is,",this.latestMarketReseachContent)},()=>{this.isError=!0}),this.userService.fetchDisclaimerData.subscribe(e=>{e?(this.isLoading=!0,this.isDsclmrRunning=!0):e===!1&&(this.isDocDownloadRunning||(this.isLoading=!1),this.isDsclmrRunning=!1)})}downloadDesknote(e,i,r){if(this.userService.isEquityDocDisclaimerAcceptted)this.downloadDoc(e,i,r);else{let h=this.modalService.open(J,{backdrop:"static",keyboard:!1,centered:!0});h.componentInstance.popUpType="prompt",h.componentInstance.successLabel=this.translate.instant("label.agree"),h.componentInstance.failureLabel=this.translate.instant("label.disagree"),h.componentInstance.popUpTitle=this.translate.instant("equitysearch.disclaimer.title"),h.componentInstance.popUpContent=this.translate.instant("equitysearch.disclaimer.message"),h.result.then(v=>{v==="Yes"&&this.equityResearchService.acceptDesknoteDisclaimer().subscribe(x=>{this.userService.isEquityDocDisclaimerAcceptted=!0,this.downloadDoc(e,i,r)})})}}downloadDoc(e,i,r){this.isLoading=!0,this.isDocDownloadRunning=!0,this.equityResearchService.getDesknoteDoc(e,i.toLowerCase()).subscribe(h=>{let v="desknote_"+e+"_"+i+".pdf";this.utilService.callInfo.documentName=v,this.utilService.callInfo.documentType="Equityresearch";let x=window.URL.createObjectURL(h);this.invokeClick(x,v),this.desknote.isDownload=!1,this.isDocDownloadRunning=!1,this.isLoading=!1},h=>{this.desknote.isDownload=!1,this.desknote.isServiceFailed=!0,this.utilService.callInfo.documentType="Equityresearch",this.isDocDownloadRunning=!1,this.isLoading=!1,this.utilService.n
1otifyUser(this.translate.instant("label.error"),this.translate.instant("sa.label.error.latestResearch.unavailable"))})}invokeClick(e,i){let r=document.createElement("a");r.download=i,r.href=e;let h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(h)}static{this.\u0275fac=function(i){return new(i||t)(u(U),u(A),u(k),u(K),u(D),u(V))}}static{this.\u0275cmp=O({type:t,selectors:[["app-latest-research"]],inputs:{isins:"isins"},outputs:{noRecord:"noRecord"},standalone:!1,decls:11,vars:12,consts:[["loader",""],[1,"latest-research","row",3,"ngClass"],["class","header",4,"ngIf"],[1,"table-container"],[2,"width","100%"],[4,"ngIf"],["class","col-12 btn-cont",4,"ngIf"],[1,"header"],["class","tab-row",4,"ngFor","ngForOf"],[1,"tab-row"],[1,"left"],[1,"right","tdspace",3,"ngClass"],["class","right",4,"ngFor","ngForOf"],[1,"right"],[1,"desknote-download",3,"click"],[1,"txtcenter"],[4,"ngTemplateOutlet"],[1,"col-12","btn-cont"],["routerLink","/secure/equity-research",1,"btn","btn-primary","wmis-btn","equity-btn"],[1,"spinner"],[1,"lds-ellipsis"]],template:function(i,r){i&1&&(s(0,"div",1),_(1,jt,3,3,"div",2),s(2,"div",3)(3,"table",4)(4,"tbody"),_(5,Kt,3,5,"ng-container",5)(6,$t,5,3,"tr",5),a()(),_(7,Qt,2,1,"ng-container",5),a(),_(8,Xt,5,5,"div",6),a(),_(9,Jt,6,0,"ng-template",null,0,Q)),i&2&&(o("ngClass",N(10,At,!r.isins)),n(),o("ngIf",!r.isins),n(),q("padding-top",r.isins?0:"")("padding-bottom",r.isins?0:""),n(3),o("ngIf",!r.isError),n(),o("ngIf",r.isError),n(),o("ngIf",r.isLoading&&!r.isError),n(),o("ngIf",!r.isLoading&&!r.isError&&!r.isins))},dependencies:[H,X,L,me,Ze,W,Qe,he,T],styles:[".latest-research[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;background-color:#fff;margin:0;color:#333}.latest-research[_ngcontent-%COMP%]   .min-height[_ngcontent-%COMP%]{min-height:200px}.latest-research[_ngcontent-%COMP%]   .table-container[_ngcontent-%COMP%]{padding:24px;position:relative;width:100%;min-height:88px}.latest-research[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{position:relative;width:100%}.latest-research[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{opacity:.3}.latest-research[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{z-index:1;position:absolute}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%]   .desknote-download[_ngcontent-%COMP%]{cursor:pointer}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%]   .desknote-download[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#6bbbae!important}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:8px 0;font-size:16px;letter-spacing:.4px;color:#333}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{font-weight:300}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{padding:10px 10px 5px;text-align:center;border-radius:0;color:#fff;font-weight:300;font-size:inherit;width:65px}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%]   .badge-green[_ngcontent-%COMP%]{background-color:#66a60c}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%]   .badge-red[_ngcontent-%COMP%]{background-color:#d0021b}.latest-research[_ngcontent-%COMP%]   .tab-row[_ngcontent-%COMP%]   .badge-blue[_ngcontent-%COMP%]{background-color:#006788}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-top-width:0px;background:#fff;font-weight:300}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{text-align:right}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{text-align:left;font-size:16px;font-weight:300}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .tdspace[_ngcontent-%COMP%]{padding:0 16px 0 5px}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .opinion.hold[_ngcontent-%COMP%]{color:#ffa900}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .opinion.buy[_ngcontent-%COMP%]{color:#65a60c}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .opinion.sell[_ngcontent-%COMP%]{color:#d0021b}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{width:35px}.latest-research[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{line-height:1.2}.latest-research[_ngcontent-%COMP%]   .spin[_ngcontent-%COMP%]{vertical-align:bottom;font-size:18px}.latest-research[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{color:#6bbbae;font-stretch:expanded;font-size:17px;text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:24px 24px 0}.latest-research[_ngcontent-%COMP%]   .btn-cont[_ngcontent-%COMP%]{padding:0 24px 24px}.latest-research[_ngcontent-%COMP%]   .btn-cont[_ngcontent-%COMP%]   .equity-btn[_ngcontent-%COMP%]{width:100%;cursor:pointer}.margin-bottom20[_ngcontent-%COMP%]{margin-bottom:20px}"]})}}return t})();function ei(t,c){if(t&1&&(f(0),s(1,"div",6)(2,"span"),p(3),l(4,"translate"),l(5,"translate"),a()(),C()),t&2){let e=m(2);n(3),S("",e.instrument.toLowerCase()==="sell"?d(4,1,"sa.label.topSell.unavailable"):d(5,3,"sa.label.topBuy.unavailable")," ")}}function ti(t,c){t&1&&(f(0),s(1,"div",6)(2,"span",7),p(3),l(4,"translate"),a()(),C()),t&2&&(n(3),g(d(4,1,"sa.label.toptx.noRecord")))}function ii(t,c){if(t&1&&(s(0,"option"),p(1),a()),t&2){let e=c.$implicit;n(),g(e)}}function ni(t,c){if(t&1){let e=P();s(0,"div",9)(1,"div",12)(2,"label"),p(3),l(4,"translate"),l(5,"uppercase"),a(),s(6,"div",13)(7,"select",14),b("change",function(r){w(e);let h=m(4);return M(h.handleRiskProfileChange(r))}),_(8,ii,2,1,"option",15),a()()()()}if(t&2){let e=m(4);n(3),g(d(5,5,d(4,3,"sa.label.investmentProfile"))),n(4),o("ngModel",e.defaultRiskProfile),n(),o("ngForOf",e.riskProfiles)}}function ai(t,c){if(t&1&&(f(0),s(1,"div",18),p(2),a(),s(3,"div",19),p(4),a(),C()),t&2){let e=c.$implicit;n(2),g(e==null?null:e.isin),n(2),g(e==null?null:e.name)}
1}function ri(t,c){if(t&1&&(s(0,"div",16)(1,"div",17),p(2),l(3,"translate"),a(),_(4,ai,5,2,"ng-container",15),a()),t&2){let e=m(4);n(2),g(d(3,2,"Equities")),n(2),o("ngForOf",e.topInstrument==null?null:e.topInstrument.equity)}}function si(t,c){if(t&1&&(f(0),s(1,"div",18),p(2),a(),s(3,"div",19),p(4),a(),C()),t&2){let e=c.$implicit;n(2),g(e==null?null:e.isin),n(2),g(e==null?null:e.name)}}function oi(t,c){if(t&1&&(s(0,"div",16)(1,"div",17),p(2),l(3,"translate"),a(),_(4,si,5,2,"ng-container",15),a()),t&2){let e=m(4);n(2),g(d(3,2,"sa.label.mrktDaily.fixedIncome")),n(2),o("ngForOf",e.topInstrument==null?null:e.topInstrument.fixedIncome)}}function ci(t,c){if(t&1&&(f(0),s(1,"div",18),p(2),a(),s(3,"div",19),p(4),a(),C()),t&2){let e=c.$implicit;n(2),g(e==null?null:e.isin),n(2),g(e==null?null:e.name)}}function li(t,c){if(t&1&&(s(0,"div",16)(1,"div",17),p(2),l(3,"translate"),a(),_(4,ci,5,2,"ng-container",15),a()),t&2){let e=m(4);n(2),g(d(3,2,"sa.label.fund")),n(2),o("ngForOf",e.topInstrument==null?null:e.topInstrument.fund)}}function pi(t,c){if(t&1&&(f(0),_(1,ni,9,7,"div",8),s(2,"div",9),_(3,ri,5,4,"div",10)(4,oi,5,4,"div",10)(5,li,5,4,"div",10),a(),s(6,"div",11),p(7),l(8,"translate"),a(),C()),t&2){let e=m(3);n(),o("ngIf",e.isSwissSite),n(2),o("ngIf",(e.topInstrument==null?null:e.topInstrument.equity.length)>0),n(),o("ngIf",(e.topInstrument==null?null:e.topInstrument.fixedIncome.length)>0),n(),o("ngIf",(e.topInstrument==null?null:e.topInstrument.fund.length)>0),n(2),g(d(8,5,"sa.toptx.disclaimer"))}}function di(t,c){if(t&1&&(f(0),_(1,ti,5,3,"ng-container",5)(2,pi,9,7,"ng-container",5),C()),t&2){let e=m(2);n(),o("ngIf",!(e.topInstrument!=null&&e.topInstrument.equity.length)&&!(e.topInstrument!=null&&e.topInstrument.fixedIncome.length)&&!(e.topInstrument!=null&&e.topInstrument.fund.length)&&!e.isLoading),n(),o("ngIf",(e.topInstrument==null?null:e.topInstrument.equity.length)||(e.topInstrument==null?null:e.topInstrument.fixedIncome.length)||(e.topInstrument==null?null:e.topInstrument.fund.length))}}function mi(t,c){t&1&&te(0)}function hi(t,c){if(t&1&&(f(0),_(1,mi,1,0,"ng-container",20),C()),t&2){m(2);let e=B(4);n(),o("ngTemplateOutlet",e)}}function _i(t,c){if(t&1&&(s(0,"div",4),_(1,ei,6,5,"ng-container",5)(2,di,3,2,"ng-container",5)(3,hi,2,1,"ng-container",5),a()),t&2){let e=m();n(),o("ngIf",e.isError),n(),o("ngIf",!e.isError),n(),o("ngIf",e.isLoading&&!e.isError)}}function gi(t,c){t&1&&te(0)}function ui(t,c){if(t&1&&(f(0),_(1,gi,1,0,"ng-container",20),C()),t&2){m(2);let e=B(4);n(),o("ngTemplateOutlet",e)}}function fi(t,c){if(t&1){let e=P();s(0,"div",21)(1,"span",22),b("click",function(){w(e);let r=m();return M(r.showDisclaimer())}),p(2),l(3,"translate"),a(),_(4,ui,2,1,"ng-container",5),a()}if(t&2){let e=m();n(2),g(d(3,2,"sa.watchlistNews.reviewDisclaimer")),n(2),o("ngIf",e.disclaimerLoader)}}function Ci(t,c){t&1&&(s(0,"div",23)(1,"div",24),y(2,"div")(3,"div")(4,"div")(5,"div"),a()())}var Bt=(()=>{class t{constructor(e,i,r,h,v,x,E){this.userService=e,this.myNewsFeedService=i,this.apiService=r,this.utilService=h,this.modalService=v,this.equityResearchService=x,this.translate=E,this.showOrHideTopBuyTopSell=new R,this.isDisclaimerAccepted=!1,this.showEqResearch=!1,this.topInstrument={equity:[],fixedIncome:[],fund:[]},this.isLoading=!1,this.isError=!1,this.fullRiskProfiles=["High","Advanced","Moderate","Low"],this.riskProfiles=["High","Advanced","Moderate","Low"],this.defaultRiskProfile="",this.disclaimerLoader=!1}ngOnInit(){this.isDisclaimerAccepted=this.userService.isEquityDocDisclaimerAcceptted,this.userService.fetchDisclaimerData.subscribe(e=>{if(e==="error")this.disclaimerLoader=!1;else if(e===!0){this.disclaimerLoader=!0;return}else e===!1&&(console.log("came to false block"),this.disclaimerLoader=!1,this.isDisclaimerAccepted=!0,this.userService.isEquityDocDisclaimerAcceptted=!0,this.initiate())})}initiate(){if(this.userService.isUserObjReady.subscribe(e=>{console.log("Ptf list is",this.userService.ptfList);let i=[];this.defaultRiskProfile=this.utilService.sentenceCase(this.userService.ptfList.all.filter(h=>
1h.id===this.userService.defaultPortfolio)[0].riskProfileCode),this.userService.ptfList.individual.map(h=>i.push(h.riskProfileCode.toLowerCase())),i=[...new Set(i)].filter(h=>h.toLowerCase()!=="undefined"),console.log("UserRiskProfile",i),console.log("Default risk profile is",this.defaultRiskProfile);let r=this.riskProfiles.slice();for(let h of r)i.indexOf(h.toLowerCase())===-1&&this.riskProfiles.splice(this.riskProfiles.indexOf(h),1);this.riskProfiles=[...new Set([...this.riskProfiles,...this.fullRiskProfiles.slice(this.fullRiskProfiles.indexOf(this.riskProfiles[0]))])],console.log("Investment Profile",this.riskProfiles),this.showEqResearch=this.userService.isEqResearchEnabled}),this.isSwissSite){let e=this.userService.ptfList?.portfolioSummaries[0]?.id;this.getSuitabilityRules(e)}else this.getTopInstrument(this.defaultRiskProfile)}getSuitabilityRules(e){this.isLoading=!0,this.myNewsFeedService.getSuitabilityRulesRes(e).subscribe(i=>{this.suitabilityRules=i,this.isLoading=!1,this.getTopInstrument(this.defaultRiskProfile)},()=>{this.isLoading=!1,this.isError=!0})}getTopInstrument(e){this.isLoading=!0,this.subscription=this.myNewsFeedService.getTopInstrument(e).subscribe(i=>{if(this.topInstrument=i[this.instrument],this.topInstrument.equity=i[this.instrument]?.filter(r=>r.type.toLocaleLowerCase()==="equity").slice(0,5),this.topInstrument.fixedIncome=i[this.instrument]?.filter(r=>r.type.toLocaleLowerCase()==="fixed income").slice(0,5),this.topInstrument.fund=i[this.instrument]?.filter(r=>r.type.toLocaleLowerCase()==="fund").slice(0,5),this.isSwissSite){let r=this.suitabilityRules?.portfolioSuitabilityProfiles.some(x=>x.mifidKnowledge040==="Known"),h=this.suitabilityRules?.portfolioSuitabilityProfiles.some(x=>x.mifidKnowledge030==="Known"),v=this.suitabilityRules?.portfolioSuitabilityProfiles.some(x=>x.mifidKnowledge020==="Known");this.topInstrument.fund=r?this.topInstrument.fund:[],this.topInstrument.equity=h?this.topInstrument.equity:[],this.topInstrument.fixedIncome=v?this.topInstrument.fixedIncome:[],!r&&!h&&!v&&this.showOrHideTopBuyTopSell.emit({buy:!1,sell:!1}),!h&&!v&&this.showOrHideTopBuyTopSell.emit({buy:!0,sell:!1})}this.isLoading=!1,console.log("Top instrument response",i)},()=>{this.isLoading=!1,this.isError=!0})}get isSwissSite(){return this.apiService.appDefaultParams?.site?.toUpperCase()===ne.BPS}handleRiskProfileChange(e){this.getTopInstrument(e.target.value),console.log("changed value",e.target.value)}showDisclaimer(){if(!this.userService.isEquityDocDisclaimerAcceptted){let e=this.modalService.open(J,{backdrop:"static",keyboard:!1,centered:!0});e.componentInstance.popUpType="prompt",e.componentInstance.successLabel=this.translate.instant("label.agree"),e.componentInstance.failureLabel=this.translate.instant("label.disagree"),e.componentInstance.popUpTitle=this.translate.instant("equitysearch.disclaimer.title"),e.componentInstance.popUpContent=this.translate.instant("equitysearch.disclaimer.message"),e.result.then(i=>{i==="Yes"&&this.equityResearchService.acceptDesknoteDisclaimer().subscribe()})}}ngOnDestroy(){this.subscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(u(D),u(U),u(Ce),u(A),u(k),u(K),u(V))}}static{this.\u0275cmp=O({type:t,selectors:[["app-top-instrument"]],inputs:{instrument:"instrument"},outputs:{showOrHideTopBuyTopSell:"showOrHideTopBuyTopSell"},standalone:!1,decls:5,vars:2,consts:[["loader",""],[1,"top-instrument","row","margin-bottom20"],["class","col-12",4,"ngIf"],["class","col-12 disclaimer-section",4,"ngIf"],[1,"col-12"],[4,"ngIf"],[1,"no-data"],[1,"txtcenter"],["class","row",4,"ngIf"],[1,"row"],["class","col-4",4,"ngIf"],[1,"row","disclaimer-bottom"],[1,"col-4","inputcontrol"],[1,"select-custom"],["id","investmentProfile",1,"form-control","form-control-lg",3,"change","ngModel"],[4,"ngFor","ngForOf"],[1,"col-4"],[1,"header"],[1,"title"],[1,"body"],[4,"ngTemplateOutlet"],[1,"col-12","disclaimer-section"],[1,"link",3,"click"],[1,"spinner"],[1,"lds-ellipsis"]],template:function(i,r){i&1&&(s(0,"div",1),_(1,_i,4,3,"div",2)(2,fi,5,4,"div",3),a(),_(3,Ci,6,0,"ng-template",null,0,Q)),i&2&&(n(),o("ngIf",r.isDisclaimerAccepted),n(),o("ngIf",!r.isDisclaimerAccepted))},dependencies:[X,L,me,rt,st,at,ge,ue,W,T],styles:[".top-instrument[_ngcontent-%COMP%]{background-color:#fff;margin:0;color:#333;min-height:150px;padding:24px}.top-instrument[_ngcontent-%COMP%]   .inputcontrol[_ngcontent-%COMP%]{position:relative;display:inline-block;padding:0 0 24px 16px;width:33%}.top-instrument[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#979797;font-family:BNPPSans;font-stretch:expanded;font-size:10px;margin-top:8px;letter-spacing:1px}.top-instrument[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{margin-top:4px;border-radius:0;background-color:#fff;border:solid 1px #d8d8d8;font-size:16px;font-weight:300;letter-spacing:.4px;text-align:left;color:#706c6c;padding:12px 5px 10px 12px;
1height:45px}.top-instrument[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{color:#1a322f;font-size:20px;font-weight:400;line-height:1.33;margin-bottom:16px;word-break:break-word}.top-instrument[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{font-weight:300;color:#333;margin-bottom:8px}.top-instrument[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:16px}.top-instrument[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]{display:flex;background-color:#fff;height:88px;justify-content:center;align-items:center}.top-instrument[_ngcontent-%COMP%]   .no-data[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:300;letter-spacing:.44px;color:#333;font-size:16px;font-stretch:normal;font-style:normal;text-align:center;padding:24px}.top-instrument[_ngcontent-%COMP%]   .margin-bottom20[_ngcontent-%COMP%]{margin-bottom:20px}.top-instrument[_ngcontent-%COMP%]   .disclaimer-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-weight:300;letter-spacing:.44px;font-size:16px;font-stretch:normal;font-style:normal;text-align:center}.top-instrument[_ngcontent-%COMP%]   .disclaimer-section[_ngcontent-%COMP%]   .link[_ngcontent-%COMP%]{text-decoration:underline;color:#6bbbae;cursor:pointer}.top-instrument[_ngcontent-%COMP%]   .disclaimer-section[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{color:#333;padding-left:4px}.top-instrument[_ngcontent-%COMP%]   .disclaimer-bottom[_ngcontent-%COMP%]{font-size:12px;font-weight:300;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#979797;padding:24px 15px 0}"]})}}return t})();var wi=(t,c)=>({"add-watchlist":t,"remove-watchlist":c}),Mi=(t,c)=>({icon:!0,"icon-remove-watchlist":t,"icon-add-watchlist":c});function bi(t,c){if(t&1&&(f(0),s(1,"div",22)(2,"div",6)(3,"div",23)(4,"div",24)(5,"div",25),p(6),l(7,"translate"),l(8,"uppercase"),a(),s(9,"div",26),p(10),l(11,"currencyPipe"),a()()(),s(12,"div",23)(13,"div",27)(14,"div",25),p(15),l(16,"translate"),l(17,"uppercase"),a(),s(18,"div",26),p(19),l(20,"currencyPipe"),a()()()(),s(21,"div",6)(22,"div",23)(23,"div",24)(24,"div",25),p(25),l(26,"translate"),l(27,"uppercase"),a(),s(28,"div",26),p(29),l(30,"currencyPipe"),a()()(),s(31,"div",23)(32,"div",27)(33,"div",25),p(34),l(35,"translate"),l(36,"uppercase"),a(),s(37,"div",26),p(38),l(39,"currencyPipe"),a()()()(),s(40,"div",6)(41,"div",23)(42,"div",27)(43,"div",25),p(44),l(45,"translate"),l(46,"uppercase"),a(),s(47,"div",26),p(48),l(49,"currencyPipe"),a()()(),s(50,"div",23)(51,"div",27)(52,"div",25),p(53),l(54,"translate"),l(55,"uppercase"),a(),s(56,"div",26),p(57),l(58,"currencyPipe"),a()()()(),s(59,"div",6)(60,"div",23)(61,"div",27)(62,"div",25),p(63),l(64,"translate"),l(65,"uppercase"),a(),s(66,"div",26),p(67),l(68,"currencyPipe"),a()()(),s(69,"div",23)(70,"div",27)(71,"div",25),p(72),l(73,"translate"),l(74,"uppercase"),a(),s(75,"div",26),p(76),l(77,"currencyPipe"),a()()()(),s(78,"div",6)(79,"div",23)(80,"div",28)(81,"div",25),p(82),l(83,"translate"),l(84,"uppercase"),a(),s(85,"div",26),p(86),l(87,"currencyPipe"),a()()(),s(88,"div",23)(89,"div",28)(90,"div",25),p(91),l(92,"translate"),l(93,"uppercase"),a(),s(94,"div",26),p(95),l(96,"currencyPipe"),a()()()(),s(97,"div",6)(98,"div",23)(99,"div",28)(100,"div",25),p(101),l(102,"translate"),l(103,"uppercase"),a(),s(104,"div",26),p(105),l(106,"currencyPipe"),a()()(),s(107,"div",23)(108,"div",28)(109,"div",25),p(110),l(111,"translate"),l(112,"uppercase"),a(),s(113,"div",26),p(114),l(115,"currencyPipe"),a()()()(),s(116,"div",6)(117,"div",23)(118,"div",28)(119,"div",25),p(120),l(121,"translate"),l(122,"uppercase"),a(),s(123,"div",26),p(124),a()()(),s(125,"div",23)(126,"div",28)(127,"div",25),p(128),l(129,"translate"),l(130,"uppercase"),a(),s(131,"div",26),p(132),a()()()()(),C()),t&2){let e=m();n(6),g(d(8,40,d(7,38,"label.lastprice"))),n(4),S(" ",I(11,42,e.instrumentMarketData==null?null:e.instrumentMarketData.lastPrice,"number")||"\u2014"," "),n(5),g(d(17,47,d(16,45,"label.change"))),n(3),q("color",(e.instrumentMarketData==null?null:e.instrumentMarketData.change)>=0?"#65a60c":"#d0021b"),n(),S(" ",I(20,49,e.instrumentMarketData==null?null:e.instrumentMarketData.change,"number")||"\u2014"," "),n(6),g(d(27,54,d(26,52,"sa.equityDetails.open"))),n(4),S(" ",I(30,56,e.instrumentMarketData==null?null:e.instrumentMarketData.open,"number")||"\u2014"," "),n(5),g(d(36,61,d(35,59,"label.previousclose"))),n(4),S(" ",I(39,63,e.instrumentMarketData==null?null:e.instrumentMarketData.prevClose,"number")||"\u2014"," "),n(6),g(d(46,68,d(45,66,"sa.todaysHigh"))),n(3),q("color","#65a60c"),n(),S(" ",I(49,70,e.instrumentMarketData==null?null:e.instrumentMarketData.todayHigh,"number")||"\u2014"," "),n(5),g(d(55,75,d(54,73,"sa.todaysLow"))),n(3),q("color","#d0021b"),n(),S(" ",I(58,77,e.instrumentMarketData==null?null:e.instrumentMarketData.todayLow,"number")||"\u2014"," "),n(6),g(d(65,82,d(64,80,"sa.52WeekHigh"))),n(3),q("color","#65a60c"),n(),S(" ",I(68,84,e.instrumentMarketData==null?null:e.instrumentMarketData.yearHigh,"number")||"\u2014"," "),n(5),g(d(74,89,d(73,87,"sa.52WeekLow"))),n(3),q("color","#d0021b"),n(),S(" ",I(77,91,e.instrumentMarketData==null?null:e.instrumentMarketData.yearLow,"number")||"\u2014"," "),n(6),g(d(84,96,d(83,94,"label.ask"))),n(4),S(" ",I(87,98,e.instrumentMarketData==null?null:e.instrumentMarketData.ask,"number")||"\u2014"),n(5),g(d(93,103,d(92,101,"label.askvolume"))),n(4),S(" ",I(96,105,e.instrumentMarketData==null?null:e.instrumentMarketData.askSize,"
1noDecimalNumber")||"\u2014"),n(6),S("",d(103,110,d(102,108,"label.bid"))," "),n(4),S(" ",I(106,112,e.instrumentMarketData==null?null:e.instrumentMarketData.bid,"number")||"\u2014"),n(5),g(d(112,117,d(111,115,"label.bidvolume"))),n(4),S(" ",I(115,119,e.instrumentMarketData==null?null:e.instrumentMarketData.bidSize,"noDecimalNumber")||"\u2014"),n(6),g(d(122,124,d(121,122,"label.stockexchange"))),n(4),S(" ",(e.selectedInstruments==null||e.selectedInstruments.item==null||e.selectedInstruments.item.marketData==null?null:e.selectedInstruments.item.marketData.stockExchangeName)||(e.selectedInstruments==null||e.selectedInstruments.marketData==null?null:e.selectedInstruments.marketData.stockExchangeName)||"\u2014"),n(4),S("",d(130,128,d(129,126,"label.isin"))," "),n(4),S(" ",e.isinsCode||"\u2014")}}function Si(t,c){t&1&&(s(0,"div",29),p(1),l(2,"translate"),a()),t&2&&(n(),g(d(2,1,"common.service.error")))}function Pi(t,c){t&1&&(s(0,"div",30)(1,"div",31),y(2,"div")(3,"div")(4,"div")(5,"div"),a()())}function Ii(t,c){t&1&&(s(0,"div",30)(1,"div",31),y(2,"div")(3,"div")(4,"div")(5,"div"),a()())}function Ei(t,c){if(t&1){let e=P();s(0,"button",35),b("click",function(r){w(e);let h=m(2);return M(h.tradeNavigation(r,"equity","sell"))}),p(1),l(2,"translate"),l(3,"uppercase"),a()}t&2&&(n(),g(d(3,3,d(2,1,"opinionList.SELL"))))}function Oi(t,c){if(t&1){let e=P();s(0,"div",6)(1,"div",11)(2,"div",32),_(3,Ei,4,5,"button",33),s(4,"button",34),b("click",function(r){w(e);let h=m();return M(h.tradeNavigation(r,"equity","buy"))}),p(5),l(6,"translate"),l(7,"uppercase"),a()()()()}if(t&2){let e=m();n(3),o("ngIf",e.selectedInstrumentsDetails==null?null:e.selectedInstrumentsDetails.sellable),n(2),g(d(7,4,d(6,2,"opinionList.BUY")))}}function Li(t,c){if(t&1){let e=P();s(0,"div",36)(1,"label",37),p(2),l(3,"translate"),l(4,"uppercase"),a(),s(5,"app-latest-research",38),b("noRecord",function(r){w(e);let h=m();return M(h.handleNoDesknote(r))}),a()()}if(t&2){let e=m();n(2),g(d(4,4,d(3,2,"sa.desknotes"))),n(3),o("isins",e.isinsCode)}}var be=(()=>{class t{constructor(e,i,r,h,v,x,E,j,ee){this.activeModal=e,this.tradeService=i,this.datetimePipe=r,this.myNewsFeedService=h,this.utilService=v,this.translateService=x,this.userService=E,this.router=j,this.modalService=ee,this.featureToggle=F.featureToggle,this.isSearchClicked=!1,this.loader=!1,this.instrumentMarketData=[],this.isBasicSearch=!0,this.infoChartParams={assetClass:ae.EQUITY.toLowerCase()},this.noResult=!1,this.isAddedToWatchList=!1,this.watchListLoader=!1,this.watchlistCount=0,this.errorStatusRetrieval=!1,this.noDesknote=!1,this.isTradeLoading=!1,this.istradeEnabled=!1,this.bcCode=null,this.isSixMarketDataEnabled=this.userService.getSixMarketDataEnabled(),this.isMarketDataApiFailed=!1,this.editWatchListErrorHandler=z=>{this.watchListLoader=!1;let Te="sa.watchlist.add.err.title",ke="sa.watchlist.add.err.desc";z!=="add"&&(Te="sa.watchlist.remove.err.title",ke="sa.watchlist.remove.err.desc"),this.showDialogBox(this.translateService.instant(Te),this.translateService.instant(ke)),console.log("Error occurred while removing item from watchlist")}}ngOnInit(){console.log("selected instrument is",this.selectedInstruments),this.istradeEnabled=this.userService.hasFeature(this.featureToggle.EBK_TRADE)&&this.userService.hasFeature(this.featureToggle.EBK_TRADE_EQUITY)&&this.userService.istradeEnabled&&this.userService.isTxnPortfolios,this.popUpTitle=this.selectedInstruments?.item?this.selectedInstruments?.item?.instrumentName?.toString().toUpperCase():this.selectedInstruments?.instrumentName?.toString().toUpperCase(),this.isinsCode=this.selectedInstruments?.item?this.selectedInstruments?.item?.isin:this.selectedInstruments?.isin,this.instrumentCategory=this.searchInput&&this.searchInput.assetType?this.searchInput.assetType:ae.EQUITY,this.getInstrumentDetails(this.selectedInstruments),this.getWatchList()}getInstrumentDetails(e){this.loader=!0,console.log("get instrument details search type",this.searchType),this.searchType==="bve_search"?(e=e.instrumentCode?e.instrumentCode:e.item.instrumentCode,this.tradeService.searchInstrumentsDetails(e).subscribe(i=>{this.selectedInstrumentsDetails=i,this.isSixMarketDataEnabled?this.getIsinBcCode(i):this.getRicCodeDetails(i)},i=>{console.log("Error in fetching Holding instrument details"),this.loader=!1})):(this.loader=!1,e=e.item?e.item:e,this.isSixMarketDataEnabled?this.getIsinBcCode(e):this.getRicCodeDetails(e))}getIsinBcCode(e){let i={isin:e.isin,currency:e.instrumentCcyIsoCode,exchangeCode:e.exchangeCode};
1this.tradeService.getBCCode(i).subscribe(r=>{this.bcCode=r.bcCode,this.getInstrMarketData(e)},r=>{console.log("Chart API Failed",r),this.getInstrMarketData(e)})}getRicCodeDetails(e){let i=e&&e.instrumentCcyIsoCode?e.instrumentCcyIsoCode:"",r=e&&e.isin?e.isin:"",h=e&&e.exchangeCode?e.exchangeCode:"",v=e&&e.ric?e.ric:null;this.tradeService.getRicCode(r,v,h,i).subscribe(x=>{this.getInstrMarketData(e),this.ricCode=x.ricCode},x=>{console.log("Error in fetching Holding instrument details"),this.isSearchClicked=!1,this.getInstrMarketData(e)})}getInstrMarketData(e){this.loader=!0,this.EmitInstrumentList(e),this.EmitHolidayList(e),this.tradeService.getInstrumentMarketData(e,this.instrumentCategory,this.bcCode).subscribe(i=>{this.instrumentMarketData=i,this.isMarketDataApiFailed=i.length==0,console.log("Exchange rate,",this.instrumentMarketData),this.instrumentMarketData.lastUpdatedDate&&(this.instrumentMarketData.lastUpdatedDate=this.datetimePipe.transform(this.instrumentMarketData.lastUpdatedDate)),this.loader=!1},i=>{this.loader=!1})}EmitInstrumentList(e){let i=e&&e.instrumentName?{item:e}:[];this.instrumentDetails=i}EmitHolidayList(e){let i=e&&e.exchangeCode?e.exchangeCode:"";this.tradeService.exchangeDetails=!0,this.tradeService.getMarketHolidayList(i).subscribe(r=>{this.tradeService.exchangeDetails=!1},r=>{console.log("getMarketHolidayList error"),this.tradeService.exchangeDetails=!1})}addToWatchList(){this.watchListLoader=!0;let e={stockExchangeName:this.selectedInstruments?.item?.marketData?.stockExchangeName||this.selectedInstruments?.marketData?.stockExchangeName,isin:this.isinsCode,code:this.selectedInstruments?.item?.marketData?.code||this.selectedInstruments?.marketData?.code,name:this.selectedInstruments?.item?.instrumentName||this.selectedInstruments?.instrumentName,isinBc:this.isSixMarketDataEnabled?this.isinsCode+"_"+this.bcCode:""};console.log("Instrument data is,",this.instrumentMarketData,this.selectedInstruments),this.myNewsFeedService.addToWatchList(e).subscribe(i=>{this.isAddedToWatchList=!0,this.watchListLoader=!1,this.watchlistCount+=1,this.showDialogBox(this.translateService.instant("label.success"),e.name+" "+this.translateService.instant("sa.watchlist.add.success"))},()=>this.editWatchListErrorHandler("add"))}editWatchList(){if(this.isAddedToWatchList){this.removeFromWatchList();return}if(this.watchlistCount>=20){this.showDialogBox(this.translateService.instant("sa.watchlist.full.title"),this.translateService.instant("sa.watchlist.full.desc"));return}this.addToWatchList()}removeFromWatchList(){this.watchListLoader=!0;let e=(this.selectedInstruments?.item?.isin||this.selectedInstruments?.isin)+"_"+this.bcCode,i=this.isSixMarketDataEnabled?e:this.selectedInstruments?.item?.marketData?.code||this.selectedInstruments?.marketData?.code;this.myNewsFeedService.removeFromWatchList(i).subscribe(r=>{this.watchlistCount>1&&(this.watchlistCount-=1),this.isAddedToWatchList=!1,this.watchListLoader=!1,this.showDialogBox(this.translateService.instant("label.success"),(this.selectedInstruments?.item?.instrumentName||this.selectedInstruments?.instrumentName)+" "+this.translateService.instant("sa.watchlist.remove.success")),console.log("removed form watchlist",this.isAddedToWatchList)},this.editWatchListErrorHandler)}showDialogBox(e,i){this.utilService.notifyUser(e,i)}getWatchList(){this.watchListLoader=!0,this.myNewsFeedService.getWatchList().subscribe(e=>{this.watchlistCount=e.length,e.filter(i=>i.isin===this.isinsCode).length>0&&(this.isAddedToWatchList=!0),this.watchListLoader=!1,console.log("Use watchList",this.isAddedToWatchList,e)},e=>{this.watchListLoader=!1,this.errorStatusRetrieval=!0,this.showDialogBox(this.translateService.instant("sa.watchlist.status.title"),this.translateService.instant("sa.watchlist.status.desc")),console.log("Error occurred while getting item from watchlist")})}handleNoDesknote(e){e&&(this.noDesknote=!0)}get isEquityEnabled(){return this.userService.isEqResearchEnabled}tradeNavigation(e,i,r){e.stopPropagation(),this.isTradeLoading=!0;let h=this.userService.ptfList.portfolioSummaries.filter(v=>v.transactional===!0);
1this.tradeService.checkDaynightMode().pipe(qe(()=>{this.isTradeLoading=!1})).subscribe(v=>{if(v?.tradable){let x=this.userService.userDetails.portfolioSummaryList,E=[];x.forEach(z=>{z.portfolioType==="PORTFOLIO"&&z.transactional&&z.transactional===!0&&E.push(z)});let j={pId:r=="sell"?this.selectedInstrumentsDetails.portfolio:E[0].id,instrumentName:this.selectedInstrumentsDetails.instrumentName,instrumentCode:this.selectedInstrumentsDetails.isin,instrumentCodeOriginal:this.selectedInstrumentsDetails.instrumentCode},ee="/secure/trade/"+i+"/"+r;this.router.navigate([ee,{tradeData:JSON.stringify(j)}]),this.modalService.hasOpenModals()&&(this.modalRef?this.modalRef.dismiss():this.modalService.dismissAll())}else{let x="trade.daynightcheck.error";this.userService.hasFeature(this.featureToggle.EBK_TRADE_EXTENSION)&&(x="trade.daynightcheck.time.error");let E=this.modalService.open(vt,{backdrop:"static",keyboard:!1,centered:!0});E.componentInstance.popUpType="info",E.componentInstance.popUpTitle="label.info",E.componentInstance.popUpContent=x,E.componentInstance.popUpButton="label.ok"}})}static{this.\u0275fac=function(i){return new(i||t)(u(fe),u(G),u(yt),u(U),u(A),u(V),u(D),u(_e),u(k))}}static{this.\u0275cmp=O({type:t,selectors:[["app-equity-details"]],standalone:!1,decls:40,vars:46,consts:[["id","equityDetailsPopup"],[1,"modal-header"],[1,"modal-title"],[2,"float","right"],[1,"icon","icon-close","iconStyle",3,"click"],["id","modelContent",1,"modal-body"],[1,"row"],[1,"col-6"],[4,"ngIf"],["class","errordiv",4,"ngIf"],["class","spinner",4,"ngIf"],[1,"col-12"],[1,"btn","btn-light","equity-btn","col-12",3,"click","disabled","ngClass"],[1,"watchlist-label-container"],[1,"label-text"],[1,"ribbon"],[3,"ngClass"],["class","row",4,"ngIf"],["class","row mt-5",4,"ngIf"],[1,"col-12",3,"infoChartParams","infoSection","showLastChartOption","marketBcCode"],[1,"related-news"],[3,"type","relateNewsIsinsList"],[1,"search-result"],[1,"col-6","text-start","box-container"],[1,"box-body","no-border"],[1,"label"],[1,"textStyle"],[1,"box-body"],[1,"box-body-noborder"],[1,"errordiv"],[1,"spinner"],[1,"lds-ellipsis"],[1,"row","sellOrBuy",2,"margin-left","25px"],["type","button","class","btn btn-outline-warning col-5","style","color: #ffc107 ; margin-right: 33px; border: 1px solid #ffc107 !important;height: 40px;",3,"click",4,"ngIf"],["type","button",1,"btn","btn-outline-success","col-5",2,"color","#28a745","border","1px solid #28a745 !important",3,"click"],["type","button",1,"btn","btn-outline-warning","col-5",2,"color","#ffc107","margin-right","33px","border","1px solid #ffc107 !important","height","40px",3,"click"],[1,"row","mt-5"],[1,"desknote-label"],[1,"col-12",3,"noRecord","isins"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1)(2,"h4",2),p(3),l(4,"translate"),a(),s(5,"span",3)(6,"em",4),b("click",function(){return r.activeModal.close("Close click")}),a()()(),s(7,"div",5)(8,"div",6)(9,"div",7),_(10,bi,133,130,"ng-container",8)(11,Si,3,3,"div",9)(12,Pi,6,0,"div",10),a(),s(13,"div",7)(14,"div",6)(15,"div",11)(16,"div")(17,"button",12),b("click",function(){return r.editWatchList()}),s(18,"div",13)(19,"span",14),p(20),l(21,"translate"),l(22,"uppercase"),l(23,"translate"),l(24,"uppercase"),l(25,"translate"),l(26,"uppercase"),a(),s(27,"span",15),y(28,"em",16),a()()()(),_(29,Ii,6,0,"div",10),a()(),_(30,Oi,8,6,"div",17)(31,Li,6,6,"div",18),s(32,"div",6),y(33,"app-infochart",19),a()()(),s(34,"div",6)(35,"div",11)(36,"label",20),p(37),l(38,"translate"),a(),y(39,"app-news",21),a()()()()),i&2&&(n(3),g(d(4,24,r.popUpTitle)),n(7),o("ngIf",r.instrumentMarketData&&(r.instrumentMarketData==null?null:r.instrumentMarketData.length)!==0),n(),o("ngIf",r.isMarketDataApiFailed),n(),o("ngIf",r.loader),n(4),q("padding","0 24px 24px"),n(),o("disabled",r.errorStatusRetrieval)("ngClass",Ee(40,wi,!r.isAddedToWatchList,r.isAddedToWatchList||r.errorStatusRetrieval)),n(3),g(r.errorStatusRetrieval?d(22,28,d(21,26,"sa.addToWatchlist")):r.isAddedToWatchList?d(26,36,d(25,34,"sa.removeFromWatclist")):d(24,32,d(23,30,"sa.addToWatchlist"))),n(8),o("ngClass",Ee(43,Mi,r.isAddedToWatchList,!r.isAddedToWatchList)),n(),o("ngIf",r.watchListLo
1ader),n(),o("ngIf",r.istradeEnabled),n(),o("ngIf",!r.noDesknote&&r.isEquityEnabled),n(2),o("infoChartParams",r.infoChartParams)("infoSection",!1)("showLastChartOption",!1)("marketBcCode",r.bcCode),n(),q("margin-top","40px")("margin-bottom","24px"),n(3),g(d(38,38,"sa.relatedNews")),n(2),o("type","related")("relateNewsIsinsList",r.isinsCode))},dependencies:[H,L,xe,Ot,Me,W,T,ve],styles:[".modal-title[_ngcontent-%COMP%]{line-height:1.33}.modal-body[_ngcontent-%COMP%]{text-align:justify;max-height:650px;min-height:600px;overflow-y:auto}.modal-body[_ngcontent-%COMP%]   .address-group[_ngcontent-%COMP%]{display:flex}.search-result[_ngcontent-%COMP%]{background-color:#f9f9f9;padding:4px 24px 24px}.related-news[_ngcontent-%COMP%]{color:#6bbbae;font-stretch:expanded;font-size:17px;text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:0 24px 24px}.desknote-label[_ngcontent-%COMP%]{font-size:10px;font-weight:700;font-style:normal;font-stretch:expanded;line-height:normal;letter-spacing:2px;color:#00698e;display:inline-block;padding:0 0 0 39px}.equity-btn[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #6BBBAE;padding:14px 30px;font-size:12px;font-stretch:expanded;letter-spacing:1px;height:48px;display:flex;justify-content:center;align-items:center}.add-watchlist[_ngcontent-%COMP%]{color:#6bbbae}.watchlist-label-container[_ngcontent-%COMP%]{display:flex;align-items:center}.watchlist-label-container[_ngcontent-%COMP%]   .label-text[_ngcontent-%COMP%]{position:relative;right:5px;top:3px}.watchlist-label-container[_ngcontent-%COMP%]   .ribbon[_ngcontent-%COMP%]{position:relative;top:4px}.remove-watchlist[_ngcontent-%COMP%]{color:#9b9b9b;border:1px solid #9b9b9b}.infochart-wrap[_ngcontent-%COMP%]{padding:10px 24px 24px}.iconStyle[_ngcontent-%COMP%]{font-size:18px;color:#979797;cursor:pointer}.sellOrBuy[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{color:#fff!important}.errordiv[_ngcontent-%COMP%]{padding-top:20px;text-align:center}"]})}}return t})();var Ti=t=>({"watchlist-wrap":!0,"min-cont-height":t}),Rt=t=>({cnt:t}),Se=()=>({"padding.px":24}),Ft=()=>({"width.%":100});function ki(t,c){if(t&1){let e=P();s(0,"em",7),b("click",function(){w(e);let r=m(2);return M(r.editWidget())}),a()}}function Di(t,c){if(t&1&&(s(0,"span",15),p(1),l(2,"currencyPipe"),a()),t&2){let e=m().$implicit,i=m(3);n(),g(I(2,1,i.formatValue(e.lastPrice),"number"))}}function Bi(t,c){t&1&&(s(0,"span",15),p(1,"-"),a())}function Ni(t,c){if(t&1&&(s(0,"span",21),p(1),l(2,"currencyPipe"),a()),t&2){let e=m(2).$implicit,i=m(3);o("ngClass",i.badgeClass(e.change)),n(),S("",I(2,2,e==null?null:e.change,"number"),"%")}}function Fi(t,c){if(t&1&&(s(0,"span",21),p(1,"-"),a()),t&2){let e=m(2).$implicit,i=m(3);o("ngClass",i.badgeClass(e.change))}}function Ri(t,c){if(t&1&&(s(0,"td",19),_(1,Ni,3,5,"span",20)(2,Fi,2,1,"span",20),a()),t&2){let e=m().$implicit;n(),o("ngIf",(e==null?null:e.change)!=""),n(),o("ngIf",(e==null?null:e.change)==="")}}function qi(t,c){if(t&1&&(s(0,"td",19)(1,"span",21),p(2),l(3,"currencyPipe"),a()()),t&2){let e=m().$implicit,i=m(3);n(),o("ngClass",i.badgeClass(i.getPercentage(e))),n(),S("",I(3,2,i.formatValue(i.getPercentage(e)),"number"),"%")}}function Wi(t,c){if(t&1){let e=P();s(0,"tr",12),b("click",function(){let r=w(e).$implicit,h=m(3);return M(h.getInstrumentDetails(r))}),s(1,"td",13)(2,"span",14),p(3),a(),s(4,"div",15),p(5),a()(),s(6,"td",16),_(7,Di,3,4,"span",17)(8,Bi,2,0,"span",17),a(),_(9,Ri,3,2,"td",18)(10,qi,4,5,"td",18),a()}if(t&2){let e=c.$implicit,i=m(3);n(3),g(i.getIsin(e==null?null:e.code)),n(2),g(i.getInstrumentName(e==null?null:e.code)),n(2),o("ngIf",(e==null?null:e.lastPrice)!=""),n(),o("ngIf",(e==null?null:e.lastPrice)===""),n(),o("ngIf",i.isSixMarketDataEnabled),n(),o("ngIf",!i.isSixMarketDataEnabled)}}function Vi(t,c){if(t&1&&(s(0,"span",15),p(1),l(2,"currencyPipe"),a()),t&2){let e=m().$implicit,i=m(3);n(),g(I(2,1,i.formatValue(e==null?null:e.lastPrice),"number"))}}function Ai(t,c){t&1&&(s(0,"span",15),p(1,"-"),a())}function Ui(t,c){if(t&1&&(s(0,"span",21),p(1),l(2,"currencyPipe"),a()),t&2){let e=m(2).$implicit,i=m(3);o("ngClass",i.badgeClass(e.change)),n(),S("",I(2,2,e==null?null:e.change,"number"),"%")}}function ji(t,c){if(t&1&&(s(0,"span",21),p(1,"-"),a()),t&2){let e=m(2).$implicit,i=m(3);o("ngClass",i.badgeClass(e.change))}}function zi(t,c){if(t&1&&(s(0,"td",19),_(1,Ui,3,5,"span",20)(2,ji,2,1,"span",20),a()),t&2){let e=m().$implicit;n(),o("ngIf",(e==null?null:e.change)!=""),n(),o("ngIf",(e==null?null:e.change)==="")}}function Hi(t,c){if(t&1&&(s(0,"td",19)(1,"span",21),p(2),l(3,"currencyPipe"),a()()),t&2){let e=m().$implicit,i=m(3);n(),o("ngClass",i.badgeClass(i.getPercentage(e))),n(),S("",I(3,2,i.formatValue(i.getPercentage(e)),"number"),"%")}}function Ki(t,c){if(t&1){let e=P();s(0,"tr",12),b("click",function(){let r=w(e).$implicit,h=m(3);return M(h.getInstrumentDetails(r))}),s(1,"td",13)(2,"span",14),p(3),a(),s(4,"div",15),p(5),a()(),s(6,"td",16),_(7,Vi,3,4,"span",17)(8,Ai,2,0,"span",17),a(),_(9,zi,3,2,"td",18)(10,Hi,4,5,"td",18),a()}if(t&2){let e=c.$implicit,i=m(3);n(3),g(i.getIsin(e==null?null:e.code)),n(2),g(i.getInstrumentName(e==null?null:e.code)),n(2),o("ngIf",(e==null?null:e.lastPrice)!=""),n(),o("ngIf",(e==null?null:e.lastPrice)===""),n(),o("ngIf",i.isSixMarketDataEnabled),n(),o("ngIf",!i.isSixMarketDataEnabled)}}function $i(t,c){if(t&1&&(s(0,"div",8)(1,"div",9)(2,"table",10)(3,"tbody"),_(4,Wi,11,6,"tr",11),l(5,"slice"),a()()(),s(6,"div",9)(7,"table",10)(8,"tbody"),_(9,Ki,11,6,"tr",11),l(10,"slice"),a()()()()),t&2){let e=m(2);n(),o("ngStyle",$(14,Se)),n(),o("ngStyle",$(15,Ft)),n(2),o("ngForOf",Y(5,6,e.watchListData,e.limitStartRight,e.limitEndRight)),n(2),o("ngStyle",$(16,Se)),n(),o("ngStyle",$(17,Ft)),n(2),o("ngForOf",Y(10,
110,e.watchListData,e.limitStartLeft,e.limitEndLeft))}}function Yi(t,c){t&1&&(f(0),s(1,"div",22)(2,"span"),p(3),l(4,"translate"),a()(),C()),t&2&&(n(3),g(d(4,1,"sa.watchlist.noitem")))}function Qi(t,c){t&1&&(f(0),s(1,"div",22)(2,"span"),p(3),l(4,"translate"),a()(),C()),t&2&&(n(3),g(d(4,1,"sa.watchlist.error")))}function Xi(t,c){t&1&&(s(0,"div",23)(1,"div",24),y(2,"div")(3,"div")(4,"div")(5,"div"),a()())}function Ji(t,c){if(t&1&&(s(0,"div",2)(1,"div",3),_(2,ki,1,0,"em",4),a(),s(3,"div",2),_(4,$i,11,18,"div",5)(5,Yi,5,3,"ng-container",1)(6,Qi,5,3,"ng-container",1)(7,Xi,6,0,"div",6),a()()),t&2){let e=m();o("ngClass",N(7,Ti,e.watchListData.length>0&&!e.isServiceFailed&&!e.showLoader)),n(2),o("ngIf",!e.showLoader&&e.watchListData.length>0),n(),o("ngClass",N(9,Rt,e.watchListData.length>0&&!e.isServiceFailed&&!e.showLoader)),n(),o("ngIf",e.watchListData.length>0&&!e.isServiceFailed&&!e.showLoader),n(),o("ngIf",e.watchListData.length===0&&!e.isServiceFailed&&!e.parentLoader&&!e.showLoader),n(),o("ngIf",e.isServiceFailed),n(),o("ngIf",(e.showLoader||e.parentLoader)&&!e.isServiceFailed)}}function Gi(t,c){if(t&1){let e=P();s(0,"div",30)(1,"div",31)(2,"em",32),b("click",function(){w(e);let r=m(2);return M(r.closeSettings())}),a()()()}}function Zi(t,c){if(t&1){let e=P();s(0,"div")(1,"div",34)(2,"label",35)(3,"span",36),p(4),a(),s(5,"input",37),b("change",function(r){let h=w(e).$implicit,v=m(3);return M(v.onOptionChange(r,h))}),a(),y(6,"span",38),a()()()}if(t&2){let e=c.$implicit,i=c.index;n(4),g(e.name),n(),o("id","check"+i)("checked",!0)}}function en(t,c){if(t&1){let e=P();s(0,"div")(1,"div",34)(2,"label",35)(3,"span",36),p(4),a(),s(5,"input",37),b("change",function(r){let h=w(e).$implicit,v=m(3);return M(v.onOptionChange(r,h))}),a(),y(6,"span",38),a()()()}if(t&2){let e=c.$implicit,i=c.index;n(4),g(e.name),n(),o("id","check"+i)("checked",!0)}}function tn(t,c){if(t&1&&(f(0),s(1,"div",9),_(2,Zi,7,3,"div",33),l(3,"slice"),a(),s(4,"div",9),_(5,en,7,3,"div",33),l(6,"slice"),a(),C()),t&2){let e=m(2);n(),o("ngStyle",$(12,Se)),n(),o("ngForOf",Y(3,4,e.watchListItems,e.limitStartRight,e.limitEndRight)),n(2),o("ngStyle",$(13,Se)),n(),o("ngForOf",Y(6,8,e.watchListItems,e.limitStartLeft,e.limitEndLeft))}}function nn(t,c){t&1&&(f(0),s(1,"div",22)(2,"span"),p(3),l(4,"translate"),a()(),C()),t&2&&(n(3),g(d(4,1,"sa.watchlist.noitem")))}function an(t,c){t&1&&(s(0,"div",39)(1,"span",40),p(2),l(3,"translate"),a()()),t&2&&(n(2),g(d(3,1,"sa.watchlist.error")))}function rn(t,c){t&1&&(s(0,"div",39)(1,"span",40),p(2),l(3,"translate"),a()()),t&2&&(n(2),g(d(3,1,"sa.watchlist.error")))}function sn(t,c){if(t&1){let e=P();s(0,"div",41)(1,"button",42),b("click",function(){w(e);let r=m(2);return M(r.saveSettings())}),p(2),l(3,"translate"),l(4,"uppercase"),a()()}if(t&2){let e=m(2);n(),o("disabled",e.showLoader)("disabled",!e.selectedList.isin.length),n(),g(d(4,5,d(3,3,"label.done")))}}function on(t,c){t&1&&(s(0,"div",23)(1,"div",24),y(2,"div")(3,"div")(4,"div")(5,"div"),a()())}function cn(t,c){if(t&1&&(f(0),s(1,"div",25),_(2,Gi,3,0,"div",26),s(3,"div",2)(4,"div",27),_(5,tn,7,14,"ng-container",1),a(),_(6,nn,5,3,"ng-container",1)(7,an,4,3,"div",28)(8,rn,4,3,"div",28)(9,sn,5,7,"div",29),a(),_(10,on,6,0,"div",6),a(),C()),t&2){let e=m();n(2),o("ngIf",!e.showLoader),n(),o("ngClass",N(8,Rt,!e.showLoader&&!e.isServiceFailed&&!e.saveError&&e.watchListItems.length>0)),n(2),o("ngIf",!e.showLoader&&!e.isServiceFailed&&!e.saveError&&e.watchListItems.length>0),n(),o("ngIf",e.watchListItems.length===0&&!e.isServiceFailed&&!e.showLoader&&!e.saveError),n(),o("ngIf",e.isServiceFailed),n(),o("ngIf",e.saveError),n(),o("ngIf",!e.isServiceFailed&&!e.showLoader&&!e.saveError&&e.watchListItems.length>0),n(),o("ngIf",e.showLoader)}}var qt=(()=>{class t{constructor(e,i,r,h,v,x){this.myNewsFeedService=e,this.utilService=i,this.translateService=r,this.modalService=h,this.userService=v,this.tradeService=x,this.isServiceFailed=!1,this.editWatchlist=new R(!1),this.watchlistEdited=new R(!1),this.modalClosed=new R,this.watchListData=[],this.saveError=!1,this.showLoader=!0,this.commoditiesList=[],this.commoditiesDispList=[],this.limitStartRight=0,this.limitEndRight=0,this.limitStartLeft=0,this.limitEndLeft=0,this.selectedList={isin:[],name:[]},this.tempList=[],this.showSettings=!1,this.searchType=this.userService.defaultParams.bveInstrumentSearch==="true"?"bve_search":"search",this.isSixMarketDataEnabled=this.userService.getSixMarketDataEnabled(),this.editWatchListErrorHandler=()=>
1{this.showLoader=!1,this.saveError=!0,this.utilService.notifyUser(this.translateService.instant("sa.watchlist.remove.err.title"),this.translateService.instant("sa.mywatchlist.remove.err.desc"))},this.instrumentCategory=ae.EQUITY}ngOnInit(){}ngOnChanges(e){console.log("watclist change object is",this.watchListItems,this.watchListCodes,this.watchListIsinBcCodes,e);let i=this.isSixMarketDataEnabled?this.watchListIsinBcCodes:this.watchListCodes;this.getWatchListData(i)}badgeClass(e){if(e>0||e==0)return"badge-green";if(e<0)return"badge-red";if(typeof e>"u")return"badge-blue"}formatValue(e){return typeof e>"u"?0:e}editWidget(){this.showSettings=!0,this.selectedList={isin:[],name:[]},this.editWatchlist.emit(!0)}getWatchListData(e){if(e){this.showLoader=!0,this.myNewsFeedService.getWatchListDetails(e).subscribe(i=>{console.log("watchlist latest price is",i,this.watchListItems),this.assignLimits(i.length),this.showLoader=!1,this.watchListData=i,this.selectedList={isin:[],name:[]}},i=>{this.showLoader=!1,this.isServiceFailed=!0,console.log("Watchlist Error occurred")});return}this.showLoader=!1}getInstrumentName(e){return this.isSixMarketDataEnabled?this.watchListItems.filter(i=>i.isinBc===e)[0].name:this.watchListItems.filter(i=>i.code===e)[0].name}getPercentage(e){return(+e.lastPrice-+e.prevClose)/+e.prevClose*100}getIsin(e){return this.isSixMarketDataEnabled?this.watchListItems.filter(i=>i.isinBc===e)[0].isin:this.watchListItems.filter(i=>i.code===e)[0].isin}closeSettings(){this.showSettings=!1,this.editWatchlist.emit(!1)}saveSettings(){this.selectedList.isin.join(",")&&this.removeFromWatchList()}removeFromWatchList(){this.showLoader=!0,this.myNewsFeedService.removeFromWatchList(this.selectedList.isin.join(",")).subscribe(e=>{this.utilService.notifyUser(this.translateService.instant("label.success"),this.selectedList?.name.join(",")+" "+this.translateService.instant("sa.watchlist.remove.multiple.success")),this.watchlistEdited.emit(!0)},this.editWatchListErrorHandler)}assignLimits(e){if(e%2===0){this.limitEndRight=e/2,this.limitStartLeft=e/2,this.limitEndLeft=e,console.log("Limits are,",e,this.limitStartRight,this.limitEndRight,this.limitStartLeft,this.limitEndLeft);return}this.limitEndRight=e/2+1,this.limitStartLeft=e/2+1,this.limitEndLeft=e}onOptionChange(e,i){e.srcElement.checked?(this.selectedList.isin.splice(this.selectedList.isin.indexOf(this.isSixMarketDataEnabled?i.isinBc:i.code),1),this.selectedList.name.splice(this.selectedList.name.indexOf(i.name),1)):(this.selectedList.isin.push(this.isSixMarketDataEnabled?i.isinBc:i.code),this.selectedList.name.push(i.name)),console.log("Items to be removed from watchlist",this.selectedList,this.selectedList.isin.join(","),this.selectedList.name.join(","),e)}getInstrumentDetails(e){this.showLoader=!0,console.log("Watchlist instrument",e),this.tradeService.searchInstruments(this.getIsin(e?.code),"basic","",this.searchType,this.instrumentCategory).subscribe(i=>{this.showEquityDetails(i[0]),this.showLoader=!0},()=>{this.utilService.notifyUser(this.translateService.instant("label.error"),this.translateService.instant("instrumentsearch.service.error")),this.showLoader=!0})}showEquityDetails(e){console.log("Equity selected instrument is",e);let i=this.modalService.open(be,{size:"lg",centered:!0,windowClass:"modal-md"});i&&(i.componentInstance.loader=!0,i.componentInstance.searchType=this.searchType,i.componentInstance.selectedInstruments=e),console.log("Selected instrument is,",e),i.result.then(()=>{console.log("Modal pop up was closed"),this.showLoader=!0,this.modalClosed.emit(!0)}).catch(()=>{console.log("Modal pop up was dismissed")})}static{this.\u0275fac=function(i){return new(i||t)(u(U),u(A),u(V),u(k),u(D),u(G))}}static{this.\u0275cmp=O({type:t,selectors:[["app-my-watch-list"]],inputs:{watchListCodes:"watchListCodes",isServiceFailed:"isServiceFailed",watchListItems:"watchListItems",parentLoader:"parentLoader",watchListIsinBcCodes:"watchListIsinBcCodes"},outputs:{editWatchlist:"editWatchlist",watchlistEdited:"watchlistEdited",modalClosed:"modalClosed"},standalone:!1,features:[de],decls:2,vars:2,consts:[[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["appAnalyticsId","marketNewsPage_Click_Settings_MyWatchlist_btn",1,"edit-watchlist-head"],["class","icon icon-more pull-right setting-btn",3,"click",4,"ngIf"],["class","row",4,"ngIf"],["class","spinner",4,"ngIf"],[1,"icon","icon-more","pull-right","setting-btn",3,"click"],[1,"row"],[1,"col-6",3,"ngStyle"],[3,"ngStyle"],["class","watchlist-row",3,"click",4,"ngFor","ngForOf"],[1,"watchlist-row",3,"click"],[1,"left"],[1,"highlight-content","cursor-pointer"],[1,"curs
1or-pointer"],[1,"right","tdspace"],["class","cursor-pointer",4,"ngIf"],["class","right",4,"ngIf"],[1,"right"],["class","badge cursor-pointer",3,"ngClass",4,"ngIf"],[1,"badge","cursor-pointer",3,"ngClass"],[1,"no-data"],[1,"spinner"],[1,"lds-ellipsis"],[1,"widget-wrap","mb24"],["class","widget-head",4,"ngIf"],[1,"padb8","row"],["class","col-12 no-data",4,"ngIf"],["class","txtcenter padt8",4,"ngIf"],[1,"widget-head"],[2,"float","right"],[1,"icon","icon-close","pull-right","setting-btn","cursorpntr",3,"click"],[4,"ngFor","ngForOf"],[1,"cursorpntr","widgetoptions"],[1,"container"],[1,"instrument-name"],["type","checkbox",3,"change","id","checked"],[1,"checkmark"],[1,"col-12","no-data"],[1,"error"],[1,"txtcenter","padt8"],[1,"btn","btn-primary","wmis-btn",3,"click","disabled","appAnalyticsId"]],template:function(i,r){i&1&&_(0,Ji,8,11,"div",0)(1,cn,11,10,"ng-container",1),i&2&&(o("ngIf",!r.showSettings),n(),o("ngIf",r.showSettings))},dependencies:[H,X,L,Ye,Mt,W,he,T,ve],styles:[".watchlist-wrap[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;font-family:BNPPSans;margin:0;color:#333}.watchlist-wrap[_ngcontent-%COMP%]   .min-cont-height[_ngcontent-%COMP%]{min-height:200px}.watchlist-wrap[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{position:relative;width:100%}.watchlist-wrap[_ngcontent-%COMP%]   .middle[_ngcontent-%COMP%]{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center}.watchlist-wrap[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]{opacity:.3}.watchlist-wrap[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{z-index:1;position:relative}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:8px 0;font-size:16px;letter-spacing:.4px;color:#333}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{font-weight:300}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{padding:10px 10px 5px;text-align:center;border-radius:0;color:#fff;font-weight:300;font-size:inherit;width:65px}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%]   .badge-green[_ngcontent-%COMP%]{background-color:#66a60c}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%]   .badge-red[_ngcontent-%COMP%]{background-color:#d0021b}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%]   .badge-blue[_ngcontent-%COMP%]{background-color:#006788}.watchlist-wrap[_ngcontent-%COMP%]   .watchlist-row[_ngcontent-%COMP%]   .highlight-content[_ngcontent-%COMP%]{padding-bottom:5px;font-weight:400;display:inline-block}.watchlist-wrap[_ngcontent-%COMP%]   .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.watchlist-wrap[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-top-width:0px;font-weight:300}.watchlist-wrap[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{text-align:right}.watchlist-wrap[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{text-align:left}.watchlist-wrap[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   .tdspace[_ngcontent-%COMP%]{padding:0 16px 0 5px;font-weight:400}.watchlist-wrap[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{width:65px}.watchlist-wrap[_ngcontent-%COMP%]   table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{line-height:1.2}.watchlist-wrap[_ngcontent-%COMP%]   .spin[_ngcontent-%COMP%]{vertical-align:bottom;font-size:18px}.watchlist-wrap[_ngcontent-%COMP%]   .edit-watchlist-head[_ngcontent-%COMP%]{color:#6bbbae;font-stretch:expanded;font-size:17px;text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:24px}.watchlist-wrap[_ngcontent-%COMP%]   .cnt[_ngcontent-%COMP%]{padding:0 25px 25px}.watchlist-wrap[_ngcontent-%COMP%]   .pull-right[_ngcontent-%COMP%]{float:right}.watchlist-wrap[_ngcontent-%COMP%]   .setting-btn[_ngcontent-%COMP%]{color:#979797;cursor:pointer}.watchlist-wrap[_ngcontent-%COMP%]   .text-uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.widget-wrap[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:BNPPSans;background-color:#fff;margin:0;color:#333}.widget-wrap[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{z-index:1;position:relative}.widget-wrap[_ngcontent-%COMP%]   .widget-head[_ngcontent-%COMP%]{color:#6bbbae;font-stretch:expanded;font-size:17px;text-transform:uppercase;letter-spacing:.4px;text-align:left;padding:24px}.widget-wrap[_ngcontent-%COMP%]   .cnt[_ngcontent-%COMP%]{padding:24px}.widget-wrap[_ngcontent-%COMP%]   .pull-right[_ngcontent-%COMP%]{float:right}.widget-wrap[_ngcontent-%COMP%]   .setting-btn[_ngcontent-%COMP%]{color:#979797}
1.widget-wrap[_ngcontent-%COMP%]   .instrument-name[_ngcontent-%COMP%]{width:218px;height:19px;font-family:BNPPSans;font-size:16px;font-weight:300;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;color:#333;padding-top:5px;display:inline-block}.btn-primary.disabled[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]:disabled{color:#fff}.error[_ngcontent-%COMP%]{font-weight:300;letter-spacing:.44px;color:#333;font-size:16px;font-stretch:normal;font-style:normal}.no-data[_ngcontent-%COMP%]{display:flex;background-color:#fff;height:88px;justify-content:center;align-items:center}.no-data[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:300;letter-spacing:.44px;color:#333;font-size:16px;font-stretch:normal;font-style:normal;text-align:center;padding:24px}.icon[_ngcontent-%COMP%]{font-size:12px}.widgetoptions[_ngcontent-%COMP%]{font-family:BNPPSans;font-size:16px;font-weight:300;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#333;padding-bottom:8px}"]})}}return t})();function pn(t,c){t&1&&(s(0,"em",10),p(1),l(2,"translate"),a()),t&2&&(n(),g(d(2,1,"label.inprogress")))}function dn(t,c){if(t&1&&(s(0,"div",11)(1,"div",12),y(2,"ngb-highlight",13),a()()),t&2){let e=c.result,i=c.term;n(2),o("result",e.instrumentName)("term",i)}}function mn(t,c){t&1&&(s(0,"div",12)(1,"div",14),p(2),l(3,"translate"),a()()),t&2&&(n(2),g(d(3,1,"trade.noInstrument.found")))}function hn(t,c){t&1&&(s(0,"div",12)(1,"div",14),p(2),l(3,"translate"),a()()),t&2&&(n(2),g(d(3,1,"instrumentsearch.service.error")))}var Wt=(()=>{class t{constructor(e,i,r,h,v){this.tradeService=i,this.userService=r,this.modalService=h,this.utilService=v,this.featureToggle=F.featureToggle,this.searching=!1,this.searchFailed=!1,this.isSearchClicked=!1,this.noResult=!1,this.advanceSearch=!1,this.modalClosed=new R,this.isBasicSearch=!0,this.subscriptions=[],this.searchType=this.userService.defaultParams.bveInstrumentSearch==="true"?"bve_search":"search",this.search=x=>x.pipe(Fe(800),Re(),pe(E=>{E.length<2?(this.searching=!1,this.cleanSearchedData()):this.searching=!0}),We(E=>E.length<2?this.emtyData():this.tradeService.searchInstruments(E,this.instrumentSearchType,this.advanceSearchParam,this.searchType,this.instrumentCategory).pipe(pe(j=>{this.searchFailed=!1,j&&j.length>0?(this.searching=!1,this.noResult=!1,this.instrumentMarketDataParent=j):(this.noResult=!0,this.cleanSearchedData())}),Ne(()=>(this.searchFailed=!0,this.cleanSearchedData(),this.noResult=!1,Ie([]))))),pe(()=>this.searching=!1))}ngOnChanges(e){this.model=e.instrumentName.currentValue}ngOnInit(){this.isBasicSearch=this.searchInput&&this.searchInput.isBasicSearch?this.searchInput.isBasicSearch:!1,this.instrumentName=this.searchInput&&this.searchInput.instrumentCode?this.searchInput.instrumentCode:"",this.instrumentCategory=this.searchInput&&this.searchInput.assetType?this.searchInput.assetType:bt.EQUITY,this.cleanSearchedData(),this.instrumentName!==""&&this.model===""?this.model=this.instrumentName:this.instrumentName=this.model}getInstrumentDetails(e){console.log("Selected Instruments",e),this.subscriptions.push(De(500).subscribe(i=>this.model="")),this.handleClick(e)}emtyData(){return Ie([])}formatter(e){return e.instrumentName?e.instrumentName:e}cleanSearchedData(){this.tradeService.setCleanvalue(),this.isSearchClicked=!1,this.instrumentMarketData=[];let e={};e.exchangeOpen=!0}handleClick(e){let i=this.modalService.open(be,{size:"lg",centered:!0,windowClass:"modal-md"});i&&(i.componentInstance.loader=!0,i.componentInstance.searchType=this.searchType,i.componentInstance.selectedInstruments=e),console.log("Selected instrument is,",e),i.result.then(r=>{console.log("Modal pop up was closed"),this.modalClosed.emit(!0)}).catch(r=>{console.log("Modal pop up was dismissed")})}ngOnDestroy(){this.utilService.handleUnsubscription(this.subscriptions)}static{this.\u0275fac=function(i){return new(i||t)(u(Ge),u(G),u(D),u(k),u(A))}}static{this.\u0275cmp=O({type:t,selectors:[["app-equity-search"]],inputs:{tradeType:"tradeType",instrumentName:"instrumentName",hasAdditionalFilters:"hasAdditionalFilters",searchInput:"searchInput"},outputs:{modalClosed:"modalClosed"},standalone:!1,features:[de],decls:15,vars:14,consts:[["instrument",""],[1,"equity-search"],[1,"header"],[1,"col-12","search-bar"],[1,"searchbar-box"],[1,"inner-addon","left-addon"],[1,"left-addon-icon-trade","filter-icon","icon","icon-trade-search","icon2"],["class","right-addon-icon-trade iconless icon1 adv-search",4,"ngIf"],["type","text","id","typeahead-basic","placement","bottom","aria-label","Username","aria-describedby","basic-addon1",1,"no-border","search-textbx","form-control","form-control-lg",3,"selectItem","ngModelChange","ngModel","ngbTypeahead","resultTemplate","inputFormatter","placeholder"],["class","col-12",4,"ngIf"],[1,"right-addon-icon-trade","iconless","icon1","adv-search"],[1,"search-container"],[1,"col-12"],[3,"result","term"],[1,"error-small","mt2"]],template:function(i,r){if(i&1){let h=P();s(0,"div",1)(1,"label",2),p(2),l(3,"translate"),a(),s(4,"div",3)(5,"div",4)(6,"div",5),y(7,"em",6),_(8,pn,3,3,"em",7),s(9,"
1input",8),l(10,"translate"),b("selectItem",function(x){return w(h),M(r.getInstrumentDetails(x))}),ze("ngModelChange",function(x){return w(h),je(r.model,x)||(r.model=x),M(x)}),a()(),_(11,dn,3,2,"ng-template",null,0,Q),a(),_(13,mn,4,3,"div",9)(14,hn,4,3,"div",9),a()()}if(i&2){let h=B(12);n(2),g(d(3,10,"sa.equitySearch")),n(6),o("ngIf",r.searching),n(),o("placeholder",ie(d(10,12,"sa.marketNews.equitySearch"))),Ue("ngModel",r.model),o("ngbTypeahead",r.search)("resultTemplate",h)("inputFormatter",r.formatter),n(4),o("ngIf",r.noResult),n(),o("ngIf",r.searchFailed)}},dependencies:[L,nt,ge,ue,_t,gt,T],styles:[".equity-search[_ngcontent-%COMP%]{padding:24px;background-color:#fff;position:relative}.equity-search[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]{color:#6bbbae;font-stretch:expanded;font-size:17px;text-transform:uppercase;letter-spacing:.4px;text-align:left;margin-bottom:8px}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]{padding:0;background-color:#fff}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .searchbar-box[_ngcontent-%COMP%]{border:1px solid #ced4da}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{background-color:#fff;padding-right:8px;border-radius:0}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-weight:300;letter-spacing:.4px}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .adv-search[_ngcontent-%COMP%]{cursor:pointer;font-size:14px!important;font-weight:300;line-height:1.79;letter-spacing:.2px;color:#6bbbae!important;margin:8px 1px 8px 8px!important;pointer-events:initial!important}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .adv-search[_ngcontent-%COMP%]:hover{color:#41a090!important}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-stretch:expanded;letter-spacing:.4px;color:#979797!important;text-transform:uppercase!important}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{width:100%;max-height:325px;overflow-y:auto}.equity-search[_ngcontent-%COMP%]   .search-bar[_ngcontent-%COMP%]   .pull-right[_ngcontent-%COMP%]{float:right}.equity-search[_ngcontent-%COMP%]   .search-result[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important;background-color:#f6f6f6;margin-top:-2px;min-height:50px;padding:0 5px 10px 15px}.equity-search[_ngcontent-%COMP%]   .inner-addon[_ngcontent-%COMP%]{position:relative;width:100%;height:48px}.equity-search[_ngcontent-%COMP%]   .inner-addon[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:5px;font-size:16px;width:100%}.equity-search[_ngcontent-%COMP%]   .inner-addon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%], .equity-search[_ngcontent-%COMP%]   .inner-addon[_ngcontent-%COMP%]   .iconless[_ngcontent-%COMP%]{color:#cecece;font-size:18px;margin:10px;position:absolute;pointer-events:none}.equity-search[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]::-ms-clear{display:none;width:0;height:0}.equity-search[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%]::-ms-reveal{display:none;width:0;height:0}.equity-search[_ngcontent-%COMP%]   .left-addon[_ngcontent-%COMP%]   .icon2[_ngcontent-%COMP%]{left:0}.equity-search[_ngcontent-%COMP%]   .left-addon[_ngcontent-%COMP%]   .icon1[_ngcontent-%COMP%]{right:0}.equity-search[_ngcontent-%COMP%]   .left-addon-icon-trade[_ngcontent-%COMP%]{padding:5px!important}.equity-search[_ngcontent-%COMP%]   .left-addon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:14px 5px 10px 45px}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.equity-search[_ngcontent-%COMP%]   .left-addon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:14px 5px 15px 45px}}.equity-search[_ngcontent-%COMP%]   .right-addon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:12px 5px 10px 12px}.equity-search[_ngcontent-%COMP%]   .right-addon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{right:0}.equity-search[_ngcontent-%COMP%]   .right-addon-icon-trade[_ngcontent-%COMP%]{padding:5px!important}.equity-search[_ngcontent-%COMP%]   .spinner[_ngcontent-%COMP%]{z-index:1;position:relative}.equity-search[_ngcontent-%COMP%]   .box-container[_ngcontent-%COMP%]{padding:0}.equity-search[_ngcontent-%COMP%]   .box-body[_ngcontent-%COMP%]{padding:0 5px}.equity-search[_ngcontent-%COMP%]   .box-body-noborder[_ngcontent-%COMP%]{border-right:none;padding:0 5px}.equity-search[_ngcontent-%COMP%]   .refresh-container[_ngcontent-%COMP%]{color:#979797;font-size:10px;margin-top:12px;font-stretch:expanded;font-weight:300;letter-spacing:.3px}.equity-search[_ngcontent-%COMP%]   .refresh[_ngcontent-%COMP%]   span.refreshButton[_ngcontent-%COMP%]{text-transform:capitalize;cursor:pointer;text-decoration:underline;font-weight:400}.equity-search[_ngcontent-%COMP%]   .refresh-icon[_ngcontent-%COMP%]{font-size:8px;
1cursor:pointer;text-decoration:none;vertical-align:middle}.equity-search[_ngcontent-%COMP%]   .transparent[_ngcontent-%COMP%]{opacity:.5}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]{font-family:BNPPSans}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   .colfields[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   .colrows[_ngcontent-%COMP%]{padding-left:15px!important}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:10px;font-weight:700;font-stretch:expanded;letter-spacing:1px;text-align:left;color:#979797!important;text-transform:uppercase}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   .normal-weight[_ngcontent-%COMP%]{font-weight:400!important}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{margin-top:4px;border-radius:0;background-color:#fff;border:solid 1px #d8d8d8;font-size:16px;font-weight:300;letter-spacing:.4px;text-align:left;color:#706c6c;padding:12px 5px 10px 12px;cursor:pointer}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   select[_ngcontent-%COMP%] > option[_ngcontent-%COMP%]{font-size:16px;font-weight:300;letter-spacing:.4px;color:#706c6c;margin:10px}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.equity-search[_ngcontent-%COMP%]   .orderby-form[_ngcontent-%COMP%]   .select-custom-nolabel[_ngcontent-%COMP%]:after{right:13px!important}.equity-search[_ngcontent-%COMP%]   .advSearch[_ngcontent-%COMP%]{cursor:pointer;font-family:BNPPSans;font-size:14px;font-weight:300;letter-spacing:.2px;color:#6bbbae;text-decoration:underline}.equity-search[_ngcontent-%COMP%]   .advSearchDisabled[_ngcontent-%COMP%]{cursor:auto!important;color:#999!important;text-decoration:none!important}.equity-search[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:focus{height:48px}.equity-search[_ngcontent-%COMP%]     ngb-typeahead-window{width:100%}"]})}}return t})();var Pe=t=>({"col-12":t});function gn(t,c){t&1&&(f(0),y(1,"app-market-daily-banner"),C())}function un(t,c){if(t&1&&(f(0),_(1,gn,2,0,"ng-container",13),C()),t&2){let e=m(2);n(),o("hasFeature",e.featureToggle.EBK_MNF_MARKET_DAILY)}}function fn(t,c){t&1&&y(0,"app-house-views-list",21),t&2&&o("type","article")}function Cn(t,c){if(t&1&&(s(0,"li",18)(1,"a",19),p(2),l(3,"translate"),l(4,"uppercase"),a(),_(5,fn,1,1,"ng-template",20),a()),t&2){let e=m(3);o("ngClass",N(6,Pe,!e.EBK_MNF_PTF_NEWS||!e.userService.isEnableEquityNews)),n(2),g(d(4,4,d(3,2,"sa.label.houseViews")))}}function vn(t,c){t&1&&y(0,"app-news",21),t&2&&o("type","portfolio")}function xn(t,c){if(t&1&&(s(0,"li",18)(1,"a",19),p(2),l(3,"translate"),l(4,"uppercase"),a(),_(5,vn,1,1,"ng-template",20),a()),t&2){let e=m(3);o("ngClass",N(6,Pe,!e.EBK_WCM_HOUSE_VIEWS)),n(2),g(d(4,4,d(3,2,"dashboard.tabtitle.portfolionews")))}}function yn(t,c){if(t&1&&(f(0),s(1,"div",14)(2,"ul",15,0),_(4,Cn,6,8,"li",16)(5,xn,6,8,"li",16),a(),y(6,"div",17),a(),C()),t&2){let e=B(3),i=m(2);n(4),o("ngIf",i.EBK_WCM_HOUSE_VIEWS),n(),o("ngIf",i.EBK_MNF_PTF_NEWS&&i.userService.isEnableEquityNews),n(),o("ngbNavOutlet",e)}}function wn(t,c){if(t&1){let e=P();s(0,"app-my-watch-list",23),b("editWatchlist",function(r){w(e);let h=m(3);return M(h.changeWatchListTitle(r))})("watchlistEdited",function(r){w(e);let h=m(3);return M(h.refreshWatclist(r))})("modalClosed",function(){w(e);let r=m(3);return M(r.handleWatchlistChange())}),a()}if(t&2){let e=m(3);o("watchListCodes",e.watchListCodes)("watchListIsinBcCodes",e.watchListIsinBcCodes)("watchListItems",e.watchListItems)("isServiceFailed",e.watchlistError)("parentLoader",e.watchlistLoader)}}function Mn(t,c){if(t&1&&y(0,"app-news",24),t&2){let e=m(3);o("type",e.newsType)("relateNewsIsinsList",e.isinsList)}}function bn(t,c){if(t&1&&(f(0),s(1,"div",14)(2,"ul",15,1)(4,"li",22),l(5,"translate"),s(6,"a",19),p(7),l(8,"translate"),a(),_(9,wn,1,5,"ng-template",20),a(),s(10,"li",22),l(11,"translate"),s(12,"a",19),p(13),l(14,"translate"),a(),_(15,Mn,1,2,"ng-template",20),a()(),y(16,"div",17),a(),C()),t&2){let e=B(3),i=m(2);n(4),o("title",ie(d(5,7,i.watchListTitle))),n(3),g(d(8,9,i.watchListTitle)),n(3),o("title",ie(d(11,11,"sa.label.myWatchListNews"))),n(3),g(d(14,13,"sa.label.myWatchListNews")),n(3),o("ngbNavOutlet",e)}}function Sn(t,c){if(t&1&&(f(0),_(1,un,2,1,"ng-container",10)(2,yn,7,3,"ng-container",10)(3,bn,17,15,"ng-container",10),C()),t&2){let e=m();n(),o("ngIf",e.userService.isMktDlyLightEnabled),n(),o("ngIf",e.EBK_WCM_HOUSE_VIEWS||e.EBK_MNF_PTF_NEWS),n(),o("ngIf",e.EBK_MNF_WATCH_LIST)}}function Pn(t,c){if(t&1){let e=P();s(0,"app-top-instrument",25),b("showOrHideTopBuyTopSell",function(r){w(e);let h=m(4);return M(h.showOrHideTopBuyTopSell(r))}),a()}t&2&&o("instrument","Buy")}function In(t,c){if(t&1&&(s(0,"li",18)(1,"a",19),p(2),l(3,"translate"),a(),_(4,Pn,1,1,"ng-template",20),a()),t&2){let e=m(3);o("ngClass",N(4,Pe,e.isTopSellEnabled!==!0)),n(2),g(d(3,2,"sa.label.topBuy"))}}function En(t,c){if(t&1){let e=P();s(0,"app-top-instrument",25),b("showOrHideTopBuyTopSell",function(r){w(e);let h=m(4);return M(h.showOrHideTopBuyTopSell(r))}),a()}t&2&&o("instrument","Sell")}function On(t,c){if(t&1&&(s(0,"li",18)(1,"a",19),p(2),l(3,"translate"),a(),_(4,En,1,1,"ng-template",20),a()),t&2){let e=m(3);o("ngClass",N(4,Pe,e.isTopBuyEnabled!==!0)),n(2),g(d(3,2,"sa.label.topSell"))}}function Ln(t,c){if(t&1&&(f(0),s(1,"ul",15,2),_(3,In,5,6,"li",16)(4,On,5,6,"li",16),a(),y(5,"div",17),C()),t&2){let e=B(2),i=m(2);n(3),o("ngIf",i.isTopBuyEnabled),n(),o("ngIf",i.isTopSellEnabled),n(),o("ngbNavOutlet",e)}}function Tn(t,c){if(t&1&&(f(0),_(1,Ln,6,3,"ng-container",10),C()),t&2){let e=m();n(),o("ngIf",e.EBK_MNF_MY_PEERS&&e.userService.isTopBuySellEnabled)}}function kn(t,c){t&1&&(f(0),y(1,"app-latest-video-banner"),C())}function Dn(t,c){if(t&1){let e=P();f(0),s(1,"div",14)(2,"app-equity-search",26),b("modalClosed",function(){w(e);let r=m(2);return M(r.handleWatchlistChange())}),a()(),C()}}function Bn(t,c){t&1&&(f(0),y(1,"app-house-views-list",21),C()),t&2&&(n(),o("type","audio"))}function Nn(t,c){if(t&1&&(f(0),_(1,kn,2,0,"ng-container",13)(2,Dn,3,0,"ng-container",10)(3,Bn,2,1,"ng-container",13),C()),t&2){let e=m();n(),o("hasFeature",e.featureToggle.EBK_WCM_VIDEO),n(),o("ngIf",e.EBK_MNF_EQUITY_SEARCH),n(),o("hasFeature",e.featureToggle.EBK_WCM_PODCASTS)}}function Fn(t,c){t&1&&(f(0),y(1,"app-latest-research"),C())}function Rn(t,c){if(t&1&&(f(0),_(1,Fn,2,0,"ng-container",13),C()),t&2){let e=m(3);n(),o("hasFeature",e.featureToggle.EBK_MNF_DESKNOTES)}}function qn(t,c){if(t&1&&(f(0),_(1,Rn,2,1,"ng-container",10),C()),t&2){let e=m(2);n(),o("ngIf",e.isEquityEnabled)}}function Wn(t,c){if(t&1&&(f(0),_(1,qn,2,1,"ng-container",10),C()),t&2){let e=m();n(),o("ngIf",e.showLatestResearch)}}function Vn(t,c){t&1&&(s(0,"div",27)(1,"div",28)(2,"div",29),y(3,"div")(4,"div")(5,"div")(6,"div"),a()()())}var Vt=(()=>{class t{constructor(e,i,r,h,v,x,E,j,ee,z){this.userService=e,this.apiService=i,this.myNewsFeedService=r,this.router=h,this.modalService=v,this.analyticService=x,this.equityResearchService=E,this.translate=j,this.cd=ee,this.authApiService=z,this.featureToggle=F.featureToggle,this.isLoading=!1,this.EBK_WCM_HOUSE_VIEWS=!1,this.EBK_MNF_PTF_NEWS=!1,this.EBK_MNF_MY_PEERS=!1,this.EBK_MNF_WATCH_LIST=!1,this.EBK_MNF_EQUITY_SEARCH=!1,this.isinsList="",this.watchListCodes="",this.watchListIsinBcCodes="",this.watchListItems=[],this.newsType="myWatchlist",this.watchListTitle="sa.myWatchlist",this.isDisclaimerAccepted=!1,this.watchlistError=!1,this.watchlistLoader=!0,this.isSwissSite=!1,this.isTopSellEnabled=!0,this.isTopBuyEnabled=!0,this.showLatestResearch=!1,this.isADVmandateType=!1,this.isADVEmandateType=!1,this.isDPMorEXECmandateType=!1,this.bannerData={pageType:"",title1:"sa.label.mrktNews.title",showMore:!1}}ngOnInit(){let e=this.analyticService.setPagedata("marketnewsPage");callAnalyticsFn(e,"OnPageLoad"),this.getWatchList(),this.setFuncCode(),this.isDisclaimerAccepted=this.userService.isEquityDocDisclaimerAcceptted,this.router.events.subscribe(()=>""),this.isSwissSite=this.apiService.appDefaultParams?.site?.toUpperCase()===ne.BPS,this.isSwissSite?(this.userService.ptfList.portfolioSummaries.forEac
1h(i=>{i.mandateType===re.ADV?this.isADVmandateType=!0:i.mandateType===re.ADVE?this.isADVEmandateType=!0:(i.mandateType===re.DPM||i.mandateType===re.EXEC)&&(this.isDPMorEXECmandateType=!0)}),this.getSuitabilityRules()):(this.isADVmandateType=!0,this.isADVEmandateType=!0,this.showLatestResearch=!0,this.isDPMorEXECmandateType=!0)}showOrHideTopBuyTopSell(e){this.isTopSellEnabled=e.sell,this.isTopBuyEnabled=e.buy,this.cd.detectChanges()}getSuitabilityRules(){this.isLoading=!0;let e=this.userService.ptfList?.portfolioSummaries[0]?.id;this.myNewsFeedService.getSuitabilityRulesRes(e).subscribe(i=>{this.suitabilityRules=i,this.showLatestResearch=this.suitabilityRules?.portfolioSuitabilityProfiles.some(r=>r.mifidKnowledge030==="Known"),this.isLoading=!1},()=>{this.isLoading=!1,console.log("Error getting Suitability Rules")})}ngAfterViewInit(){this.setTimeout=setTimeout(()=>{this.showDisclaimer()},2e3)}setFuncCode(){this.EBK_WCM_HOUSE_VIEWS=this.userService.hasFeature(F.featureToggle.EBK_WCM_HOUSE_VIEWS),this.EBK_MNF_PTF_NEWS=this.userService.hasFeature(F.featureToggle.EBK_MNF_PTF_NEWS),this.EBK_MNF_MY_PEERS=this.userService.hasFeature(F.featureToggle.EBK_MNF_MY_PEERS),this.EBK_MNF_WATCH_LIST=this.userService.hasFeature(F.featureToggle.EBK_MNF_WATCH_LIST),this.EBK_MNF_EQUITY_SEARCH=this.userService.hasFeature(F.featureToggle.EBK_MNF_EQUITY_SEARCH),console.log("mynewsfeed",this.EBK_WCM_HOUSE_VIEWS,this.EBK_MNF_PTF_NEWS,this.EBK_MNF_EQUITY_SEARCH)}get isEquityEnabled(){return this.userService.isEqResearchEnabled}getWatchList(){this.myNewsFeedService.getWatchList().subscribe(e=>{e.forEach(i=>{i?.isin&&(this.isinsList+=i?.isin+","),i?.code&&(this.watchListCodes+=i?.code+","),i?.isinBc&&(this.watchListIsinBcCodes+=i?.isinBc+",")}),this.isinsList=this.isinsList.substr(0,this.isinsList.length-1),this.newsType="myWatchlist",this.watchListCodes=this.watchListCodes.substr(0,this.watchListCodes.length-1),this.watchListIsinBcCodes=this.watchListIsinBcCodes.substring(0,this.watchListIsinBcCodes.length-1),this.watchListItems=e,this.watchlistLoader=!1,console.log("insinlist",this.watchListItems,this.watchListCodes,this.isinsList)},()=>{this.watchlistError=!0,this.watchlistLoader=!1,console.log("Erro while getting items from watchlist")})}handleWatchlistChange(){this.isinsList="",this.watchListCodes="",this.watchListIsinBcCodes="",this.newsType=void 0,this.getWatchList()}changeWatchListTitle(e){e?this.watchListTitle="sa.watchlist.editWatchlist":this.watchListTitle="sa.myWatchlist"}refreshWatclist(e){e&&this.handleWatchlistChange()}showDisclaimer(){if(!(this.userService.isEquityDocDisclaimerAcceptted||this.authApiService.sessionExpired)){let e=this.modalService.open(J,{backdrop:"static",keyboard:!1,centered:!0});e.componentInstance.popUpType="prompt",e.componentInstance.successLabel=this.translate.instant("label.agree"),e.componentInstance.failureLabel=this.translate.instant("label.disagree"),console.log(this.translate.instant("label.agree"),this.translate.instant("label.disagree"),this.translate.instant("equitysearch.disclaimer.title")),e.componentInstance.popUpTitle=this.translate.instant("equitysearch.disclaimer.title"),this.apiService.appDefaultParams?.site?.toUpperCase()===ne.BPS?e.componentInstance.popUpContent=this.translate.instant("equitysearch.disclaimer.message"):e.componentInstance.popUpContent=this.translate.instant("equitysearch.disclaimer.message")+" ("+this.translate.instant("sa.disclaimer.message")+")",e.result.then(i=>{i==="Yes"&&this.equityResearchService.acceptDesknoteDisclaimer().subscribe(r=>{this.userService.isEquityDocDisclaimerAcceptted=!0,this.isDisclaimerAccepted=!0})})}}static{this.\u0275fac=function(i){return new(i||t)(u(D),u(Ce),u(U),u(_e),u(k),u(Ct),u(K),u(V),u($e),u(xt))}}static{this.\u0275cmp=O({type:t,selectors:[["app-market-news"]],standalone:!1,decls:14,vars:6,consts:[["nav","ngbNav"],["nav1","ngbNav"],["nav2","ngbNav"],[1,"row","maincontainer"],[1,"col-12",3,"bannerData"],[1,"col-12","no-gutters","sectioncontainer"],[1,"sectioncontent"],[1,"col-12"],[1,"row"],[1,"col-7","col-xl-8"],[4,"ngIf"],[1,"col-5","col-xl-4"],["class","spinner-error",4,"ngIf"],[4,"hasFeature"],[1,"margin-bottom"],["ngbNav","","justify","justified",1,"nav","nav-tabs"],["ngbNavItem","","class","col-6 p-0 text-center",3,"ngClass",4,"ngIf"],[1,"col-12",3,"ngbNavOutlet"],["ngbNavItem","",1,"col-6","p-0","text-center",3,"ngClass"],["ngbNavLink",""],["ngbNavContent",""],[1,"col-12",3,"type"],["ngbNavItem","",1,"col-6","p-0","text-center",3,"title"],[3,"editWatchlist","watchlistEdited","modalClosed","watchListCodes","watchListIsinBcCodes","watchListItems","isServiceFailed","parentLoader"],[1,"col-12",3,"type","relateNewsIsinsList"],[1,"col-12",3,"showOrHideTopBuyTopSell","instrument"],[3,"modalClosed"],[1,"spinner-error"],[1,"spinner"],[1,"lds-ellipsis"]],template:function(i,r){i&1&&(s(0,"div",3)(1,"div"),y(2,"app-banner-new",4),a(),s(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8)(7,"div",9),_(8,Sn,4,3,"ng-container",10)(9,Tn,2,1,"ng-container",10),a(),s(10,"div",11),_(11,Nn,4,3,"ng-container",10)(12,Wn,2,1,"ng-container",10),a()()(),_(13,Vn,7,0,"div",12),a()()()),i&2&&(n(2),o("bannerData",r.bannerData),n(6),o("ngIf",r.isADVmandateType||r.isADVEmandateType||r.isDPMorEXECmandateType),n(),o("ngIf",r.isADVmandateType),n(2),o("ngIf",r.isADVmandateType||r.isADVEmandateType||r.isDPMorEXECmandateType),n(),o("ngIf",r.isADVmandateType||r.isADVEmandateType),n(),o("ngIf",r.isLoading))},dependencies:[H,L,Et,xe,wt,ot,pt,lt,ct,mt,dt,ht,It,St,Pt,Me,Bt,qt,Wt,W,T],styles:[".sectioncontainer[_ngcontent-%COMP%]{padding-bottom:0;background:transparent}.sectioncontainer[_ngcontent-%COMP%]   .sectionheader[_ngcontent-%COMP%]{color:#6bbbae;font-stretch:expanded;font-size:17px;letter-spacing:.4px;padding:0 30px 0 35px}.sectioncontainer[_ngcontent-%COMP%]   .sectiondesc[_ngcontent-%COMP%]{color:#333;font-size:16px;font-style:normal;font-stretch:normal;line-height:1.38;letter-spacing:.2px;margin-top:0;text-align:left;padding:0 30px 0 35px}.sectioncontainer[_ngcontent-%COMP%]   .sectioncontent[_ngcontent-%COMP%]{padding-top:16px}.sectioncontainer[_ngcontent-%COMP%]   .sectioncontent[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#333;font-size:16px;font-style:normal;font-stretch:normal;line-height:16px;letter-spacing:0;text-align:left;font-weight:300;margin-top:8px;word-break:normal}.sectioncontainer[_ngcontent-%COMP%]   .sectioncontent[_ngcontent-%COMP%]   .margin-bottom[_ngcontent-%COMP%]{margin-bottom:30px}.sectioncontainer[_ngcontent-%COMP%]   .sectioncontent[_ngcontent-%COMP%]   .latest-video__bg--white[_ngcontent-%COMP%]{background-color:#fff}"]})}}return t})();var An=[{path:"",component:Vt}],ir=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Ve({type:t})}static{this.\u0275inj=Be({providers:[K,fe],imports:[Xe,Oe,et.forChild(An),ut,Tt,Oe,Lt,it.forChild({loader:{provide:tt,useFactory:Un,deps:[Je]}})]})}}return t})();function Un(t){return new ft(t,"./assets/vendor/i18n/ebanking/")}export{Un as HttpLoaderFactory,ir as MarketNewsModule};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.