PageSourceSearch

https://musaffa.com/chunk-J7RZHHE4.js

js musaffa.com collected 2026-09-24 09:13:10 UTC 14,366 bytes, 1 lines download raw bytes

1import{a as G}from"./chunk-QEAEVX3W.js";import"./chunk-WH7OS5X4.js";import"./chunk-T45VSI42.js";import"./chunk-WVES4YV4.js";import{a as A}from"./chunk-J6KB6ZCD.js";import"./chunk-UFEOTD5P.js";import"./chunk-PWXSD3EV.js";import"./chunk-YFORCPWA.js";import"./chunk-N7ARDVSP.js";import{a as Y}from"./chunk-F3IRZX6V.js";import"./chunk-537WW5KQ.js";import"./chunk-HKRANLL3.js";import"./chunk-F32QLDU3.js";import"./chunk-ZNOUA343.js";import"./chunk-NTR3TDVI.js";import{a as U}from"./chunk-RYEACL6S.js";import"./chunk-F2AP4GBC.js";import{a as V}from"./chunk-HJT47KQS.js";import"./chunk-WHU4XXSE.js";import{a as L}from"./chunk-T24IL6KT.js";import"./chunk-WLKXPJJQ.js";import"./chunk-CKJXIJEW.js";import"./chunk-LAU2ENCL.js";import"./chunk-4VQTCAIV.js";import"./chunk-3PRPTJWC.js";import"./chunk-LOYHO3JD.js";import"./chunk-POB67RW2.js";import"./chunk-KYQEO6VJ.js";import{a as j,b as F}from"./chunk-44OM7VNA.js";import"./chunk-RIDV7OZG.js";import"./chunk-AI2H4MTZ.js";import"./chunk-RZWUF2WE.js";import"./chunk-UETGTCDH.js";import"./chunk-PN5AYVQ6.js";import{b as R}from"./chunk-MEP7XRVN.js";import"./chunk-5BDXO5V3.js";import"./chunk-KCEJCXJZ.js";import"./chunk-5BVZXLFA.js";import{g as z}from"./chunk-RTGIJOJ3.js";import"./chunk-N4VJFAAV.js";import"./chunk-7LORS5UB.js";import"./chunk-OCRPHCVN.js";import"./chunk-WXLVEQ4T.js";import"./chunk-I335Z6VX.js";import"./chunk-YYKWFEMG.js";import"./chunk-D2N3WVHQ.js";import"./chunk-OP5LXOJA.js";import"./chunk-ARD6OICO.js";import{e as q}from"./chunk-BBHJ2D5U.js";import"./chunk-RH7YKMCI.js";import{a as B}from"./chunk-2P2IIG2U.js";import{g as T}from"./chunk-J3TYBNDU.js";import"./chunk-4QCSDQDN.js";import"./chunk-W3MH5BOT.js";import{A as N,q as D,w as E}from"./chunk-GUQT3FOM.js";import{Dd as v,Eb as o,Fd as x,Lb as f,Sc as h,Ub as C,Vb as b,fd as c,gd as w,hd as u,id as _,ma as P,na as S,pc as s,qa as O,rc as l,s as y,vd as I,wc as d,wd as p,xc as a,yc as i,zc as g}from"./chunk-H5RMQNTW.js";import"./chunk-EU2KAMEK.js";import"./chunk-YNC7RVHT.js";var H=(()=>{class t{constructor(e){this.http=e,this.baseUrl=B.typeSense.url}async getInvestmentChecklist(e){return await y(this.http.get(`${this.baseUrl}/collections/investment_checklist/documents/${e}`))}static{this.\u0275fac=function(n){return new(n||t)(O(T))}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var W=()=>({"border-radius":"5px",height:"50px","background-color":"#ededed"}),X=t=>({width:"30px",height:"30px","border-radius":"50%","background-color":t,display:"flex","align-items":"center","justify-content":"center","margin-right":"12px","flex-shrink":"0"}),$=t=>({width:"30px",height:"30px","border-radius":"50%","background-color":t,display:"flex","align-items":"center","justify-content":"center","margin-right":"12px","flex-shrink":0}),Z=t=>({color:t}),ee=t=>({width:"30px",height:"30px","border-radius":"50%","background-color":t}),te=t=>({fontSize:"13px",color:t});function ne(t,r){t&1&&(a(0,"div",1),g(1,"ngx-skeleton-loader",2),i()),t&2&&(o(),d("theme",I(1,W)))}function ie(t,r){t&1&&(a(0,"div",3)(1,"p",5),c(2," No data available for this investment. "),i()())}function oe(t,r){t&1&&(a(0,"span",12),c(1," \u25B2 "),i())}function ae(t,r){t&1&&(a(0,"span",13),c(1," \u25BC "),i())}function ce(t,r){if(t&1&&(a(0,"div",14),c(1),i()),t&2){let e=h(4);o(),u(" ",e.getRiskLevelLabel(e.investmentData.risk_level)," ")}}function re(t,r){t&1&&c(0," - ")}function se(t,r){t&1&&(a(0,"span",12),c(1,"\u25B2"),i())}function le(t,r){t&1&&(a(0,"span",13),c(1,"\u25BC"),i())}function de(t,r){t&1&&(a(0,"span",23),c(1,"="),i())}function me(t,r){t&1&&(a(0,"span",23),c(1,"\u2014"),i())}function pe(t,r){if(t&1&&(a(0,"div",4)(1,"div",6)(2,"div",7)(3,"div",8),c(4," Investment Checklist "),i()(),a(5,"div",9)(6,"div",10)(7,"div",11),s(8,oe,2,0,"span",12),s(9,ae,2,0,"span",13),i(),a(10,"div",14),c(11),i()(),a(12,"p",15),c(13),v(14,"sumPipe"),i()(),a(15,"div",9)(16,"div",10)(17,"div",11),g(18,"fa-icon",16),i(),s(19,ce,2,1,"div",14)(20,re,1,0),i(),a(21,"p",15),c(22),v(23,"number"),i()(),a(24,"div",9)(25,"div",10)(26,"div",17)(27,"span",18),g(28,"fa-icon",19),i()(),a(29,"div",14),c(30),i()(),a(31,"p",20),c(32),v(33,"number"),i()(),a(34,"div",21)(35,"div",22)(36,"div",11)(37,"span"),s(38,se,2,0,"span",12)(39,le,2,0,"span",13)(40,de,2,0,"span",23)(41,me,2,0,"span",23),i()(),a(42,"div",14),c(43),i()(),a(44,"p",24)(45,"span"),c(46),i()()()()()),t&2){let e,n=h(3);o(7),d("ngStyle",p(29,X,n.investmentData.expected_annual_return>=0?"#e8f5e9":"#ffebee")),o(),l(n.investmentData.expected_annual_return>=0?8:-1),o(),l(n.investmentData.expected_annual_return<0?9:-1),o(2),u(" ",n.investmentData.expected_annual_return,"% Expected Annual Return "),o(2),_(" Based on 1 year median target stock price of ",x(14,20,n.investmentData.target_price,n.currency||"")," and annual dividend yield of ",n.investmentData.dividendYield,"% "),o(4),d("ngStyle",p(31,$,n.getRiskBackgroun
1dColor(n.investmentData.risk_level))),o(),d("ngStyle",p(33,Z,n.getRiskIconColor(n.investmentData.risk_level))),o(),l(n.investmentData?.risk_level?19:20),o(3),_(" This stock is ",x(23,23,n.investmentData==null?null:n.investmentData.risk_level,"1.2-2"),"x as volatile as the ",n.investmentData?.index||"-"," "),o(5),d("ngStyle",p(35,ee,n.getSharpeTextColor(n.investmentData.sharpe_ratio))),o(),d("ngStyle",p(37,te,n.getSharpeColor(n.investmentData.sharpe_ratio))),o(2),u(" ",n.getSharpeRating(n.investmentData.sharpe_ratio)," Sharpe Ratio "),o(2),_(" This stock has a Sharpe ratio of ",x(33,26,n.investmentData.sharpe_ratio,"1.2-2")," and is expected to give ",n.getSharpeRating(n.investmentData.sharpe_ratio)," returns compared to the risk involved. "),o(4),d("ngStyle",p(39,$,n.getBackgroundColor(n.investmentData.scale))),o(2),l((e=n.getScaleIndicator(n.investmentData.scale))==="higher"?38:e==="lower"?39:e==="equal"?40:41),o(5),u(" ",n.investmentData.dividendYield,"% Dividend Yield "),o(3),w(n.investmentData.scale)}}function ge(t,r){if(t&1&&(s(0,ie,3,0,"div",3),s(1,pe,47,41,"div",4)),t&2){let e=h(2);l(e.hasValidData()?-1:0),o(),l(e.hasValidData()?1:-1)}}function fe(t,r){if(t&1&&s(0,ge,2,2),t&2){let e=h();l(e.canReadInvestmentChecklist||e.isSample?0:-1)}}var k=(()=>{class t{constructor(e,n,m,K){this.investmentService=e,this.auth=n,this.permissionStore=m,this.conditionalRenderingService=K,this.isSample=!1,this.loading2=!1,this.investmentData=null,this.isLoggedIn=!1,this.canReadInvestmentChecklist=!1,this.subscriptions=[]}ngOnInit(){this.isLoggedIn=this.auth.isLoggedIn(),this.subscriptions.push(this.permissionStore.select(({permissions:e})=>e.permissions).subscribe(e=>{this.fetchData(this.ticker),this.isLoggedIn=this.auth.isLoggedIn(),this.canReadInvestmentChecklist=e.trending_halal_stocks}))}onViewSampleClicked(e){this.conditionalRenderingService.setComponentType(e)}getSharpeRating(e){return e<1?"Bad":e>=1&&e<2?"Good":e>=2&&e<3?"Very Good":"Excellent"}getRiskLevelLabel(e){return e>=0&&e<=.5?"Very Low Risk":e>.5&&e<=1?"Low Risk":e>1&&e<=1.5?"Moderate Risk":"High Risk"}getScaleIndicator(e){if(!e)return"unknown";let n=e.toLowerCase();return n.includes("higher")?"higher":n.includes("lower")?"lower":n.includes("equal")?"equal":"unknown"}getBackgroundColor(e){switch(this.getScaleIndicator(e)){case"higher":return"#e8f5e9";case"lower":return"#ffebee";case"equal":return"#f5f5f5";default:return"#f5f5f5"}}getSharpeColor(e){return e<1?"#ffebee":e>=1&&e<2?"#fffde7":e>=2&&e<3?"#e8f5e9":"#e3f2fd"}getSharpeBackgroundColor(e){return e<1?"#ffeded":e<2?"#fff8e1":e<3?"#e8f5e9":"#e3f2fd"}getSharpeTextColor(e){return e<1?"#f44336":e<2?"#ff9800":e<3?"#4caf50":"#2196f3"}getRiskBackgroundColor(e){return e<=.5?"#e8f5e9":e<=1?"#fff8e1":e<=1.5?"#fff3e0":"#ffebee"}getRiskIconColor(e){return e<=.5?"#4caf50":e<=1?"#fdc600":e<=1.5?"#ff9800":"#f44336"}hasValidData(){return!!this.investmentData&&(this.investmentData.expected_annual_return||this.investmentData.dividendYield||this.investmentData.risk_level||this.investmentData.sharpe_ratio)}async fetchData(e){this.loading2=!0;try{this.investmentData=await this.investmentService.getInvestmentChecklist(e)}catch(n){console.error("Error fetching investment data:",n)}finally{this.loading2=!1}}static{this.\u0275fac=function(n){return new(n||t)(f(H),f(q),f(z),f(Y))}}static{this.\u0275cmp=C({type:t,selectors:[["app-new-investment-checklist"]],inputs:{ticker:"ticker",countryCode:"countryCode",currency:"currency",status:"status",isSample:"isSample"},decls:3,vars:2,consts:[[1,"px-lg-0","checklist-wrapper"],[1,"loader-wrapper"],["count","4",3,"theme"],[1,"text-center","py-5"],[2,"max-width","680px","border-radius","12px","box-shadow","0 2px 10px rgba(0, 0, 0, 0.1)","overflow","hidden","margin","0 auto","background-color","white"],[2,"font-size","16px","color","#888"],[2,"padding-top","24px"],[2,"display","flex","align-items","center","border-left","4px solid #4caf50","padding-left","16px"],[2,"margin","0","font-size","24px","font-weight","600"],[2,"padding","22px","border-bottom","1px solid #f0f0f0","box-shadow","0 2px 4px rgba(0, 0, 0, 0.05)"],[2,"display","flex","align-items","center"],[3,"ngStyle"],[2,"font-size","16px","color","#4caf50"],[2,"font-size","16px","color","#f44336"],[2,"font-size","16px","font-weight","600","margin","0"],[2,"margin","8px 0 0 0","font-size","12.8px","color","#666","line-height","1.5"],["icon","exclamation",3,"ngStyle"],[2,"width","30px","height","30px","border-radius","50%","background-color","#ffeded","display","flex","align-items","center","justify-content","center","margin-right","12px","flex-shrink","0"],[1,"icon-span","pos","icon-caret","d-flex","align-items-center","justify-content-center",3,"ngStyle"],["icon","scale-balanced",3,"ngStyle"],[2,"margin","8px 0 0 0","font-size","12.8px","color","#666"],[2,"margin-bottom","0","padding","22px","box-shadow","0 2px 4px rgba(0, 0, 0, 0.05)"],[2,"display","flex","align-items","center","margin-bottom","6px"],[2,"font-size","16px","color","#9e9e9e"],[1,"mb-0","checklist-para","d-inline-block",2,"font-size","12.8px"]],template:function(n,m){n&1&&(a(0,"div",0),s(1,ne,2,2,"div",1),s(2,fe,1,1),i()),n&2&&(o(),l(m.loading2?1:-1),o(),l(m.loading2?-1:2))},dependencies:[R,j,D,E,L],styles:[".loader-wrapper[_ngcontent-%COMP%]{background:#fff;padding:10px;border-radius:10px;border:1px solid #dfdfec}.checklist-wrapper[_ngcontent-%COMP%]{margin-top:1.5rem}@media(min-width:992px){.checklist-wrapper[_ngcontent-%COMP%]{margin-top:2rem}}.checklist-section[_ngcontent-%COMP%]{border:1px solid #EBEBEB;border-radius:.625rem;padding:1.5rem 1rem}@media(min-width:992px){.checklist-section[_ngcontent-%COMP%]{padding:1.5rem}}.checklist-section[_ngcontent-%COMP%]   .key-heading[_ngcontent-%COMP%]{font-size:1.25rem;color:#000}@media(min-width:992px){.checklist-section[_ngcontent-%COMP%]   .key-heading[_ngcontent-%COMP%]{font-size:1.5rem}}.checklist-item[_ngcontent-%COMP%]{padding:1rem 0}.checklist-item[_ngcontent-%COMP%]:last-child{padding:1rem 0 0}.checklist-item[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #E4E4E4}
1.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]{font-size:1rem}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]{aspect-ratio:1;width:1.5rem;border-radius:50%;display:flex;align-items:center;justify-content:center}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   .fa-play.pos[_ngcontent-%COMP%]{color:#1bad4e;transform:rotate(-90deg)}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   .fa-play.neg[_ngcontent-%COMP%]{color:#de4348;transform:rotate(90deg)}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   .fa-play.zero[_ngcontent-%COMP%]{color:#000;transform:rotate(0)}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:.75rem;line-height:1}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   i.pos[_ngcontent-%COMP%]{color:#1bad4e}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   i.neg[_ngcontent-%COMP%]{color:#de4348}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   i.mod[_ngcontent-%COMP%]{color:#fdc600}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   i.null[_ngcontent-%COMP%]{color:#000}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span[_ngcontent-%COMP%]   i.zero[_ngcontent-%COMP%]{color:#161616}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span.pos[_ngcontent-%COMP%]{background-color:#e5f3ea}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span.neg[_ngcontent-%COMP%]{background-color:#ffeded}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span.mod[_ngcontent-%COMP%]{background-color:#fef9e3}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span.null[_ngcontent-%COMP%]{background-color:#e4e4e4}.checklist-item[_ngcontent-%COMP%]   .checklist-heading[_ngcontent-%COMP%]   .icon-span.zero[_ngcontent-%COMP%]{background-color:#eaeaea}.checklist-item[_ngcontent-%COMP%]   .checklist-para[_ngcontent-%COMP%]{font-size:.8rem;color:#3e3e3e}"],changeDetection:1})}}return t})();var J=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=b({type:t})}static{this.\u0275inj=S({imports:[N,F,V,G,U,A,k]})}}return t})();var Be=(()=>{class t{constructor(){this.countryCode="",this.currency="",this.status="",this.ticker=""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=C({type:t,selectors:[["app-deferred-investment-checklist"]],inputs:{countryCode:"countryCode",currency:"currency",status:"status",ticker:"ticker"},decls:1,vars:4,consts:[[3,"ticker","countryCode","currency","status"]],template:function(n,m){n&1&&g(0,"app-new-investment-checklist",0),n&2&&d("ticker",m.ticker)("countryCode",m.countryCode)("currency",m.currency)("status",m.status)},dependencies:[J,k],encapsulation:2})}}return t})();export{Be as DeferredInvestmentChecklistComponent};

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.