-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path278-es2015.4bc9b08c821c6502e5e9.js
More file actions
2 lines (2 loc) · 5.51 KB
/
278-es2015.4bc9b08c821c6502e5e9.js
File metadata and controls
2 lines (2 loc) · 5.51 KB
1
2
"use strict";(self.webpackChunkrxjs_dev=self.webpackChunkrxjs_dev||[]).push([[278],{21278:function(t,n,o){o.r(n),o.d(n,{ContributorListModule:function(){return A}});var r=o(54364),e=o(2316),i=o(49005),s=o(14823),c=o(70095),u=o(53882);const a=c.bL+"contributors.json",p=["Core Team","Learning Team","Alumn","Contributors"];let f=(()=>{class t{constructor(t){this.http=t,this.contributors=this.getContributors()}getContributors(){const t=this.http.get(a).pipe((0,i.U)(t=>{const n={};return Object.keys(t).forEach(o=>{const r=t[o],e=r.group,i=n[e];i?i.push(r):n[e]=[r]}),n}),(0,i.U)(t=>Object.keys(t).map(n=>{const o=p.indexOf(n);return{name:n,order:-1===o?p.length:o,contributors:t[n].sort(l)}}).sort(g)),(0,s.C)());return t.connect(),t}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(u.eN))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();function l(t,n){return t.name.toUpperCase()>n.name.toUpperCase()?1:-1}function g(t,n){return t.order===n.order?t.name>n.name?1:-1:t.order>n.order?1:-1}var d=o(55370);function b(t,n){1&t&&(e.TgZ(0,"a",7),e._uU(1," View Bio "),e.qZA())}function h(t,n){if(1&t&&(e.TgZ(0,"a",8),e.NdJ("click",function(t){return t.stopPropagation()}),e._UZ(1,"span",9),e.TgZ(2,"span",10),e._uU(3),e.qZA(),e.qZA()),2&t){const t=e.oxw();e.s9C("href",t.person.twitter,e.LSH),e.xp6(3),e.hij("Twitter ",t.person.name,"")}}function m(t,n){if(1&t&&(e.TgZ(0,"a",8),e.NdJ("click",function(t){return t.stopPropagation()}),e._UZ(1,"span",11),e.TgZ(2,"span",10),e._uU(3),e.qZA(),e.qZA()),2&t){const t=e.oxw();e.s9C("href",t.person.github,e.LSH),e.xp6(3),e.hij("Github ",t.person.name,"")}}function Z(t,n){if(1&t&&(e.TgZ(0,"a",8),e.NdJ("click",function(t){return t.stopPropagation()}),e._UZ(1,"span",12),e.TgZ(2,"span",10),e._uU(3),e.qZA(),e.qZA()),2&t){const t=e.oxw();e.s9C("href",t.person.website,e.LSH),e.xp6(3),e.hij("Personal website ",t.person.name,"")}}function x(t,n){if(1&t){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return n.flipCard(n.person)}),e.TgZ(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"p",14),e._uU(4),e.qZA(),e.qZA()}if(2&t){const t=e.oxw();e.xp6(2),e.Oqu(t.person.name),e.xp6(2),e.Oqu(t.person.bio)}}const k=function(t){return{flipped:t}};let q=(()=>{class t{constructor(){this.noPicture="_no-one.png",this.pictureBase=c.bL+"images/bios/"}flipCard(t){t.isFlipped=!t.isFlipped}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["aio-contributor"]],inputs:{person:"person"},decls:11,vars:11,consts:[[1,"contributor-card",3,"ngClass"],[1,"card-front"],[1,"contributor-image"],[1,"contributor-info"],["mat-button","",4,"ngIf"],["mat-button","","class","icon","target","_blank",3,"href","click",4,"ngIf"],["class","card-back",3,"click",4,"ngIf"],["mat-button",""],["mat-button","","target","_blank",1,"icon",3,"href","click"],["aria-hidden","true",1,"fa","fa-twitter","fa-2x"],[1,"sr-only"],["aria-hidden","true",1,"fa","fa-github","fa-2x"],["aria-hidden","true",1,"fa","fa-link","fa-2x"],[1,"card-back",3,"click"],[1,"contributor-bio"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"h3"),e._uU(3),e.qZA(),e.TgZ(4,"div",2),e.TgZ(5,"div",3),e.YNc(6,b,2,0,"a",4),e.YNc(7,h,4,2,"a",5),e.YNc(8,m,4,2,"a",5),e.YNc(9,Z,4,2,"a",5),e.qZA(),e.qZA(),e.qZA(),e.YNc(10,x,5,2,"div",6),e.qZA()),2&t&&(e.Q6J("ngClass",e.VKq(9,k,n.person.isFlipped)),e.xp6(3),e.Oqu(n.person.name),e.xp6(1),e.Udp("background-image","url("+(n.person.picture||n.noPicture)+")"),e.xp6(2),e.Q6J("ngIf",n.person.bio),e.xp6(1),e.Q6J("ngIf",n.person.twitter),e.xp6(1),e.Q6J("ngIf",n.person.github),e.xp6(1),e.Q6J("ngIf",n.person.website),e.xp6(1),e.Q6J("ngIf",n.person.isFlipped))},directives:[r.mk,r.O5],encapsulation:2}),t})();function w(t,n){if(1&t){const t=e.EpF();e.TgZ(0,"a",3),e.NdJ("click",function(){const n=e.CHM(t).$implicit;return e.oxw().selectGroup(n)}),e._uU(1),e.qZA()}if(2&t){const t=n.$implicit,o=e.oxw();e.ekj("selected",t==o.selectedGroup.name),e.xp6(1),e.Oqu(t)}}function v(t,n){1&t&&e._UZ(0,"aio-contributor",7),2&t&&e.Q6J("person",n.$implicit)}function C(t,n){if(1&t&&(e.TgZ(0,"section",4),e.TgZ(1,"div",5),e.YNc(2,v,1,1,"aio-contributor",6),e.qZA(),e.qZA()),2&t){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.selectedGroup.contributors)}}let T=(()=>{class t{constructor(t,n){this.contributorService=t,this.locationService=n}ngOnInit(){const t=this.locationService.search().group||"";this.contributorService.contributors.subscribe(n=>{this.groups=n,this.groupNames=n.map(t=>t.name),this.selectGroup(t)})}selectGroup(t){t=t.toLowerCase(),this.selectedGroup=this.groups.find(n=>n.name.toLowerCase()===t)||this.groups[0],this.locationService.setSearch("",{group:this.selectedGroup.name})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f),e.Y36(d.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["aio-contributor-list"]],decls:3,vars:2,consts:[[1,"flex-center","group-buttons"],["class","button mat-button filter-button",3,"selected","click",4,"ngFor","ngForOf"],["class","grid-fluid",4,"ngIf"],[1,"button","mat-button","filter-button",3,"click"],[1,"grid-fluid"],[1,"contributor-group"],[3,"person",4,"ngFor","ngForOf"],[3,"person"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e.YNc(1,w,2,3,"a",1),e.qZA(),e.YNc(2,C,3,1,"section",2)),2&t&&(e.xp6(1),e.Q6J("ngForOf",n.groupNames),e.xp6(1),e.Q6J("ngIf",n.selectedGroup))},directives:[r.sg,r.O5,q],encapsulation:2}),t})(),A=(()=>{class t{constructor(){this.customElementComponent=T}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[f],imports:[[r.ez]]}),t})()}}]);
//# sourceMappingURL=278-es2015.4bc9b08c821c6502e5e9.js.map