-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsrc_app_custom-elements_events_events_module_ts.f438389210897d20.js
2 lines (2 loc) · 4.43 KB
/
src_app_custom-elements_events_events_module_ts.f438389210897d20.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_events_events_module_ts"],{1122:(y,l,r)=>{r.r(l),r.d(l,{EventsModule:()=>q});var i=r(4666),t=r(2560),f=r(745),d=r(3158),Z=r(4),T=r(5733),U=r(8987),E=r(4541);const g=T.bL+"events.json";let p=(()=>{class n{constructor(e,o){this.http=e,this.logger=o,this.events=this.getEvents()}getEvents(){const e=this.http.get(g).pipe((0,d.K)(o=>(this.logger.error(new Error(`${g} request failed: ${o.message}`)),(0,f.of)([]))),(0,Z.C)());return e.connect(),e}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(U.eN),t.LFG(E.Y))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();function D(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",4),t._uU(6,"YouTube channel"),t.qZA(),t._uU(7," and follow us on "),t.TgZ(8,"a",5),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",6),t._uU(14,"[email protected]"),t.qZA(),t._uU(15,"!"),t.qZA()())}function A(n,s){if(1&n&&(t.TgZ(0,"tr")(1,"th")(2,"a",7),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td")(7,"div"),t._uU(8),t.qZA()()()),2&n){const e=s.$implicit,o=t.oxw(2);t.xp6(2),t.s9C("href",e.linkUrl,t.LSH),t.s9C("title",e.tooltip),t.xp6(1),t.Oqu(e.name),t.xp6(2),t.Oqu(e.location),t.xp6(3),t.hij(" ",o.getEventDates(e)," ")}}function C(n,s){if(1&n&&(t.TgZ(0,"table",2)(1,"thead")(2,"tr")(3,"th"),t._uU(4,"Event"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"Location"),t.qZA(),t.TgZ(7,"th"),t._uU(8,"Date"),t.qZA()()(),t.TgZ(9,"tbody"),t.YNc(10,A,9,5,"tr",3),t.qZA()()),2&n){const e=t.oxw();t.xp6(10),t.Q6J("ngForOf",e.upcomingEvents)}}function w(n,s){if(1&n&&(t.TgZ(0,"tr")(1,"th")(2,"a",7),t._uU(3),t.qZA()(),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td")(7,"div"),t._uU(8),t.qZA()()()),2&n){const e=s.$implicit,o=t.oxw();t.xp6(2),t.s9C("href",e.linkUrl,t.LSH),t.s9C("title",e.tooltip),t.xp6(1),t.Oqu(e.name),t.xp6(2),t.Oqu(e.location),t.xp6(3),t.hij(" ",o.getEventDates(e)," ")}}const h=864e5,v=["January","February","March","April","May","June","July","August","September","October","November","December"];let $=(()=>{class n{constructor(e){this.eventsService=e}ngOnInit(){this.eventsService.events.subscribe(e=>{this.pastEvents=e.filter(o=>new Date(o.date.end).getTime()<Date.now()-h).sort((o,a)=>u(o.date,a.date)?1:-1),this.upcomingEvents=e.filter(o=>new Date(o.date.end).getTime()>=Date.now()-h).sort((o,a)=>u(o.date,a.date)?-1:1)})}getEventDates(e){let o;if(e.workshopsDate){const a=`${c(e.date)} (conference)`,m=`${c(e.workshopsDate)} (workshops)`;o=u(e.workshopsDate,e.date)?`${m}, ${a}`:`${a}, ${m}`}else o=c(e.date);return o=`${o}, ${new Date(e.date.end).getUTCFullYear()}`,o}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p))},n.\u0275cmp=t.Xpm({type:n,selectors:[["aio-events"]],decls:18,vars:3,consts:[[4,"ngIf"],["class","is-full-width",4,"ngIf"],[1,"is-full-width"],[4,"ngFor","ngForOf"],["href","https://www.youtube.com/angular"],["href","https://twitter.com/angular"],["href","mailto:[email protected]"],[3,"href","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h2"),t._uU(1,"Where we'll be presenting:"),t.qZA(),t.YNc(2,D,16,0,"div",0),t.YNc(3,C,11,1,"table",1),t._UZ(4,"br"),t.TgZ(5,"h2"),t._uU(6,"Where we already presented:"),t.qZA(),t.TgZ(7,"table",2)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Event"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"Location"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Date"),t.qZA()()(),t.TgZ(16,"tbody"),t.YNc(17,w,9,5,"tr",3),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("ngIf",!(null!=o.upcomingEvents&&o.upcomingEvents.length)),t.xp6(1),t.Q6J("ngIf",null==o.upcomingEvents?null:o.upcomingEvents.length),t.xp6(14),t.Q6J("ngForOf",o.pastEvents))},dependencies:[i.sg,i.O5],encapsulation:2}),n})();function c(n){const s=new Date(n.start),e=new Date(n.end);let o=`${v[s.getUTCMonth()]} ${s.getUTCDate()}`;return s.getUTCMonth()!==e.getUTCMonth()?o=`${o} - ${v[e.getUTCMonth()]} ${e.getUTCDate()}`:s.getUTCDate()!==e.getUTCDate()&&(o=`${o}-${e.getUTCDate()}`),o}function u(n,s){return n.start<s.start||n.start===s.start&&n.end<s.end}let q=(()=>{class n{constructor(){this.customElementComponent=$}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[p],imports:[i.ez]}),n})()}}]);
//# sourceMappingURL=src_app_custom-elements_events_events_module_ts.f438389210897d20.js.map