1import{a as Q}from"./chunk-RUVFNPDI.js";import{a as E}from"./chunk-JPRCKVBQ.js";import{a as P}from"./chunk-7UAKFZLC.js";import{c as O,f as M,k as I}from"./chunk-EDFMU7GT.js";import"./chunk-6PUHQSC3.js";import"./chunk-FVC5PMXW.js";import{C as S,l as C,m as q}from"./chunk-CS4TAPTJ.js";import{Cb as x,Cc as r,Dc as v,Ec as c,Fc as y,Ib as l,Ub as p,a as h,dc as i,ec as o,fc as f,hb as g,nb as n,oc as m,rc as b,sc as _,tb as u}from"./chunk-JZTFMAZ4.js";import"./chunk-JILVGSAM.js";function w(e,d){if(e&1&&(i(0,"div",4)(1,"div",7)(2,"ol",8)(3,"li")(4,"a",9),r(5,"Home"),o()(),i(6,"li")(7,"a",10),r(8,"Quotes"),o()(),i(9,"li"),r(10),o()()()()),e&2){let t=m();n(10),c(" Quotes by ",t.author,"")}}function A(e,d){if(e&1&&(i(0,"div",4)(1,"div",11)(2,"h1"),r(3),i(4,"span",12),r(5),o()()()()),e&2){let t=m();n(3),c("Quotes by ",t.author," "),n(2),c("(",t.quotes.length,")")}}function k(e,d){if(e&1&&(i(0,"span"),r(1),o()),e&2){let t=m().$implicit;n(),c(", ",t.person.description,"")}}function F(e,d){if(e&1&&(i(0,"div")(1,"div",13)(2,"div",14),r(3),l(4,k,2,1,"span",15),o(),i(5,"div",16)(6,"div",17),r(7),o(),i(8,"div",18)(9,"a",19),r(10),o()(),i(11,"div",20)(12,"a",21),r(13),o()()()()()),e&2){let t=d.$implicit;n(3),y("",t.person.name," ",t.person.name_last,""),n(),p("ngIf",t.person.description!=null&&t.person.description!=""),n(3),v(t.quote),n(2),b("href",t.sourceurl,g),n(),c(" - ",t.source,""),n(2),_("href","/12steps/",t.tags.replace(" ",""),"/",g),n(),v(t.tags)}}var $=(()=>{class e{route;ds;head;routeSubscription=new h;subqa=new h;quotes=[];author="";authorFriendlyUrl="";constructor(t,s,a){this.route=t,this.ds=s,this.head=a}ngOnInit(){this.routeSubscription=this.route.params.subscribe(t=>{t&&t.author!=null&&(this.authorFriendlyUrl=t.author,this.subqa=this.ds.getQuotesByAuthor(this.authorFriendlyUrl).subscribe({next:s=>{s.forEach(a=>{a.person.friendlyUrl==this.authorFriendlyUrl&&(this.author=a.person.name_last!=null?a.person.name+" "+a.person.name_last:a.person.name,this.head.setTitle(`Quotes by Author: ${this.author}`),this.head.setKeywords(this.author+",quotes,sayings,investing quotes"),this.head.setDescription(`Read quotes about investing, markets, and times from '${this.author}.`))}),this.quotes=s},error:s=>{alert("Something unexpected occurs, please refresh your browser or retry later.")}}))})}ngOnDestroy(){this.subqa.unsubscribe(),this.routeSubscription.unsubscribe()}static \u0275fac=function(s){return new(s||e)(u(O),u(Q),u(P))};static \u0275cmp=x({type:e,selectors:[["app-quotes-by-author"]],decls:11,vars:3,consts:[["title","Quotes",1,"rust_graph"],[1,"container"],["class","row",4,"ngIf"],[1,"col-12","qdisclaimer","mb-3"],[1,"row"],[1,"col-md-12"],[4,"ngFor","ngForOf"],[1,"col-md-12","d-sm-none","d-md-block"],[1,"breadcrumb"],["routerLink","/"],["routerLink","/quotes"],[1,"col-md-12","mb-3"],[1,"count"],[1,"quote"],[1,"qName"],[4,"ngIf"],[1,"qText"],[1,"qQuote"],[1,"qSource"],["target","_blank",1,"text-decoration-none",3,"href"],[1,"qStep"],[3,"href"]],template:function(s,a){s&1&&(f(0,"app-jumbotron",0),i(1,"div",1),l(2,w,11,1,"div",2),i(3,"div",3),r(4," *Quotes and pictures are utilized for illustrative purposes only and should not be construed as an endorsement, recommendation, or guarantee of any particular financial product, service, or advisor. "),o(),l(5,A,6,2,"div",2),i(6,"div",4)(7,"div",5),l(8,F,14,9,"div",6),o(),i(9,"div",4),f(10,"hr"),o()()()),s&2&&(n(2),p("ngIf",a.quotes.length),n(3),p("ngIf",a.quotes.length),n(3),p("ngForOf",a.quotes))},dependencies:[S,C,q,E,I,M],styles:[`h1[_ngcontent-%COMP%]{font-size:40px}.count[_ngcontent-%COMP%]{font-family:Open Sans,sans-serif;font-size:30px;font-weight:300}.breadcrumb[_ngcontent-%COMP%]{padding:8px 15px 8px 0;margin-bottom:20px;list-style:none;border-radius:4px;background-color:transparent!important}.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:inline-block}.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{content:"/ ";padding:0 5px;color:#ccc}.breadcrumb[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.quoteContainer[_ngcontent-%COMP%]{margin:0 20px 22px 0;height:auto;overflow:auto;padding:15px;border-bottom:1px solid #ccc;display:block;position:relative}.qImg[_ngcontent-%COMP%]{float:left;margin-right:20px;margin-bottom:20px}.quoteImage[_ngcontent-%COMP%]{width:100px}.qName[_ngcontent-%COMP%]{font-size:18px}.qText[_ngcontent-%COMP%]{margin-bottom:20px}.qQuote[_ngcontent-%COMP%]{display:inline}.qSource[_ngcontent-%COMP%]{display:inline;font-style:italic}.quoteAuthors[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#313e44;font-size:12px} 2/*# sourceMappingURL=quotes-by-author.component-22XIVSVZ.css.map */`]})}return e})();export{$ as QuotesByAuthorComponent}; 3//# sourceMappingURL=quotes-by-author.component-FKIBFT57.js.map
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.