-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathannouncement-bar-announcement-bar-module-ngfactory-es2015.acf16ade88f922159360.js
2 lines (2 loc) · 2.56 KB
/
announcement-bar-announcement-bar-module-ngfactory-es2015.acf16ade88f922159360.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{WoO9:function(n,l,u){"use strict";u.r(l);var e=u("8Y7J"),t=u("JIr8"),a=u("lJxs");const o=u("jn67").a+"announcements.json";class r{constructor(n,l){this.http=n,this.logger=l}ngOnInit(){this.http.get(o).pipe(Object(t.a)(n=>(this.logger.error(new Error(`${o} request failed: ${n.message}`)),[])),Object(a.a)(n=>this.findCurrentAnnouncement(n)),Object(t.a)(n=>(this.logger.error(new Error(`${o} 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"),m=e.nb({encapsulation:2,styles:[],data:{}});function f(n){return e.Hb(0,[(n()(),e.pb(0,0,null,null,5,"div",[["class","homepage-container"]],null,null,null,null,null)),(n()(),e.pb(1,0,null,null,4,"div",[["class","announcement-bar"]],null,null,null,null,null)),(n()(),e.pb(2,0,null,null,0,"img",[["alt",""]],[[8,"src",4]],null,null,null,null)),(n()(),e.pb(3,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(n()(),e.pb(4,0,null,null,1,"a",[["class","button"]],[[8,"href",4]],null,null,null,null)),(n()(),e.Fb(-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 p(n){return e.Hb(0,[(n()(),e.fb(16777216,null,null,1,null,f)),e.ob(1,16384,null,0,b.k,[e.P,e.M],{ngIf:[0,"ngIf"]},null)],function(n,l){n(l,1,0,l.component.announcement)},null)}function g(n){return e.Hb(0,[(n()(),e.pb(0,0,null,null,1,"aio-announcement-bar",[],null,null,null,p,m)),e.ob(1,114688,null,0,r,[s.c,i.a],null,null)],function(n,l){n(l,1,0)},null)}var x=e.lb("aio-announcement-bar",r,g,{},{},[]),d=u("PCNd");u.d(l,"AnnouncementBarModuleNgFactory",function(){return h});var h=e.mb(c,[],function(n){return e.wb([e.xb(512,e.j,e.ab,[[8,[x]],[3,e.j],e.w]),e.xb(4608,b.m,b.l,[e.t,[2,b.B]]),e.xb(4608,s.h,s.n,[b.d,e.A,s.l]),e.xb(4608,s.o,s.o,[s.h,s.m]),e.xb(5120,s.a,function(n){return[n]},[s.o]),e.xb(4608,s.k,s.k,[]),e.xb(6144,s.i,null,[s.k]),e.xb(4608,s.g,s.g,[s.i]),e.xb(6144,s.b,null,[s.g]),e.xb(4608,s.f,s.j,[s.b,e.q]),e.xb(4608,s.c,s.c,[s.f]),e.xb(1073742336,b.c,b.c,[]),e.xb(1073742336,d.a,d.a,[]),e.xb(1073742336,s.e,s.e,[]),e.xb(1073742336,s.d,s.d,[]),e.xb(1073742336,c,c,[]),e.xb(256,s.l,"XSRF-TOKEN",[]),e.xb(256,s.m,"X-XSRF-TOKEN",[])])})}}]);
//# sourceMappingURL=announcement-bar-announcement-bar-module-ngfactory-es2015.acf16ade88f922159360.js.map