-
Notifications
You must be signed in to change notification settings - Fork 1
/
6-es5.51f5979cc871ec0402e2.js
2 lines (2 loc) · 2.66 KB
/
6-es5.51f5979cc871ec0402e2.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{WoO9:function(n,l,u){"use strict";u.r(l);var e=u("CcnG"),t=u("9Z1F"),r=u("67Y/"),o=u("jn67").a+"announcements.json",a=function(){function n(n,l){this.http=n,this.logger=l}return n.prototype.ngOnInit=function(){var n=this;this.http.get(o).pipe(Object(t.a)(function(l){return n.logger.error(new Error(o+" request failed: "+l.message)),[]}),Object(r.a)(function(l){return n.findCurrentAnnouncement(l)}),Object(t.a)(function(l){return n.logger.error(new Error(o+" contains invalid data: "+l.message)),[]})).subscribe(function(l){return n.announcement=l})},n.prototype.findCurrentAnnouncement=function(n){return n.filter(function(n){return new Date(n.startDate).valueOf()<Date.now()}).filter(function(n){return new Date(n.endDate).valueOf()>Date.now()})[0]},n}(),c=function(){return function(){this.customElementComponent=a}}(),i=u("Ip0R"),b=u("t/Na"),f=u("vHPH"),s=e.ob({encapsulation:2,styles:[],data:{}});function m(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,5,"div",[["class","homepage-container"]],null,null,null,null,null)),(n()(),e.qb(1,0,null,null,4,"div",[["class","announcement-bar"]],null,null,null,null,null)),(n()(),e.qb(2,0,null,null,0,"img",[["alt",""]],[[8,"src",4]],null,null,null,null)),(n()(),e.qb(3,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(n()(),e.qb(4,0,null,null,1,"a",[["class","button"]],[[8,"href",4]],null,null,null,null)),(n()(),e.Gb(-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 y(n){return e.Ib(0,[(n()(),e.gb(16777216,null,null,1,null,m)),e.pb(1,16384,null,0,i.k,[e.Q,e.N],{ngIf:[0,"ngIf"]},null)],function(n,l){n(l,1,0,l.component.announcement)},null)}function p(n){return e.Ib(0,[(n()(),e.qb(0,0,null,null,1,"aio-announcement-bar",[],null,null,null,y,s)),e.pb(1,114688,null,0,a,[b.c,f.a],null,null)],function(n,l){n(l,1,0)},null)}var g=e.mb("aio-announcement-bar",a,p,{},{},[]),d=u("PCNd");u.d(l,"AnnouncementBarModuleNgFactory",function(){return h});var h=e.nb(c,[],function(n){return e.xb([e.yb(512,e.j,e.bb,[[8,[g]],[3,e.j],e.y]),e.yb(4608,i.m,i.l,[e.v,[2,i.B]]),e.yb(4608,b.h,b.n,[i.d,e.C,b.l]),e.yb(4608,b.o,b.o,[b.h,b.m]),e.yb(5120,b.a,function(n){return[n]},[b.o]),e.yb(4608,b.k,b.k,[]),e.yb(6144,b.i,null,[b.k]),e.yb(4608,b.g,b.g,[b.i]),e.yb(6144,b.b,null,[b.g]),e.yb(4608,b.f,b.j,[b.b,e.r]),e.yb(4608,b.c,b.c,[b.f]),e.yb(1073742336,i.c,i.c,[]),e.yb(1073742336,d.a,d.a,[]),e.yb(1073742336,b.e,b.e,[]),e.yb(1073742336,b.d,b.d,[]),e.yb(1073742336,c,c,[]),e.yb(256,b.l,"XSRF-TOKEN",[]),e.yb(256,b.m,"X-XSRF-TOKEN",[])])})}}]);
//# sourceMappingURL=6-es5.51f5979cc871ec0402e2.js.map