PageSourceSearch

https://portal.focusmarkets.com/6558.846320ff323ff655.js

js focusmarkets.com collected 2026-09-28 08:55:37 UTC 15,990 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfocus_markets_client_portal=self.webpackChunkfocus_markets_client_portal||[]).push([[6558],{16558:(R,b,o)=>{o.r(b),o.d(b,{ClientPortalDashboardModule:()=>dt,ClientPortalDashboardRoutingModule:()=>U,DashboardComponent:()=>y,StartLiveConfirmDialogComponent:()=>O});var n=o(34006),t=o(17705),h=o(88834),f=o(73955);let O=(()=>{var a;class r{constructor(e){this.content=e}static#t=a=()=>(this.\u0275fac=function(i){return new(i||r)(t.rXU(n.Vh))},this.\u0275cmp=t.VBU({type:r,selectors:[["eig-start-live-confirm-dialog"]],decls:14,vars:13,consts:[["mat-dialog-title","",1,"primary-text"],["mat-dialog-content","","data-flex","grow"],["data-layout-xs","column","data-layout-align","space-between",1,"eig-action","mat-action-row"],["type","button","mat-button","","mat-dialog-close","",1,"eig-res-btn-l"],["type","button","mat-raised-button","","color","primary",1,"eig-btn-l",3,"mat-dialog-close"]],template:function(i,s){1&i&&(t.j41(0,"h2",0),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div",1)(4,"p"),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",2)(8,"button",3),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"button",4),t.EFF(12),t.nI1(13,"translate"),t.k0s()()),2&i&&(t.R7$(1),t.SpI(" ",t.bMT(2,5,"dashboard_page.confirm"),"\n"),t.R7$(4),t.JRh(t.bMT(6,7,"dashboard_page.confirm_content")),t.R7$(4),t.SpI(" ",t.bMT(10,9,"button_title.cancel")," "),t.R7$(2),t.Y8G("mat-dialog-close",!0),t.R7$(1),t.SpI(" ",t.bMT(13,11,"appliation.button.start_application_for_live")," "))},dependencies:[h.$z,n.tx,n.BI,n.Yi,f.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-between}[_nghost-%COMP%]     .mat-mdc-dialog-content{height:auto}[_nghost-%COMP%]   .mat-action-row[_ngcontent-%COMP%]{padding-bottom:0;margin-inline-start:-24px;margin-inline-end:-24px}@media screen and (min-width: 768px){[_nghost-%COMP%]{min-width:420px}}"]}))}return a(),r})();var C=o(21413),_=o(56977),I=o(5964),M=o(96354),v=o(25558),A=o(88141),x=o(4081),P=o(57980),w=o(58926),$=o(39248),c=o(38473),m=o(7755),l=o(88391),u=o(69572),g=o(29155),D=o(71546),E=o(93414),X=o(8064),L=o(55558),k=o(58955),V=o(55254),T=o(60177),W=o(25596),N=o(99213),Y=o(57413),K=o(84353);let J=(()=>{var a;class r{constructor(){}transform(e,i){return e.linkList.find(s=>
1s.os===i)}static#t=a=()=>(this.\u0275fac=function(i){return new(i||r)},this.\u0275pipe=t.EJ8({name:"platformDownloadInfo",type:r,pure:!0}))}return a(),r})();const Q=["tradingAccountTable"];function H(a,r){1&a&&(t.qex(0),t.j41(1,"mat-icon"),t.EFF(2,"arrow_forward"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.bVm()),2&a&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"appliation.button.start_application_for_live")," "))}function z(a,r){1&a&&(t.qex(0),t.j41(1,"mat-icon"),t.EFF(2,"autorenew"),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.bVm()),2&a&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"appliation.button.resume_application_for_live")," "))}function Z(a,r){if(1&a){const d=t.RV6();t.j41(0,"div",6)(1,"button",7),t.bIt("click",function(){t.eBV(d);const i=t.XpG();return t.Njj(i.startApplyForLive())}),t.DNE(2,H,5,3,"ng-container",8),t.DNE(3,z,5,3,"ng-container",8),t.k0s()()}if(2&a){const d=t.XpG();t.R7$(2),t.Y8G("ngIf",!d.canResumeApplicationForLive),t.R7$(1),t.Y8G("ngIf",d.canResumeApplicationForLive)}}function q(a,r){if(1&a&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a){const d=t.XpG(2).$implicit;t.R7$(1),t.SpI(" ",t.bMT(2,1,d.downloadText)," ")}}function tt(a,r){1&a&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"dashboard.download.TradingViewDownloadText")," "))}function nt(a,r){if(1&a&&(t.qex(0),t.nrm(1,"shared-platform-download-button",19),t.nI1(2,"platformDownloadInfo"),t.bVm()),2&a){const d=t.XpG(2).$implicit,e=t.XpG();t.R7$(1),t.Y8G("download",t.i5U(2,2,d,e.OsNames.Browser))("buttonLabel","WebTrader")}}function ot(a,r){if(1&a){const d=t.RV6();t.j41(0,"button",20),t.bIt("click",function(){t.eBV(d);const i=t.XpG(3);return t.Njj(i.openTradingView())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&a&&(t.R7$(1),t.SpI(" ",t.bMT(2,1,"dashboard.label.tradingview")," "))}function at(a,r){if(1&a){const d=t.RV6();t.j41(0,"div",10)(1,"mat-card",11)(2,"div",12),t.nrm(3,"img",13),t.DNE(4,q,3,3,"p",14),t.DNE(5,tt,3,3,"ng-template",null,15,t.C5r),t.k0s(),t.j41(7,"div",16)(8,"button",17),t.bIt("click",function(){t.eBV(d);const i=t.XpG().$implicit,s=t.XpG();return t.Njj(s.gotoDownloadpage(i.id))}),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.DNE(11,nt,3,5,"ng-container",8),t.DNE(12,ot,3,3,"button",18),t.k0s()()()}if(2&a){const d=t.sdS(6),e=t.XpG(),i=e.index,s=e.$implicit,p=t.XpG();t.AVh("one-item",1===p.downloadInfos.length),t.Y8G("ngClass",i%2==0?"even":"odd"),t.R7$(2),t.Y8G("ngClass",s.id===p.TradingPlatform.TV?"trading-view":""),t.R7$(1),t.Mz_("src","assets/",s.image,"",t.B4B),t.R7$(1),t.Y8G("ngIf",s.id!==p.TradingPlatform.TV)("ngIfElse",d),t.R7$(5),t.SpI(" ",t.bMT(10,10,"button_title.download_now")," "),t.R7$(2),t.Y8G("ngIf",s.id!==p.TradingPlatform.TV&&p.isWebtraderEnabled),t.R7$(1),t.Y8G("ngIf",s.id===p.TradingPlatform.TV)}}function et(a,r){if(1&a&&(t.qex(0),t.DNE(1,at,13,12,"div",9),t.bVm()),2&a){const d=t.XpG();t.R7$(1),t.Y8G("ngIf",d.downloadInfos.length)}}let y=(()=>{var a;class r extends D.i${get account$(){return this.sessionFacade.account$}get tradingAccounts$(){return this.tradingAccountFacade.tradingAccountsWithoutRebate$}constructor(e,i,s,p,F,mt,gt,pt,ut,_t,ht){super(),this.appConfigService=e,this.matDialog=i,this.applicationInfoService=s,this.applicationService=p,this.clipboardService=F,this.downloadService=mt,this.loadingService=gt,this.routingFacade=pt,this.sessionFacade=ut,this.sessionService=_t,this.tradingAccountFacade=ht,this.OsNames=$.VW,this.TradingPlatform=x.OD,this.startApplicationForLive$=new C.B,this.canResumeApplicationForLive=!1,this.canStartApplicationForLive=!1,this.downloadInfos=[],this.hasApprove=!1,this.header="nav_label.dashboard",this.resumeApplicationForLive$=new C.B,this.titleInHeader=!0,this.isWebtraderEnabled=this.appConfigService.config.isWebtraderEnabled}copyLink(){this.clipboardService.startCopy(this.appConfigService.config.latestOfficalWebsiteLink??"","common.label.copied")}gotoDownloadpage(e){this.routingFacade.navigate([l.O9.downloadFullPath],{fragment:e})}gotoTransfer(e){this.routingFacade.navigateByUrl(l._H.transferFullPath,{state:{transferFrom:e}})}ngOnInit(){this.initStartApplicationForLive(),this.resumeApplicationForLive$.pipe((0,_.Q)(this.unsubscribeAll)).subscribe({next:()=>{this.applicationService.gotoApplicationFlow()}}),this.initApplicationContext(),this.tradingAccountFacade.tradingAccounts$.pipe((0,I.p)(e=>!!e),(0,M.T)(e=>e),(0,v.n)(()=>this.downloadService.userDownloadInformation$),(0,_.Q)(this.unsubscribeAll)).subscribe({next:e=>{this.downloadInfos=e}}),this.accountId=this.sessionService.accountId}openLeverageChangeDialog(e){this.matDialog.open(k.uc,{data:e,disableClose:!0,maxWidth:"800px"}).afterClosed().pipe((0,_.Q)(this.unsubscribeAll)).subscribe(i=>{i&&i.auto_leverage&&(this.tradingAccountId=i.trading_id)})}openTradingView(){const e=this.downloadInfos.find(s=>s.id===x.OD.TV)?.destinationLink;e&&window.open(e.default.tradingView)}startApplyForLive(){this.canResumeApplicationForLive?this.resumeApplicationForLive$.next():this.startApplicationForLive$.next()}initApplicationContext(){this.hasApprove=this.applicationInfoService.isApplicationApproved,this.canResumeApplicationForLive=this.sessionService.isLeadConversionInProgress&&!this.hasApprove,this.canStartApplicationForLive=this.sessionService.isDemoAccount||this.sessionService.isLeadConversionInProgress}initStartApplicationForLive(){this.startApplicationForLive$.pipe((0,A.M)(()=>{this.loadingService.show(),this.sessionFacade.convertLead()}),(0,_.Q)(this.unsubscribeAll)).subscribe()}static#t=a=()=>(this.\u0275fac=function(i){return new(i||r)(t.rXU(w.RK),t.rXU(c.o3),t.rXU(L.my),t.rXU(L.BN),t.rXU(X.WW),t.rXU(m.sX),t.rXU(P.Ui),t.rXU(u.Sd),t.rXU(g.XX),t.rXU(g.Qo),t.rXU(E.DU))},this.\u0275cmp=t.VBU({type:r,selectors:[["ng-component"]],viewQuery:function(i,s){if(1&i&&t.GBs(Q,5),2&i){let p;t.mGM(p=t.lsd())&&(s.tradingAccountTable=p.first)}},features:[t.Vt3],decls:7,vars:9,consts:[["id","dashboard",1,"eig-page-container"],["data-layout-align","end",4,"ngIf"],[3,"account","tradingAccountId","hasFilter","titleInHeader","tradingAccounts$","transfer","leverageChange"],["tradingAccountTable",""],["data-layout","row wrap","data-layout-lt-md","column","data-layout-align","space-between","data-layout-gap","20px",1,"bottom-content","mt-20"],[4,"ngFor","ngForOf"],["data-layout-align","end"],["mat-button","","color","primary","data-flex-xs","grow",1,"eig-btn","application-live-btn",3,"click"],[4,"ngIf"],["data-layout","column","data-flex","grow","data-flex-gt-sm","48","class","meta-trader-container",3,"one-item","ngClass",4,"ngIf"],["data-layout","column","data-flex","grow","data-flex-gt-sm","48",1,"meta-trader-container",3,"ngClass"],["appearance","outlined"],[1,"meta-trader-content",3,"ngClass"],["alt","","width","187px",3,"src"],[4,"ngIf","ngIfElse"],["tradingView",""],[1,"meta-trader-download"],["mat-stroked-button","","color","primary",1,"eig-btn",3,"click"],["mat-stroked-button","","class","eig-btn trading-view","color","primary",3,"click",4,"ngIf"],[1,"ml-20","eig-download-item",3,"download","buttonLabel"],["mat-stroked-button","","color","primary",1,"eig-btn","trading-view",3,"click"]],template:function(i,s){1&i&&(t.j41(0,"div",0),t.DNE(1,Z,4,2,"div",1),t.j41(2,"eig-table-live-trading-account",2,3),t.bIt("transfer",function(F){return s.gotoTransfer(F)})("leverageChange",function(F){return s.openLeverageChangeDialog(F)}),t.nI1(4,"async"),t.k0s(),t.j41(5,"div",4),t.DNE(6,et,2,1,"ng-container",5),t.k0s()()),2&i&&(t.R7$(1),t.Y8G("ngIf",s.canStartApplicationForLive&&!s.hasApprove),t.R7$(1),t.Y8G("account",t.bMT(4,7,s.account$))("tradingAccountId",s.tradingAccountId)("hasFilter",!1)("titleInHeader",s.titleInHeader)("tradingAccounts$",s.tradingAccounts$),t.R7$(4),t.Y8G("ngForOf",s.downloadInfos))},dependencies:[T.YU,T.Sq,T.bT,h.$z,W.RN,N.An,Y.v,K.m,T.Jj,f.D9,J],styles:["[_nghost-%COMP%]   .mat-mdc-card[_ngcontent-%COMP%]{display:block}@media screen and (min-width: 768px){[_nghost-%COMP%]   .mat-mdc-card[_ngcontent-%COMP%]{flex-direction:row}}[_nghost-%COMP%]   .left-content[_ngcontent-%COMP%]   .padding-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background:0!important}[_nghost-%COMP%]   .bottom-content[_ngcontent-%COMP%]{margin-top:2%}[_nghost-%COMP%]   .bottom-content[_ngcontent-%COMP%]   mat-card[_ngcontent-%COMP%]{margin-bottom:2%}[_nghost-%COMP%]   .meta-trader-download[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-content:center}[_nghost-%COMP%]   .meta-trader-container[_ngcontent-%COMP%]   .eig-btn[_ngcontent-%COMP%]{margin-inline-start:10px;margin-bottom:16px}[_nghost-%COMP%]   .meta-trader-container[_ngcontent-%COMP%]   .eig-btn.trading-view[_ngcontent-%COMP%]{min-width:200
1px}[_nghost-%COMP%]   .meta-trader-container[_ngcontent-%COMP%]   img.trading-view[_ngcontent-%COMP%]{padding-bottom:20px}@media screen and (min-width: 768px){[_nghost-%COMP%]   .meta-trader-container.one-item[_ngcontent-%COMP%]{max-width:100%}[_nghost-%COMP%]   .meta-trader-container.one-item[_ngcontent-%COMP%]   mat-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}}@media screen and (min-width: 768px) and (max-width: 959px){[_nghost-%COMP%]   .meta-trader-container[_ngcontent-%COMP%]   mat-card[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%]   .meta-trader-container[_ngcontent-%COMP%]   .eig-btn[_ngcontent-%COMP%]{margin-bottom:16px}}@media screen and (min-width: 768px){[_nghost-%COMP%]   .application-live-btn[_ngcontent-%COMP%]{margin-bottom:-35px;z-index:1}}@media screen and (max-width: 599px){[_nghost-%COMP%]   .eig-btn[_ngcontent-%COMP%]{margin-bottom:16px}}@media screen and (max-width: 767px){[_nghost-%COMP%]   .eig-btn[_ngcontent-%COMP%]{margin-bottom:16px;display:block}}[_nghost-%COMP%]     span.mdc-button__label{display:flex;justify-content:center;align-items:center}"],data:{animation:P.Is}}))}return a(),r})();var S=o(7901),B=o(38238),G=o(10503);const j=[{path:"",hasCustomAuthentication:!0,component:y,resolve:{tradingAccounts:E.JP}}];let U=(()=>{var a;class r{constructor(e){this.authGuardLoaderService=e,this.authGuardLoaderService.load()}static#t=a=()=>(this.\u0275fac=function(i){return new(i||r)(t.KVO(G.Or))},this.\u0275mod=t.$C({type:r}),this.\u0275inj=t.G2t({imports:[S.iI.forChild(j),B.XE.forChild(j),G.AF,S.iI,B.XE]}))}return a(),r})();var it=o(72035),rt=o(97368),st=o(40857),ct=o(23135),lt=o(80021);let dt=(()=>{var a;class r{static#t=a=()=>(this.\u0275fac=function(i){return new(i||r)},this.\u0275mod=t.$C({type:r}),this.\u0275inj=t.G2t({imports:[T.MD,f.h,it.eP,rt.l,st.DF,ct.O,lt.MS,c.Lx,D.A8,V.NM,U]}))}return a(),r})()},57413:(R,b,o)=>{o.d(b,{v:()=>$});var n=o(17705),t=o(60177),h=o(59115),f=o(88834),O=o(53719),C=o(99213),_=o(73955);function I(c,m){1&c&&n.eu8(0)}function M(c,m){if(1&c&&(n.j41(0,"a",5)(1,"mat-icon",6),n.EFF(2),n.k0s(),n.EFF(3),n.k0s()),2&c){const l=n.XpG().$implicit,u=n.XpG(2);n.FS9("href",l.linkDestination,n.B4B),n.R7$(2),n.JRh(l.icon),n.R7$(1),n.SpI(" ",u.buttonText," ")}}function v(c,m){1&c&&n.DNE(0,M,4,3,"a",4),2&c&&n.Y8G("ngIf",m.$implicit.linkDestination)}function A(c,m){if(1&c){const l=n.RV6();n.j41(0,"button",12),n.bIt("click",function(){const D=n.eBV(l).$implicit,E=n.XpG(3);return n.Njj(E.openLink(D.linkDestination))}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}if(2&c){const l=m.$implicit;n.R7$(1),n.SpI(" ",n.bMT(2,1,l.linkDescription)," ")}}function x(c,m){if(1&c&&(n.j41(0,"button",7,8)(2,"mat-icon",6),n.EFF(3),n.k0s(),n.EFF(4),n.k0s(),n.j41(5,"mat-menu",9,10),n.DNE(7,A,3,3,"button",11),n.k0s()),2&c){const l=m.$implicit,u=n.sdS(6),g=n.XpG(2);n.Y8G("matMenuTriggerFor",u),n.R7$(3),n.JRh(l.icon),n.R7$(1),n.SpI(" ",g.buttonText," "),n.R7$(1),n.Y8G("overlapTrigger",!1),n.R7$(2),n.Y8G("ngForOf",l.links)}}const P=function(c){return{$implicit:c}};function w(c,m){if(1&c&&(n.qex(0),n.DNE(1,I,1,0,"ng-container",1),n.DNE(2,v,1,1,"ng-template",null,2,n.C5r),n.DNE(4,x,8,5,"ng-template",null,3,n.C5r),n.bVm()),2&c){const l=n.sdS(3),u=n.sdS(5),g=n.XpG();n.R7$(1),n.Y8G("ngTemplateOutlet",g.download.links?u:l)("ngTemplateOutletContext",n.eq3(2,P,g.download))}}let $=(()=>{var c;class m{get buttonText(){return this.buttonLabel||this.download?.os||""}openLink(u){window.open(u,"_blank")}static#t=c=()=>(this.\u0275fac=function(g){return new(g||m)},this.\u0275cmp=n.VBU({type:m,selectors:[["shared-platform-download-button"]],inputs:{buttonLabel:"buttonLabel",download:"download"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["downloadLinkTpl",""],["downloadMenuTpl",""],["mat-stroked-button","","class","eig-btn","target","_blank",3,"href",4,"ngIf"],["mat-stroked-button","","target","_blank",1,"eig-btn",3,"href"],["matPrefix",""],["mat-stroked-button","",1,"eig-btn",3,"matMenuTriggerFor"],["menuTrigger","matMenuTrigger"],["hasBackdrop","true",3,"overlapTrigger"],["downloadMenu","matMenu"],["mat-menu-item","","class","eig-btn eig-download-item",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"eig-btn","eig-download-item",3,"click"]],template:function(g,D){1&g&&n.DNE(0,w,6,4,"ng-container",0),2&g&&n.Y8G("ngIf",D.download)},dependencies:[t.Sq,t.bT,t.T3,h.kk,h.fb,h.Cp,f.It,f.$z,O.JW,C.An,_.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   a.mat-mdc-button-base[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   a.mat-mdc-button-base[_ngcontent-%COMP%]:active{text-decoration:none!important}"]}))}return c(),m})()},23135:(R,b,o)=>{o.d(b,{O:()=>I});var n=o(60177),t=o(88834),h=o(53719),f=o(99213),O=o(59115),C=o(73955),_=o(17705);let I=(()=>{var M;class v{static#t=M=()=>(this.\u0275fac=function(P){return new(P||v)},this.\u0275mod=_.$C({type:v}),this.\u0275inj=_.G2t({imports:[n.MD,O.Cn,t.Hl,h.RG,f.m_,C.h]}))}return M(),v})()}}]);

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.