-
Notifications
You must be signed in to change notification settings - Fork 2
/
9-es5.1d84aaed98636d5a2439.js
2 lines (2 loc) · 7.37 KB
/
9-es5.1d84aaed98636d5a2439.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"ll+R":function(n,l,u){"use strict";u.r(l);var t=u("CcnG"),o=function(){function n(n,l){this.contributorService=n,this.locationService=l}return n.prototype.ngOnInit=function(){var n=this,l=this.locationService.search().group||"";this.contributorService.contributors.subscribe(function(u){n.groups=u,n.groupNames=u.map(function(n){return n.name}),n.selectGroup(l)})},n.prototype.selectGroup=function(n){n=n.toLowerCase(),this.selectedGroup=this.groups.find(function(l){return l.name.toLowerCase()===n})||this.groups[0],this.locationService.setSearch("",{group:this.selectedGroup.name})},n}(),r=function(){return function(){this.customElementComponent=o}}(),i=u("Mr+X"),c=u("SMsm"),e=u("Ip0R"),s=u("jn67"),a=function(){function n(){this.noPicture="_no-one.png",this.pictureBase=s.a+"images/bios/"}return n.prototype.flipCard=function(n){n.isFlipped=!n.isFlipped},n}(),b=t.ob({encapsulation:2,styles:[],data:{}});function p(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,1,"a",[["class","info-item"],["mat-button",""]],null,null,null,null,null)),(n()(),t.Gb(-1,null,[" View Bio "]))],null,null)}function f(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,2,"a",[["class","info-item icon"],["mat-icon-button",""],["target","_blank"]],[[8,"href",4]],[[null,"click"]],function(n,l,u){var t=!0;return"click"===l&&(t=!1!==u.stopPropagation()&&t),t},null,null)),(n()(),t.qb(1,0,null,null,1,"mat-icon",[["class","mat-icon notranslate"],["role","img"],["svgIcon","logos:twitter"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,i.b,i.a)),t.pb(2,9158656,null,0,c.b,[t.k,c.d,[8,null],[2,c.a]],{svgIcon:[0,"svgIcon"]},null)],function(n,l){n(l,2,0,"logos:twitter")},function(n,l){n(l,0,0,t.sb(1,"https://twitter.com/",l.component.person.twitter,"")),n(l,1,0,t.Ab(l,2).inline,"primary"!==t.Ab(l,2).color&&"accent"!==t.Ab(l,2).color&&"warn"!==t.Ab(l,2).color)})}function m(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,3,"a",[["class","info-item icon"],["mat-icon-button",""],["target","_blank"]],[[8,"href",4]],[[null,"click"]],function(n,l,u){var t=!0;return"click"===l&&(t=!1!==u.stopPropagation()&&t),t},null,null)),(n()(),t.qb(1,0,null,null,2,"mat-icon",[["class","link-icon mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,i.b,i.a)),t.pb(2,9158656,null,0,c.b,[t.k,c.d,[8,null],[2,c.a]],null,null),(n()(),t.Gb(-1,0,["link"]))],function(n,l){n(l,2,0)},function(n,l){n(l,0,0,t.sb(1,"",l.component.person.website,"")),n(l,1,0,t.Ab(l,2).inline,"primary"!==t.Ab(l,2).color&&"accent"!==t.Ab(l,2).color&&"warn"!==t.Ab(l,2).color)})}function g(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,4,"div",[["class","card-back"]],null,[[null,"click"]],function(n,l,u){var t=!0,o=n.component;return"click"===l&&(t=!1!==o.flipCard(o.person)&&t),t},null,null)),(n()(),t.qb(1,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),t.Gb(2,null,["",""])),(n()(),t.qb(3,0,null,null,1,"p",[["class","contributor-bio"]],null,null,null,null,null)),(n()(),t.Gb(4,null,["",""]))],null,function(n,l){var u=l.component;n(l,2,0,u.person.name),n(l,4,0,u.person.bio)})}function d(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,16,"div",[["class","contributor-card"]],null,null,null,null,null)),t.Db(512,null,e.w,e.x,[t.t,t.u,t.k,t.F]),t.pb(2,278528,null,0,e.i,[e.w],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),t.Cb(3,{flipped:0}),(n()(),t.qb(4,0,null,null,10,"div",[["class","card-front"]],null,[[null,"click"]],function(n,l,u){var t=!0,o=n.component;return"click"===l&&(t=!1!==o.flipCard(o.person)&&t),t},null,null)),(n()(),t.qb(5,0,null,null,1,"h3",[],null,null,null,null,null)),(n()(),t.Gb(6,null,["",""])),(n()(),t.qb(7,0,null,null,7,"div",[["class","contributor-image"]],[[4,"background-image",null]],null,null,null,null)),(n()(),t.qb(8,0,null,null,6,"div",[["class","contributor-info"]],null,null,null,null,null)),(n()(),t.gb(16777216,null,null,1,null,p)),t.pb(10,16384,null,0,e.k,[t.Q,t.N],{ngIf:[0,"ngIf"]},null),(n()(),t.gb(16777216,null,null,1,null,f)),t.pb(12,16384,null,0,e.k,[t.Q,t.N],{ngIf:[0,"ngIf"]},null),(n()(),t.gb(16777216,null,null,1,null,m)),t.pb(14,16384,null,0,e.k,[t.Q,t.N],{ngIf:[0,"ngIf"]},null),(n()(),t.gb(16777216,null,null,1,null,g)),t.pb(16,16384,null,0,e.k,[t.Q,t.N],{ngIf:[0,"ngIf"]},null)],function(n,l){var u=l.component,t=n(l,3,0,u.person.isFlipped);n(l,2,0,"contributor-card",t),n(l,10,0,u.person.bio),n(l,12,0,u.person.twitter),n(l,14,0,u.person.website),n(l,16,0,u.person.isFlipped)},function(n,l){var u=l.component;n(l,6,0,u.person.name),n(l,7,0,"url("+u.pictureBase+(u.person.picture||u.noPicture)+")")})}var v=u("67Y/"),h=u("kR3u"),k=s.a+"contributors.json",I=["Angular","Collaborators","GDE"],q=function(){function n(n){this.http=n,this.contributors=this.getContributors()}return n.prototype.getContributors=function(){var n=this.http.get(k).pipe(Object(v.a)(function(n){var l={};return Object.keys(n).forEach(function(u){var t=n[u];t.groups.forEach(function(n){(l[n]||(l[n]=[])).push(t)})}),l}),Object(v.a)(function(n){return Object.keys(n).map(function(l){var u=I.indexOf(l);return{name:l,order:-1===u?I.length:u,contributors:n[l].sort(w)}}).sort(y)}),Object(h.a)());return n.connect(),n},n}();function w(n,l){return n.name.toUpperCase()>l.name.toUpperCase()?1:-1}function y(n,l){return n.order===l.order?n.name>l.name?1:-1:n.order>l.order?1:-1}var C=u("/lUL"),G=t.ob({encapsulation:2,styles:[],data:{}});function j(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,1,"a",[["class","button mat-button filter-button"]],[[2,"selected",null]],[[null,"click"]],function(n,l,u){var t=!0;return"click"===l&&(t=!1!==n.component.selectGroup(n.context.$implicit)&&t),t},null,null)),(n()(),t.Gb(1,null,["",""]))],null,function(n,l){n(l,0,0,l.context.$implicit==l.component.selectedGroup.name),n(l,1,0,l.context.$implicit)})}function F(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,1,"aio-contributor",[],null,null,null,d,b)),t.pb(1,49152,null,0,a,[],{person:[0,"person"]},null)],function(n,l){n(l,1,0,l.context.$implicit)},null)}function N(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,3,"section",[["class","grid-fluid"]],null,null,null,null,null)),(n()(),t.qb(1,0,null,null,2,"div",[["class","contributor-group"]],null,null,null,null,null)),(n()(),t.gb(16777216,null,null,1,null,F)),t.pb(3,278528,null,0,e.j,[t.Q,t.N,t.t],{ngForOf:[0,"ngForOf"]},null)],function(n,l){n(l,3,0,l.component.selectedGroup.contributors)},null)}function O(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,2,"div",[["class","flex-center group-buttons"]],null,null,null,null,null)),(n()(),t.gb(16777216,null,null,1,null,j)),t.pb(2,278528,null,0,e.j,[t.Q,t.N,t.t],{ngForOf:[0,"ngForOf"]},null),(n()(),t.gb(16777216,null,null,1,null,N)),t.pb(4,16384,null,0,e.k,[t.Q,t.N],{ngIf:[0,"ngIf"]},null)],function(n,l){var u=l.component;n(l,2,0,u.groupNames),n(l,4,0,u.selectedGroup)},null)}function A(n){return t.Ib(0,[(n()(),t.qb(0,0,null,null,1,"aio-contributor-list",[],null,null,null,O,G)),t.pb(1,114688,null,0,o,[q,C.a],null,null)],function(n,l){n(l,1,0)},null)}var x=t.mb("aio-contributor-list",o,A,{},{},[]),Q=u("t/Na"),S=u("Fzqc"),B=u("Wf4p"),E=u("ZYjt");u.d(l,"ContributorListModuleNgFactory",function(){return L});var L=t.nb(r,[],function(n){return t.xb([t.yb(512,t.j,t.bb,[[8,[x]],[3,t.j],t.y]),t.yb(4608,e.m,e.l,[t.v,[2,e.B]]),t.yb(4608,q,q,[Q.c]),t.yb(1073742336,e.c,e.c,[]),t.yb(1073742336,S.a,S.a,[]),t.yb(1073742336,B.c,B.c,[[2,B.a],[2,E.f]]),t.yb(1073742336,c.c,c.c,[]),t.yb(1073742336,r,r,[])])})}}]);
//# sourceMappingURL=9-es5.1d84aaed98636d5a2439.js.map