-
Notifications
You must be signed in to change notification settings - Fork 1
/
6-es2015.32643b9dc105927bebf3.js
2 lines (2 loc) · 2.51 KB
/
6-es2015.32643b9dc105927bebf3.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{WoO9:function(n,l,u){"use strict";u.r(l);var e=u("8Y7J"),t=u("JIr8"),o=u("lJxs");const a=u("jn67").a+"announcements.json";class r{constructor(n,l){this.http=n,this.logger=l}ngOnInit(){this.http.get(a).pipe(Object(t.a)(n=>(this.logger.error(new Error(`${a} request failed: ${n.message}`)),[])),Object(o.a)(n=>this.findCurrentAnnouncement(n)),Object(t.a)(n=>(this.logger.error(new Error(`${a} contains invalid data: ${n.message}`)),[]))).subscribe(n=>this.announcement=n)}findCurrentAnnouncement(n){return n.filter(n=>new Date(n.startDate).valueOf()<Date.now()).filter(n=>new Date(n.endDate).valueOf()>Date.now())[0]}}class c{constructor(){this.customElementComponent=r}}var b=u("SVse"),s=u("IheW"),i=u("vHPH"),w=e.mb({encapsulation:2,styles:[],data:{}});function m(n){return e.Gb(0,[(n()(),e.ob(0,0,null,null,5,"div",[["class","homepage-container"]],null,null,null,null,null)),(n()(),e.ob(1,0,null,null,4,"div",[["class","announcement-bar"]],null,null,null,null,null)),(n()(),e.ob(2,0,null,null,0,"img",[["alt",""]],[[8,"src",4]],null,null,null,null)),(n()(),e.ob(3,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(n()(),e.ob(4,0,null,null,1,"a",[["class","button"]],[[8,"href",4]],null,null,null,null)),(n()(),e.Eb(-1,null,["Learn More"]))],null,function(n,l){var u=l.component;n(l,2,0,u.announcement.imageUrl),n(l,3,0,u.announcement.message),n(l,4,0,u.announcement.linkUrl)})}function f(n){return e.Gb(0,[(n()(),e.eb(16777216,null,null,1,null,m)),e.nb(1,16384,null,0,b.k,[e.O,e.L],{ngIf:[0,"ngIf"]},null)],function(n,l){n(l,1,0,l.component.announcement)},null)}function g(n){return e.Gb(0,[(n()(),e.ob(0,0,null,null,1,"aio-announcement-bar",[],null,null,null,f,w)),e.nb(1,114688,null,0,r,[s.c,i.a],null,null)],function(n,l){n(l,1,0)},null)}var d=e.kb("aio-announcement-bar",r,g,{},{},[]),h=u("PCNd");u.d(l,"AnnouncementBarModuleNgFactory",function(){return p});var p=e.lb(c,[],function(n){return e.vb([e.wb(512,e.j,e.Z,[[8,[d]],[3,e.j],e.w]),e.wb(4608,b.m,b.l,[e.t,[2,b.B]]),e.wb(4608,s.h,s.n,[b.d,e.A,s.l]),e.wb(4608,s.o,s.o,[s.h,s.m]),e.wb(5120,s.a,function(n){return[n]},[s.o]),e.wb(4608,s.k,s.k,[]),e.wb(6144,s.i,null,[s.k]),e.wb(4608,s.g,s.g,[s.i]),e.wb(6144,s.b,null,[s.g]),e.wb(4608,s.f,s.j,[s.b,e.q]),e.wb(4608,s.c,s.c,[s.f]),e.wb(1073742336,b.c,b.c,[]),e.wb(1073742336,h.a,h.a,[]),e.wb(1073742336,s.e,s.e,[]),e.wb(1073742336,s.d,s.d,[]),e.wb(1073742336,c,c,[]),e.wb(256,s.l,"XSRF-TOKEN",[]),e.wb(256,s.m,"X-XSRF-TOKEN",[])])})}}]);
//# sourceMappingURL=6-es2015.32643b9dc105927bebf3.js.map