-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsrc_app_custom-elements_events_events_module_ts.8aabd709507cf577.js
executable file
·2 lines (2 loc) · 3.89 KB
/
src_app_custom-elements_events_events_module_ts.8aabd709507cf577.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_events_events_module_ts"],{1122:(q,u,o)=>{o.r(u),o.d(u,{EventsModule:()=>l});var i=o(4666),t=o(2560),h=o(745),v=o(3158),f=o(4),_=o(6403),T=o(8987),d=o(4541);const p=_.bL+"events.json";class c{constructor(s,e){this.http=s,this.logger=e,this.events=this.getEvents()}getEvents(){const s=this.http.get(p).pipe((0,v.K)(e=>(this.logger.error(new Error(`${p} request failed: ${e.message}`)),(0,h.of)([]))),(0,f.C)());return s.connect(),s}static#t=this.\u0275fac=function(e){return new(e||c)(t.LFG(T.eN),t.LFG(d.Y))};static#e=this.\u0275prov=t.Yz7({token:c,factory:c.\u0275fac})}function Z(n,s){1&n&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"We don't have any upcoming speaking engagements at the moment."),t.qZA(),t.TgZ(3,"p"),t._uU(4," Until something comes up, make sure you check our "),t.TgZ(5,"a",5),t._uU(6,"YouTube channel"),t.qZA(),t._uU(7," and follow us on "),t.TgZ(8,"a",6),t._uU(9,"social media"),t.qZA(),t._uU(10,". "),t.qZA(),t.TgZ(11,"p"),t._uU(12," If you want us to be part of your event reach out on "),t.TgZ(13,"a",7),t._uU(14,"devrel@angular.io"),t.qZA(),t._uU(15,"! "),t.qZA()())}function x(n,s){1&n&&t.GkF(0)}const g=function(n){return{$implicit:n}};function E(n,s){if(1&n&&(t.ynx(0),t.YNc(1,x,1,0,"ng-container",3),t.BQk()),2&n){const e=t.oxw(),a=t.MAs(10);t.xp6(1),t.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",t.VKq(2,g,e.upcomingEvents))}}function C(n,s){1&n&&t.GkF(0)}function U(n,s){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function w(n,s){if(1&n&&(t.TgZ(0,"a",11),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.s9C("href",e.linkUrl,t.LSH),t.xp6(1),t.Oqu(e.name)}}function A(n,s){if(1&n&&(t.TgZ(0,"tr")(1,"th",0),t.YNc(2,U,2,1,"span",1),t.YNc(3,w,2,2,"a",10),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.qZA()()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngSwitch",!!e.linkUrl),t.xp6(1),t.Q6J("ngSwitchCase",!1),t.xp6(3),t.Oqu(e.date.start)}}function y(n,s){if(1&n&&(t.TgZ(0,"table",8)(1,"thead")(2,"tr")(3,"th"),t._uU(4,"Event"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"Start date"),t.qZA()()(),t.TgZ(7,"tbody"),t.YNc(8,A,6,3,"tr",9),t.qZA()()),2&n){const e=s.$implicit;t.xp6(8),t.Q6J("ngForOf",e)}}class r{constructor(s){this.eventsService=s,this.pastEvents=[],this.upcomingEvents=[]}ngOnInit(){this.eventsService.events.subscribe(s=>{this.pastEvents=s.filter(e=>m(e)).sort((e,a)=>e.date.start<a.date.start?1:-1),this.upcomingEvents=s.filter(e=>!m(e)).sort((e,a)=>e.date.start<a.date.start?-1:1)})}static#t=this.\u0275fac=function(e){return new(e||r)(t.Y36(c))};static#e=this.\u0275cmp=t.Xpm({type:r,selectors:[["aio-events"]],decls:11,vars:6,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["eventsTable",""],["href","https://www.youtube.com/angular"],["href","https://twitter.com/angular"],["href","mailto:devrel@angular.io"],[1,"is-full-width"],[4,"ngFor","ngForOf"],[3,"href",4,"ngSwitchDefault"],[3,"href"]],template:function(e,a){if(1&e&&(t.TgZ(0,"h2"),t._uU(1,"Where we'll be presenting:"),t.qZA(),t.ynx(2,0),t.YNc(3,Z,16,0,"div",1),t.YNc(4,E,2,4,"ng-container",2),t.BQk(),t._UZ(5,"br"),t.TgZ(6,"h2"),t._uU(7,"Where we already presented:"),t.qZA(),t.YNc(8,C,1,0,"ng-container",3),t.YNc(9,y,9,1,"ng-template",null,4,t.W1O)),2&e){const Y=t.MAs(10);t.xp6(2),t.Q6J("ngSwitch",!!a.upcomingEvents.length),t.xp6(1),t.Q6J("ngSwitchCase",!1),t.xp6(5),t.Q6J("ngTemplateOutlet",Y)("ngTemplateOutletContext",t.VKq(4,g,a.pastEvents))}},dependencies:[i.sg,i.tP,i.RF,i.n9,i.ED],encapsulation:2})}function m(n){return new Date(n.date.start).getTime()<Date.now()-864e5}class l{constructor(){this.customElementComponent=r}static#t=this.\u0275fac=function(e){return new(e||l)};static#e=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({providers:[c],imports:[i.ez]})}}}]);
//# sourceMappingURL=src_app_custom-elements_events_events_module_ts.8aabd709507cf577.js.map