-
Notifications
You must be signed in to change notification settings - Fork 1
/
11-es2015.255325ee89b8bf5333f6.js
2 lines (2 loc) · 4.53 KB
/
11-es2015.255325ee89b8bf5333f6.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{uway:function(l,n,u){"use strict";u.r(n);var t=u("8Y7J");class e{constructor(l,n){this.resourceService=n,this.scrollPos=0,this.location=l.pathname.replace(/^\/+/,"")}href(l){return this.location+"#"+l.id}ngOnInit(){this.resourceService.categories.subscribe(l=>this.categories=l)}onScroll(l){this.scrollPos=l&&(l.scrollTop||l.body.scrollTop)||0}}class o{constructor(){this.customElementComponent=e}}var r=u("SVse"),c=u("lJxs"),s=u("qZ0a");const i=u("jn67").a+"resources.json";class a{constructor(l){this.http=l,this.categories=this.getCategories()}getCategories(){const l=this.http.get(i).pipe(Object(c.a)(l=>(function(l){return Object.keys(l).map(n=>{const u=l[n];return{id:h(n),title:n,order:u.order,subCategories:b(u.subCategories,n)}}).sort(p)})(l)),Object(s.a)());return l.connect(),l}}function b(l,n){return Object.keys(l).map(u=>{const t=l[u];return{id:h(u),title:u,order:t.order,resources:f(t.resources,u,n)}}).sort(p)}function f(l,n,u){return Object.keys(l).map(t=>{const e=l[t];return e.category=u,e.subCategory=n,e.id=h(t),e}).sort(d)}function p(l,n){return l.order===n.order?d(l,n):l.order>n.order?1:-1}function d(l,n){return l.title.toUpperCase()>n.title.toUpperCase()?1:-1}function h(l){return l.toLowerCase().replace(/\s+/g,"-")}var g=t.mb({encapsulation:2,styles:[],data:{}});function m(l){return t.Gb(0,[(l()(),t.ob(0,0,null,null,6,"div",[["class","c-resource"]],null,null,null,null,null)),(l()(),t.ob(1,0,null,null,5,"a",[["class","l-flex--column resource-row-link"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(l()(),t.ob(2,0,null,null,4,"div",[],null,null,null,null,null)),(l()(),t.ob(3,0,null,null,1,"h4",[],null,null,null,null,null)),(l()(),t.Eb(4,null,["",""])),(l()(),t.ob(5,0,null,null,1,"p",[["class","resource-description"]],null,null,null,null,null)),(l()(),t.Eb(6,null,["",""]))],null,function(l,n){l(n,1,0,n.parent.context.$implicit.url),l(n,4,0,n.parent.context.$implicit.title),l(n,6,0,n.parent.context.$implicit.desc||"No Description")})}function w(l){return t.Gb(0,[(l()(),t.ob(0,0,null,null,2,"div",[],null,null,null,null,null)),(l()(),t.eb(16777216,null,null,1,null,m)),t.nb(2,16384,null,0,r.k,[t.O,t.L],{ngIf:[0,"ngIf"]},null)],function(l,n){l(n,2,0,n.context.$implicit.rev)},null)}function v(l){return t.Gb(0,[(l()(),t.ob(0,0,null,null,5,"div",[],null,null,null,null,null)),(l()(),t.ob(1,0,null,null,0,"a",[["class","h-anchor-offset"]],[[8,"id",0]],null,null,null,null)),(l()(),t.ob(2,0,null,null,1,"h3",[["class","subcategory-title"]],null,null,null,null,null)),(l()(),t.Eb(3,null,["",""])),(l()(),t.eb(16777216,null,null,1,null,w)),t.nb(5,278528,null,0,r.j,[t.O,t.L,t.r],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,5,0,n.context.$implicit.resources)},function(l,n){l(n,1,0,t.qb(1,"",n.context.$implicit.id,"")),l(n,3,0,n.context.$implicit.title)})}function O(l){return t.Gb(0,[(l()(),t.ob(0,0,null,null,7,"div",[["class","showcase"]],null,null,null,null,null)),(l()(),t.ob(1,0,null,null,3,"header",[["class","c-resource-header"]],null,null,null,null,null)),(l()(),t.ob(2,0,null,null,0,"a",[["class","h-anchor-offset"]],[[8,"id",0]],null,null,null,null)),(l()(),t.ob(3,0,null,null,1,"h2",[],null,null,null,null,null)),(l()(),t.Eb(4,null,["",""])),(l()(),t.ob(5,0,null,null,2,"div",[["class","shadow-1"]],null,null,null,null,null)),(l()(),t.eb(16777216,null,null,1,null,v)),t.nb(7,278528,null,0,r.j,[t.O,t.L,t.r],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,7,0,n.context.$implicit.subCategories)},function(l,n){l(n,2,0,t.qb(1,"",n.context.$implicit.id,"")),l(n,4,0,n.context.$implicit.title)})}function x(l){return t.Gb(0,[(l()(),t.ob(0,0,null,null,3,"div",[["class","resources-container"]],null,null,null,null,null)),(l()(),t.ob(1,0,null,null,2,"div",[["class","l-flex--column"]],null,null,null,null,null)),(l()(),t.eb(16777216,null,null,1,null,O)),t.nb(3,278528,null,0,r.j,[t.O,t.L,t.r],{ngForOf:[0,"ngForOf"]},null)],function(l,n){l(n,3,0,n.component.categories)},null)}function j(l){return t.Gb(0,[(l()(),t.ob(0,0,null,null,1,"aio-resource-list",[],null,[["window","scroll"]],function(l,n,u){var e=!0;return"window:scroll"===n&&(e=!1!==t.yb(l,1).onScroll(u.target)&&e),e},x,g)),t.nb(1,114688,null,0,e,[r.s,a],null,null)],function(l,n){l(n,1,0)},null)}var y=t.kb("aio-resource-list",e,j,{},{},[]),C=u("IheW");u.d(n,"ResourceListModuleNgFactory",function(){return $});var $=t.lb(o,[],function(l){return t.vb([t.wb(512,t.j,t.Z,[[8,[y]],[3,t.j],t.w]),t.wb(4608,r.m,r.l,[t.t,[2,r.B]]),t.wb(4608,a,a,[C.c]),t.wb(1073742336,r.c,r.c,[]),t.wb(1073742336,o,o,[])])})}}]);
//# sourceMappingURL=11-es2015.255325ee89b8bf5333f6.js.map