-
Notifications
You must be signed in to change notification settings - Fork 1
/
announcement-bar-announcement-bar-module-ngfactory.7840b3c8d97d9ffb6b58.js
2 lines (2 loc) · 2.69 KB
/
announcement-bar-announcement-bar-module-ngfactory.7840b3c8d97d9ffb6b58.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{WoO9:function(n,l,u){"use strict";u.r(l);var e=u("CcnG"),t=u("9Z1F"),a=u("67Y/"),r=u("jn67").a+"announcements.json",o=function(){function n(n,l){this.http=n,this.logger=l}return n.prototype.ngOnInit=function(){var n=this;this.http.get(r).pipe(Object(t.a)(function(l){return n.logger.error(new Error(r+" request failed: "+l.message)),[]}),Object(a.a)(function(l){return n.findCurrentAnnouncement(l)}),Object(t.a)(function(l){return n.logger.error(new Error(r+" 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=o}}(),i=u("Ip0R"),s=u("t/Na"),f=u("vHPH"),m=e.Ma({encapsulation:2,styles:[],data:{}});function p(n){return e.eb(0,[(n()(),e.Oa(0,0,null,null,5,"div",[["class","homepage-container"]],null,null,null,null,null)),(n()(),e.Oa(1,0,null,null,4,"div",[["class","announcement-bar"]],null,null,null,null,null)),(n()(),e.Oa(2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(n()(),e.Oa(3,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(n()(),e.Oa(4,0,null,null,1,"a",[["class","button"]],[[8,"href",4]],null,null,null,null)),(n()(),e.cb(-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 g(n){return e.eb(0,[(n()(),e.Fa(16777216,null,null,1,null,p)),e.Na(1,16384,null,0,i.k,[e.O,e.L],{ngIf:[0,"ngIf"]},null)],function(n,l){n(l,1,0,l.component.announcement)},null)}var V=e.Ka("aio-announcement-bar",o,function(n){return e.eb(0,[(n()(),e.Oa(0,0,null,null,1,"aio-announcement-bar",[],null,null,null,g,m)),e.Na(1,114688,null,0,o,[s.c,f.a],null,null)],function(n,l){n(l,1,0)},null)},{},{},[]),b=u("PCNd");u.d(l,"AnnouncementBarModuleNgFactory",function(){return d});var d=e.La(c,[],function(n){return e.Ua([e.Va(512,e.j,e.Aa,[[8,[V]],[3,e.j],e.v]),e.Va(4608,i.m,i.l,[e.s,[2,i.v]]),e.Va(4608,s.h,s.n,[i.d,e.z,s.l]),e.Va(4608,s.o,s.o,[s.h,s.m]),e.Va(5120,s.a,function(n){return[n]},[s.o]),e.Va(4608,s.k,s.k,[]),e.Va(6144,s.i,null,[s.k]),e.Va(4608,s.g,s.g,[s.i]),e.Va(6144,s.b,null,[s.g]),e.Va(4608,s.f,s.j,[s.b,e.p]),e.Va(4608,s.c,s.c,[s.f]),e.Va(1073742336,i.c,i.c,[]),e.Va(1073742336,b.a,b.a,[]),e.Va(1073742336,s.e,s.e,[]),e.Va(1073742336,s.d,s.d,[]),e.Va(1073742336,c,c,[]),e.Va(256,s.l,"XSRF-TOKEN",[]),e.Va(256,s.m,"X-XSRF-TOKEN",[])])})}}]);
//# sourceMappingURL=announcement-bar-announcement-bar-module-ngfactory.7840b3c8d97d9ffb6b58.js.map