1import{a as pe}from"./chunk-RYEACL6S.js";import{a as le}from"./chunk-F2AP4GBC.js";import{b as re}from"./chunk-WHU4XXSE.js";import{a as se}from"./chunk-T24IL6KT.js";import{a as oe}from"./chunk-BG7GAKBZ.js";import"./chunk-CKJXIJEW.js";import{b as ce}from"./chunk-LWZUGXUT.js";import"./chunk-A2MKP65J.js";import{a as ae}from"./chunk-XW3NSGMD.js";import"./chunk-G4TFELEL.js";import"./chunk-POB67RW2.js";import{a as ie}from"./chunk-ZECDOFAJ.js";import"./chunk-KYQEO6VJ.js";import{a as te,b as ne}from"./chunk-44OM7VNA.js";import"./chunk-2LZT3LEG.js";import"./chunk-DQWB4FDF.js";import{f as Z}from"./chunk-MG2LTBTI.js";import{a as ee}from"./chunk-UETGTCDH.js";import"./chunk-PN5AYVQ6.js";import"./chunk-LBCANGR5.js";import"./chunk-KCEJCXJZ.js";import"./chunk-TT3S2UTA.js";import"./chunk-RTGIJOJ3.js";import"./chunk-N4VJFAAV.js";import"./chunk-RRMHS6G2.js";import"./chunk-BQVREACV.js";import"./chunk-WXLVEQ4T.js";import{g as J,h as Q,l as X}from"./chunk-I335Z6VX.js";import"./chunk-YYKWFEMG.js";import"./chunk-D2N3WVHQ.js";import"./chunk-OP5LXOJA.js";import"./chunk-ARD6OICO.js";import{e as me}from"./chunk-LLSQBFJI.js";import{c as Y}from"./chunk-RH7YKMCI.js";import"./chunk-2P2IIG2U.js";import"./chunk-J3TYBNDU.js";import"./chunk-4QCSDQDN.js";import"./chunk-W3MH5BOT.js";import{A as G,m as V,o as U,p as q,w as W}from"./chunk-GUQT3FOM.js";import{Dc as v,Dd as C,Eb as i,Ec as O,Ed as E,Fd as M,Gd as N,Id as y,Lb as k,Sc as d,Ub as I,Vb as B,Xa as L,Xb as $,Ya as z,ac as f,ad as x,de as H,e as F,fa as j,fd as s,hd as g,id as A,na as D,sb as R,vd as K,wc as c,xc as a,yc as r,zc as u}from"./chunk-H5RMQNTW.js";import"./chunk-EU2KAMEK.js";import"./chunk-YNC7RVHT.js";var de=(()=>{class t{transform(e,n,o){return e.sort((p,m)=>o?p[n]<m[n]?-1:p[n]>m[n]?1:0:p[n]<m[n]?1:p[n]>m[n]?-1:0),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=$({name:"orderBy",type:t,pure:!0})}}return t})();var _e=()=>({height:"60px",width:"100%",margin:"0px 0px 8px 0px"});function he(t,l){t&1&&(v(0),u(1,"ngx-skeleton-loader",5),O()),t&2&&(i(),c("theme",K(1,_e)))}function fe(t,l){if(t&1&&(a(0,"li")(1,"a",10),s(2),r()()),t&2){let e=l.$implicit;i(),c("routerLink","/stock/"+e.stockName+"/"),i(),A(" ",e.companyName," (",e.stockName,") ")}}function ue(t,l){if(t&1&&(a(0,"section",6)(1,"h2",7),s(2),r(),a(3,"p",8),s(4),r(),a(5,"ul"),f(6,fe,3,3,"li",9),r()()),t&2){let e=d();i(2),g(" ",e.complianceStatus=="COMPLIANT"?"Related Halal Stocks to "+e.name+" ("+e.ticker+")":"Alternate Halal Stocks for "+e.name+" ("+e.ticker+")"," "),i(2),g("Explore Shariah-compliant companies related to ",e.name,"."),i(2),c("ngForOf",e.relatedStocks)}}function ke(t,l){if(t&1&&u(0,"img",41),t&2){let e=d().$implicit;c("src",e.logo,R)}}function Ce(t,l){if(t&1&&(a(0,"div",42),s(1),r()),t&2){let e=d().$implicit;i(),g(" ",e.companyName.charAt(0)," ")}}function ye(t,l){if(t&1&&(a(0,"span",43),s(1),C(2,"sumPipe"),r()),t&2){let e=d().$implicit;i(),g(" ",M(2,1,e.price?e.price:e.lastPrice,e.currency||"")," ")}}function xe(t,l){t&1&&s(0,"-")}function Se(t,l){if(t&1&&(a(0,"div",44),u(1,"i",45),a(2,"span",46),s(3),C(4,"abs"),C(5,"number"),r()()),t&2){let e=d().$implicit,n=d(4);i(),c("ngClass",n.getIconClasses(e.percentChange)),i(),c("ngClass",n.getPercentChangeClasses(e.percentChange)),i(),g(" ",M(5,5,E(4,3,e.percentChange),"1.2-2"),"% ")}}function Pe(t,l){t&1&&s(0,"-")}function ve(t,l){if(t&1&&(a(0,"tr")(1,"td",22),u(2,"app-watchlist-button",23),r(),a(3,"td",24)(4,"a",25)(5,"div",26),f(6,ke,1,1,"img",27)(7,Ce,2,1,"div",28),r(),a(8,"div",29)(9,"div",30),s(10),r(),a(11,"p",31),s(12),r()()()(),a(13,"td",32)(14,"a",33)(15,"div",34)(16,"div"),f(17,ye,3,4,"span",35)(18,xe,1,0,"ng-template",null,1,y),r(),f(20,Se,6,8,"div",36)(21,Pe,1,0,"ng-template",null,2,y),r()()(),a(23,"td",37)(24,"a",38),u(25,"app-compliance-chip",39),r()(),a(26,"td",37)(27,"a",38),u(28,"app-compliance-chip",40),r()()()),t&2){let e=l.$implicit,n=x(19),o=x(22);i(2),c("stock",e),i(2),c("routerLink","/stock/"+e.stockName+"/"),i(2),c("ngIf",e.logo),i(),c("ngIf",!e.logo),i(3),g(" ",e.companyName," "),i(2),g(" ",e.stockName," "),i(2),c("routerLink","/stock/"+e.stockName+"/"),i(3),c("ngIf",e.price||e.lastPrice)("ngIfElse",n),i(3),c("ngIf",e.percentChange)("ngIfElse",o),i(4),c("routerLink","/stock/"+e.stockName+"/"),i(),c("symbol",e.ticker)("preloaded",!0)("complianceStatus",e==null?null:e.shariahCompliantStatus)("complianceRankingV2",e==null?null:e.ranking_v2)("onlyCompliance",!0)("preloaded",!0),i(2),c("routerLink","/stock/"+e.stockName+"/"),i(),c("symbol",e.ticker)("preloaded",!0)("complianceStatus",e==null?null:e.shariahCompliantStatus)("complianceRankingV2",e==null?null:e.ranking_v2)("onlyRanking",!0)("preloaded",!0)}}function Oe(t,l){if(t&1&&(v(0),f(1,ve,29,25,"tr",9),C(2,"orderBy"),O()),t&2){let e=d(3);i(),c("ngForOf",N(2,1,e.relatedStocks,e.orderFieldName,e.orderDirection))}}function Me(t,l){t&1&&(a(0,"tr",47)(1,"td",48),s(2," 0 matching stocks "),r()())}function be(t,l){if(t&1&&(a(0,"div",13)(1,"div",14)(2,"h2",15),s(3),r(),a(4,"p",16),s(5,"Related Halal Stocks are Shariah-compliant companies that align with Islamic investment principles, avoiding prohibited industries like alcohol, gambling, and interest-based finance."),r(),a(6,"table",17)(7,"thead")(8,"tr"),u(9,"th",18),a(10,"th",18),s(11,"Name"),r(),a(12,"th",19),s(13," Price & 1D CHG "),r(),a(14,"th",19),s(15," Market Cap "),r(),a(16,"th",20),s(17," Rating "),r()()(),a(18,"tbody"),f(19,Oe,3,5,"ng-container",21)(20,Me,3,0,"ng-template",null,0,y),r()()()()),t&2){let e=x(21),n=d(2);i(3),g(" ",n.complianceStatus=="COMPLIANT"?"Related Halal Stocks to "+n.name+" ("+n.ticker+")":"Alternate Halal Stocks for "+n.name+" ("+n.ticker+")"," "),i(16),c("ngIf",n.relatedStocks.length>0)("ngIfElse",e)}}function Ie(t,l){if(t&1&&u(0,"img",41),t&2){let e=d().$implicit;c("src",e.logo,R)}}
1function we(t,l){if(t&1&&(a(0,"div",42),s(1),r()),t&2){let e=d().$implicit;i(),g(" ",e.companyName.charAt(0)," ")}}function Re(t,l){if(t&1&&(a(0,"span"),s(1),C(2,"sumPipe"),r()),t&2){let e=d().$implicit;i(),g(" ",M(2,1,e.price?e.price:e.lastPrice,e.currency||"")," ")}}function Ee(t,l){t&1&&s(0,"-")}function Ne(t,l){if(t&1&&(a(0,"div",55),u(1,"i",45),a(2,"span",46),s(3),C(4,"abs"),C(5,"number"),r()()),t&2){let e=d().$implicit,n=d(4);i(),c("ngClass",n.getIconClasses(e.percentChange)),i(),c("ngClass",n.getPercentChangeClasses(e.percentChange)),i(),g(" ",M(5,5,E(4,3,e.percentChange),"1.2-2"),"% ")}}function Te(t,l){t&1&&s(0,"-")}function Fe(t,l){if(t&1&&(a(0,"span"),s(1),C(2,"currencyMilion"),r()),t&2){let e=d().$implicit;i(),g(" ",N(2,1,e.marketcap,e.currency,!0)," ")}}function je(t,l){t&1&&s(0,"-")}function De(t,l){if(t&1&&(a(0,"tr")(1,"td",22),u(2,"app-watchlist-button",23),r(),a(3,"td",24)(4,"a",25)(5,"div",26),f(6,Ie,1,1,"img",27)(7,we,2,1,"div",28),r(),a(8,"div",29)(9,"div",30),s(10),r(),a(11,"p",31),s(12),r()()()(),a(13,"td",50)(14,"a",51),f(15,Re,3,4,"span",21)(16,Ee,1,0,"ng-template",null,1,y),r()(),a(18,"td",52)(19,"a",53),f(20,Ne,6,8,"div",54)(21,Te,1,0,"ng-template",null,2,y),r()(),a(23,"td",37)(24,"a",51),f(25,Fe,3,5,"span",21)(26,je,1,0,"ng-template",null,1,y),r()(),a(28,"td",37)(29,"a",38),u(30,"app-compliance-chip",40),r()()()),t&2){let e=l.$implicit,n=x(17),o=x(22);i(2),c("stock",e),i(2),c("routerLink","/stock/"+e.stockName+"/"),i(2),c("ngIf",e.logo),i(),c("ngIf",!e.logo),i(3),g(" ",e.companyName," "),i(2),g(" ",e.stockName," "),i(2),c("routerLink","/stock/"+e.stockName+"/"),i(),c("ngIf",e.price||e.lastPrice)("ngIfElse",n),i(4),c("routerLink","/stock/"+e.stockName+"/"),i(),c("ngIf",e.percentChange)("ngIfElse",o),i(4),c("routerLink","/stock/"+e.stockName+"/"),i(),c("ngIf",e.marketcap)("ngIfElse",n),i(4),c("routerLink","/stock/"+e.stockName+"/"),i(),c("symbol",e.ticker)("preloaded",!0)("complianceStatus",e==null?null:e.shariahCompliantStatus)("complianceRankingV2",e==null?null:e.ranking_v2)("preloaded",!0)("onlyRanking",!0)}}function Le(t,l){if(t&1&&(v(0),f(1,De,31,22,"tr",9),O()),t&2){let e=d(3);i(),c("ngForOf",e.relatedStocks)}}function ze(t,l){t&1&&(a(0,"tr",47)(1,"td",56),s(2," 0 matching stocks "),r()())}function Be(t,l){if(t&1&&(a(0,"div",49)(1,"h2",15),s(2),r(),a(3,"p",8),s(4,"Related Halal Stocks are Shariah-compliant companies that align with Islamic investment principles, avoiding prohibited industries like alcohol, gambling, and interest-based finance."),r(),a(5,"table",17)(6,"thead")(7,"tr"),u(8,"th",18),a(9,"th",18),s(10,"Name"),r(),a(11,"th",19),s(12," Price "),r(),a(13,"th",19),s(14," 1D Change "),r(),a(15,"th",19),s(16," Market Cap "),r(),a(17,"th",20),s(18," Rating "),r()()(),a(19,"tbody"),f(20,Le,2,1,"ng-container",21)(21,ze,3,0,"ng-template",null,0,y),r()()()),t&2){let e=x(22),n=d(2);i(2),g(" ",n.complianceStatus=="COMPLIANT"?"Related Halal Stocks to "+n.name+" ("+n.ticker+")":"Alternate Halal Stocks for "+n.name+" ("+n.ticker+")"," "),i(18),c("ngIf",n.relatedStocks.length>0)("ngIfElse",e)}}function $e(t,l){if(t&1&&(v(0),f(1,be,22,3,"div",11)(2,Be,23,3,"div",12),O()),t&2){let e=d();i(),c("ngIf",e.isMobile),i(),c("ngIf",!e.isMobile)}}var w=(()=>{class t{constructor(e,n,o,p,m,_,b,S,P){this.apiService=e,this.firestoreService=n,this.collectionCompliance=o,this.router=p,this.auth=m,this.typesenseService=_,this.observer=b,this.pendingTasks=S,this.cdr=P,this.destroy$=new F,this.isMobile=!1,this.orderFieldName="",this.orderDirection=!0,this.showRequest=!1,this.linksOnly=!1,this.loader=!1,this.latestFetchKey="",this.relatedStocksCache=new Map,this.relatedStocks=[],this.subscriptions=[]}ngOnInit(){this.observer.observe("(max-width: 992px)").pipe(j(this.destroy$)).subscribe(e=>{this.isMobile=e.matches})}ngOnChanges(e){this.musaffaSectorName&&this.marketCapClassification&&this.country&&this.musaffaIndustry&&this.pendingTasks.run(()=>this.fetchRelatedStocks(this.ticker,this.country||"",this.musaffaIndustry||""))}ngOnDestroy(){this.subscriptions&&this.subscriptions.length>0&&this.subscriptions.forEach(e=>{e.unsubscribe()})}getCacheKey(e,n,o){return`${e}-${n}-${o}`}async fetchRelatedStocks(e,n,o){this.loader=!0;let p=[],m=this.getCacheKey(e,n,o);if(this.latestFetchKey=m,this.relatedStocksCache.has(m)){let _=this.relatedStocksCache.get(m);this.relatedStocks=_.relatedStocks,!this.linksOnly&&!_.enriched&&(_.complianceInfo=await this.collectionCompl
1iance.getAccessibleComplianceInfo(_.symbols,"stocks"),await this.getData(_.tickersArr),_.enriched=!0),this.complianceInfo=_.complianceInfo,this.latestFetchKey===m&&(this.loader=!1,this.cdr.markForCheck());return}try{let _=await this.typesenseService.getRelatedStocks(e,n,o);if(this.latestFetchKey!==m)return;this.relatedStocks=(_?.hits??[]).map(P=>{let h=P.document;return p.push(h.isin),{type:"STOCK",identifier:h.identifier,stockName:h.ticker,companyName:h.name,currentPrice:h.currentPrice,percentChange:h.percentChange,isin:h.isin,shariahCompliantStatus:h.shariahCompliantStatus,compliantRanking:h.compliantRanking,ranking_v2:h.ranking_v2,currency:h.currency,logo:h.logo,ticker:h.ticker,usdMarketcap:h.usdMarketCap,marketcap:h.marketcap}});let b=this.relatedStocks.map(P=>P.stockName),S={relatedStocks:this.relatedStocks,tickersArr:b,symbols:p,complianceInfo:null,enriched:!1};this.relatedStocksCache.set(m,S),this.linksOnly||(S.complianceInfo=await this.collectionCompliance.getAccessibleComplianceInfo(p,"stocks"),await this.getData(b),S.enriched=!0),this.complianceInfo=S.complianceInfo}catch(_){console.error("Failed to fetch related stocks",_),this.latestFetchKey===m&&(this.relatedStocks=[])}finally{this.latestFetchKey===m&&(this.loader=!1,this.cdr.detectChanges())}}async getData(e){let n=await this.typesenseService.getPrices(e);for(let o in n){let p=n[o],m=this.relatedStocks.findIndex(_=>_.stockName==o);this.relatedStocks[m]&&(this.relatedStocks[m].lastPrice||(this.relatedStocks[m].lastPrice=p.currentPrice),this.relatedStocks[m].price=p.currentPrice,this.relatedStocks[m].currentPrice=p.currentPrice,this.relatedStocks[m].priceChange=p.change.toFixed(2),this.relatedStocks[m].priceChangePercent=p.percentChange.toFixed(2),this.relatedStocks[m].percentChange=p.percentChange.toFixed(2))}}orderList(e){this.orderFieldName===e?this.orderDirection=!this.orderDirection:this.orderFieldName=e}checkRole(e){return this.auth.checkRole(e)}request(e,n){this.loader=!0;let o=this.apiService.requestAnalitcs(e,n).subscribe(p=>{this.showRequest=!0,this.loader=!1});this.subscriptions.push(o)}sortBy(e,n){n==!0?(this.relatedStocks.sort((o,p)=>o[e]<p[e]?1:o[e]>p[e]?-1:0),this.booleanValue=!1):(this.relatedStocks.sort((o,p)=>o[e]>p[e]?1:o[e]<p[e]?-1:0),this.booleanValue=!0)}transformValue(e){return Math.abs(e)}getPercentChangeClasses(e){return{positive:e>=0,negative:e<0}}getIconClasses(e){return{"bi-caret-up-fill positive":e>=0,"bi-caret-down-fill negative":e<0}}static{this.\u0275fac=function(n){return new(n||t)(k(ee),k(ae),k(ce),k(J),k(me),k(Z),k(Y),k(L),k(H))}}static{this.\u0275cmp=I({type:t,selectors:[["app-related-stocks"]],inputs:{musaffaIndustryName:"musaffaIndustryName",musaffaIndustry:"musaffaIndustry",marketCapClassification:"marketCapClassification",country:"country",gsubind:"gsubind",ticker:"ticker",musaffaSectorName:"musaffaSectorName",complianceStatus:"complianceStatus",finnhubIndustry:"finnhubIndustry",gsector:"gsector",name:"name",linksOnly:"linksOnly"},features:[z],decls:3,vars:3,consts:[["noStocks",""],["noPrice",""],["noPercentChange",""],[4,"ngIf"],["class","related-stock-links",4,"ngIf"],["count","15","appearance","line","animation","progress",3,"theme"],[1,"related-stock-links"],[1,"table-sec-heading"],[1,"description_seo"],[4,"ngFor","ngForOf"],[3,"routerLink"],["class","px-lg-3",4,"ngIf"],["class","table-responsive desktop-table-wrapper",4,"ngIf"],[1,"px-lg-3"],[1,"table-responsive","mobile-table-wrapper"],[1,"mb-0","table-sec-heading"],[1,"description_seo","mt-2","pb-1"],[1,"table","mb-0"],["scope","col",1,"text-uppercase","fw-normal"],["scope","col",1,"text-uppercase","fw-normal","text-end"],["scope","col",1,"text-uppercase","fw-normal","text-center"],[4,"ngIf","ngIfElse"],[1,"align-middle","p-0","star-td"],[3,"stock"],[1,"align-middle","p-0"],[1,"d-flex","align-items-center","gap-2","text-decoration-none","stock-image-and-name",3,"routerLink"],[1,"stock-image-wrapper","border","flex-shrink-0","bg-light","rounded-circle","overflow-hidden"],["alt","","width","30","height","30","loading","lazy","decoding","async","class","img-fluid",3,"src",4,"ngIf"],["class","d-flex h-100 text-black align-items-center justify-content-center fs-5 fw-bold",4,"ngIf"],[1,"d-block"],[1,"mb-0","line-clamp-1","stock-name"],[1,"mb-0","line-clamp-1","stock-symbol"],[1,"align-middle","p-0","price-and-ch
1ange-td"],[1,"d-flex","align-items-center","justify-content-end","gap-2","text-decoration-none","stock-price-and-change",3,"routerLink"],[1,"d-grid"],["class","stock-price text-end",4,"ngIf","ngIfElse"],["class","stock-change d-flex align-items-center justify-content-end gap-1",4,"ngIf","ngIfElse"],[1,"align-middle","p-0","compliance-td"],[1,"d-flex","align-items-center","justify-content-end","gap-2","text-decoration-none","stock-compliance",3,"routerLink"],[3,"symbol","preloaded","complianceStatus","complianceRankingV2","onlyCompliance"],[3,"symbol","preloaded","complianceStatus","complianceRankingV2","onlyRanking"],["alt","","width","30","height","30","loading","lazy","decoding","async",1,"img-fluid",3,"src"],[1,"d-flex","h-100","text-black","align-items-center","justify-content-center","fs-5","fw-bold"],[1,"stock-price","text-end"],[1,"stock-change","d-flex","align-items-center","justify-content-end","gap-1"],[1,"bi",3,"ngClass"],[3,"ngClass"],[1,"bg-white","no-data-tr"],["colspan","6",1,"align-middle","text-center","p-3"],[1,"table-responsive","desktop-table-wrapper"],[1,"align-middle","p-0","price-td"],[1,"d-flex","align-items-center","justify-content-end","gap-2","text-decoration-none","stock-price",3,"routerLink"],[1,"align-middle","p-0","change-td"],[1,"d-flex","align-items-center","justify-content-end","gap-2","text-decoration-none","stock-change",3,"routerLink"],["class","d-flex align-items-center gap-1",4,"ngIf","ngIfElse"],[1,"d-flex","align-items-center","gap-1"],["colspan","7",1,"align-middle","text-center","p-3"]],template:function(n,o){n&1&&f(0,he,2,2,"ng-container",3)(1,ue,7,3,"section",4)(2,$e,3,2,"ng-container",3),n&2&&(c("ngIf",o.loader&&!o.linksOnly),i(),c("ngIf",o.linksOnly&&!o.loader&&o.relatedStocks&&o.relatedStocks.length>0),i(),c("ngIf",!o.linksOnly&&!o.loader&&o.relatedStocks&&o.relatedStocks.length>0))},dependencies:[q,te,U,Q,oe,V,ie,W,le,re,se,de],styles:[".positive[_ngcontent-%COMP%]{color:#119a41}.negative[_ngcontent-%COMP%]{color:#e82127}.table-sec-heading[_ngcontent-%COMP%]{font-size:1.25rem;color:#000;font-weight:600;padding:1rem 0;padding-bottom:0}@media(min-width:992px){.table-sec-heading[_ngcontent-%COMP%]{font-size:1.5rem;padding:1.5rem 0;padding-bottom:0}}.table-responsive[_ngcontent-%COMP%]{border-radius:.625rem;margin-top:1.5rem}@media(min-width:992px){.table-responsive[_ngcontent-%COMP%]{margin-top:2rem}}.table[_ngcontent-%COMP%]{border-top:0px solid #F1F4F8}.table[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){border-top:0px solid #F1F4F8!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#8b8b8b;font-size:.625rem;letter-spacing:.25px}@media(min-width:768px){thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:.75rem}}@media(min-width:992px){thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:.875rem;padding:.75rem}}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{cursor:pointer;border-color:#f1f4f8}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:1px solid transparent}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#fafafa}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.star-td[_ngcontent-%COMP%]{width:2rem}@media(min-width:768px){tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.star-td[_ngcontent-%COMP%]{width:3.125rem}}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.price-and-change-td[_ngcontent-%COMP%]{width:6rem}@media(min-width:768px){tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.price-and-change-td[_ngcontent-%COMP%]{width:9rem}}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.market-price-td[_ngcontent-%COMP%]{width:8rem}@media(min-width:1200px){tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.market-price-td[_ngcontent-%COMP%]{width:12.5%}}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.price-td[_ngcontent-%COMP%]{width:7rem}@media(min-width:1200px){tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.price-td[_ngcontent-%COMP%]{width:15%}}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.change-td[_ngcontent-%COMP%]{width:7rem}@media(min-width:1200px){tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td.change-td[_ngcontent-%COMP%]{width:15%}}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:4.5rem}@media(min-width:768px){tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{height:4.625rem}}@media(min-width:992px){.stock-analyst-ratings[_ngcontent-%COMP%], .stock-market-price[_ngcontent-%COMP%], .stock-price[_ngcontent-%COMP%], .stock-change[_ngcontent-%COMP%], .stock-compliance[_ngcontent-%COMP%]{padding-inline:.75rem}}
1.stock-image-and-name[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 0}@media(min-width:768px){.stock-image-and-name[_ngcontent-%COMP%]{padding:.75rem .625rem}}.stock-image-and-name[_ngcontent-%COMP%] .stock-image-wrapper[_ngcontent-%COMP%]{aspect-ratio:1;width:2rem}@media(min-width:768px){.stock-image-and-name[_ngcontent-%COMP%] .stock-image-wrapper[_ngcontent-%COMP%]{width:2.5rem}}.stock-image-and-name[_ngcontent-%COMP%] .stock-image-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;object-fit:cover;height:100%}.stock-image-and-name[_ngcontent-%COMP%] .stock-name[_ngcontent-%COMP%]{color:#414141;font-weight:600;font-size:clamp(.875rem,.8293rem + .1951vw,1rem);line-height:1.45}.stock-image-and-name[_ngcontent-%COMP%] .stock-symbol[_ngcontent-%COMP%]{color:#767575;font-weight:400;font-size:clamp(.75rem,.7043rem + .1951vw,.875rem);line-height:1.45}.stock-price-and-change[_ngcontent-%COMP%]{padding:.5rem}@media(min-width:768px){.stock-price-and-change[_ngcontent-%COMP%]{padding:.75rem .625rem}}.stock-price-and-change[_ngcontent-%COMP%] .stock-price[_ngcontent-%COMP%], .stock-price-and-change[_ngcontent-%COMP%] .stock-change[_ngcontent-%COMP%]{font-size:clamp(.8125rem,.7668rem + .1951vw,.9375rem);line-height:1.4}.stock-price-and-change[_ngcontent-%COMP%] .stock-price[_ngcontent-%COMP%]{color:#414141;font-weight:500}.stock-price-and-change[_ngcontent-%COMP%] .stock-change[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#414141}.stock-price-and-change[_ngcontent-%COMP%] .stock-change[_ngcontent-%COMP%] span.positive[_ngcontent-%COMP%]{color:#119a41}.stock-price-and-change[_ngcontent-%COMP%] .stock-change[_ngcontent-%COMP%] span.negative[_ngcontent-%COMP%]{color:#e82127}.stock-price-and-change[_ngcontent-%COMP%] .stock-change[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.625rem}@media(min-width:768px){.stock-price-and-change[_ngcontent-%COMP%] .stock-change[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.75rem}}.stock-compliance[_ngcontent-%COMP%]{padding:.5rem}@media(min-width:992px){.stock-compliance[_ngcontent-%COMP%]{padding:.75rem .625rem}}.analyst-rating-chip[_ngcontent-%COMP%]{font-weight:500;max-height:2rem;max-width:max-content;padding:.125rem .25rem;color:#000;text-transform:capitalize;border-radius:.325rem;background-color:#d3d3d3;font-size:.625rem}@media(min-width:992px){.analyst-rating-chip[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600;padding:.325rem .75rem;letter-spacing:.5px}}.analyst-rating-chip.strong-buy-chip[_ngcontent-%COMP%]{background-color:#1bad4e33;color:#1bad4e}.analyst-rating-chip.buy-chip[_ngcontent-%COMP%]{background-color:#99ce4333;color:#99ce43}.analyst-rating-chip.hold-chip[_ngcontent-%COMP%]{background-color:#e0b55f33;color:#c99f4a}.analyst-rating-chip.sell-chip[_ngcontent-%COMP%]{background-color:#e0685f33;color:#de5950}.analyst-rating-chip.strong-sell-chip[_ngcontent-%COMP%]{background-color:#e4202033;color:#e42020}.stock-market-price[_ngcontent-%COMP%], .stock-price[_ngcontent-%COMP%]{color:#414141}.no-data-tr[_ngcontent-%COMP%]{cursor:default!important}.description_seo[_ngcontent-%COMP%]{margin:20px 0;font-size:.9rem}.related-stock-links[_ngcontent-%COMP%]{margin-top:2rem}.related-stock-links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;margin:1rem 0 0;padding-left:1.25rem}.related-stock-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{flex:1 1 16rem}.related-stock-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#16794b;text-decoration:underline;text-underline-offset:.2rem}"],changeDetection:1})}}return t})();var ge=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=B({type:t})}static{this.\u0275inj=D({imports:[G,ne,X,pe,w]})}}return t})();var yt=(()=>{class t{constructor(){this.complianceStatus="",this.finnhubIndustry="",this.gsector="",this.linksOnly=!1,this.name="",this.ticker=""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-deferred-related-stocks"]],inputs:{complianceStatus:"complianceStatus",country:"country",finnhubIndustry:"finnhubIndustry",gsector:"gsector",gsubind:"gsubind",linksOnly:"linksOnly",marketCapClassification:"marketCapClassification",musaffaIndustry:"musaffaIndustry",musaffaIndustryName:"musaffaIndustryName",musaffaSectorName:"musaffaSectorName",name:"name",ticker:"ticker"},decls:1,vars:12,consts:[["id","Related-Companies",3,"musaffaIndustryName","musaffaIndustry","musaffaSectorName","marketCapClassification","country","gsubind","ticker","complianceStatus","name","finnhubIndustry","gsector","linksOnly"]],template:function(n,o){n&1&&u(0,"app-related-stocks",0),n&2&&c("musaffaIndustryName",o.musaffaIndustryName)("musaffaIndustry",o.musaffaIndustry)("musaffaSectorName",o.musaffaSectorName)("marketCapClassification",o.marketCapClassification)("country",o.country)("gsubind",o.gsubind)("ticker",o.ticker)("complianceStatus",o.complianceStatus)("name",o.name)("finnhubIndustry",o.finnhubIndustry)("gsector",o.gsector)("linksOnly",o.linksOnly)},dependencies:[ge,w],encapsulation:2})}}return t})();export{yt as DeferredRelatedStocksComponent};
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.