-
Notifications
You must be signed in to change notification settings - Fork 0
/
src_app_custom-elements_events_events_module_ts.577ef9b126a0c22e.js
2 lines (2 loc) · 3.98 KB
/
src_app_custom-elements_events_events_module_ts.577ef9b126a0c22e.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_events_events_module_ts"],{796:(x,r,o)=>{o.r(r),o.d(r,{EventsModule:()=>R});var c=o(5056),t=o(4896),h=o(8916),v=o(5608),g=o(8072),f=o(1672),E=o(7808),C=o(1332),d=o(864);const l=E.y2+"events.json";let m=(()=>{class e{constructor(n,s){this.http=n,this.logger=s,this.events=this.getEvents()}getEvents(){const n=this.http.get(l).pipe((0,f.a)(i=>(this.logger.error(new Error(`${l} request failed: ${i.message}`)),(0,h.of)([])))),s=(0,v.W)(n,{connector:()=>new g.O,resetOnDisconnect:!1});return s.connect(),s}static#t=this.\u0275fac=function(s){return new(s||e)(t.CoB(C.KK),t.CoB(d.Y))};static#e=this.\u0275prov=t.wxM({token:e,factory:e.\u0275fac})}return e})();function y(e,a){1&e&&(t.I0R(0,"div")(1,"p"),t.OEk(2,"We don't have any upcoming speaking engagements at the moment."),t.C$Y(),t.I0R(3,"p"),t.OEk(4," Until something comes up, make sure you check our "),t.I0R(5,"a",5),t.OEk(6,"YouTube channel"),t.C$Y(),t.OEk(7," and follow us on "),t.I0R(8,"a",6),t.OEk(9,"social media"),t.C$Y(),t.OEk(10,". "),t.C$Y(),t.I0R(11,"p"),t.OEk(12," If you want us to be part of your event reach out on "),t.I0R(13,"a",7),t.OEk(14,"[email protected]"),t.C$Y(),t.OEk(15,"! "),t.C$Y()())}function O(e,a){1&e&&t.C_f(0)}const u=e=>({$implicit:e});function Y(e,a){if(1&e&&(t.SAx(0),t.yuY(1,O,1,0,"ng-container",3),t.k70()),2&e){const n=t.GaO(),s=t.Gew(10);t.yG2(),t.E7m("ngTemplateOutlet",s)("ngTemplateOutletContext",t.S45(2,u,n.upcomingEvents))}}function $(e,a){1&e&&t.C_f(0)}function w(e,a){if(1&e&&(t.I0R(0,"span"),t.OEk(1),t.C$Y()),2&e){const n=t.GaO().$implicit;t.yG2(),t.cNF(n.name)}}function I(e,a){if(1&e&&(t.I0R(0,"a",11),t.OEk(1),t.C$Y()),2&e){const n=t.GaO().$implicit;t._6D("href",n.linkUrl,t.K6U),t.yG2(),t.cNF(n.name)}}function T(e,a){if(1&e&&(t.I0R(0,"tr")(1,"th",0),t.yuY(2,w,2,1,"span",1)(3,I,2,2,"a",10),t.C$Y(),t.I0R(4,"td"),t.OEk(5),t.C$Y()()),2&e){const n=a.$implicit;t.yG2(),t.E7m("ngSwitch",!!n.linkUrl),t.yG2(),t.E7m("ngSwitchCase",!1),t.yG2(3),t.cNF(n.date.start)}}function k(e,a){if(1&e&&(t.I0R(0,"table",8)(1,"thead")(2,"tr")(3,"th"),t.OEk(4,"Event"),t.C$Y(),t.I0R(5,"th"),t.OEk(6,"Start date"),t.C$Y()()(),t.I0R(7,"tbody"),t.yuY(8,T,6,3,"tr",9),t.C$Y()()),2&e){const n=a.$implicit;t.yG2(8),t.E7m("ngForOf",n)}}let S=(()=>{class e{constructor(n){this.eventsService=n,this.pastEvents=[],this.upcomingEvents=[]}ngOnInit(){this.eventsService.events.subscribe(n=>{this.pastEvents=n.filter(s=>p(s)).sort((s,i)=>s.date.start<i.date.start?1:-1),this.upcomingEvents=n.filter(s=>!p(s)).sort((s,i)=>s.date.start<i.date.start?-1:1)})}static#t=this.\u0275fac=function(s){return new(s||e)(t.GI1(m))};static#e=this.\u0275cmp=t.In1({type:e,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:[email protected]"],[1,"is-full-width"],[4,"ngFor","ngForOf"],[3,"href",4,"ngSwitchDefault"],[3,"href"]],template:function(s,i){if(1&s&&(t.I0R(0,"h2"),t.OEk(1,"Where we'll be presenting:"),t.C$Y(),t.SAx(2,0),t.yuY(3,y,16,0,"div",1)(4,Y,2,4,"ng-container",2),t.k70(),t.wR5(5,"br"),t.I0R(6,"h2"),t.OEk(7,"Where we already presented:"),t.C$Y(),t.yuY(8,$,1,0,"ng-container",3)(9,k,9,1,"ng-template",null,4,t.gJz)),2&s){const _=t.Gew(10);t.yG2(2),t.E7m("ngSwitch",!!i.upcomingEvents.length),t.yG2(),t.E7m("ngSwitchCase",!1),t.yG2(5),t.E7m("ngTemplateOutlet",_)("ngTemplateOutletContext",t.S45(4,u,i.pastEvents))}},dependencies:[c.ay,c.XV,c.Ko,c.Wm,c.UZ],encapsulation:2})}return e})();function p(e){return new Date(e.date.start).getTime()<Date.now()-864e5}let R=(()=>{class e{constructor(){this.customElementComponent=S}static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.a4G({type:e});static#n=this.\u0275inj=t.s3X({providers:[m],imports:[c.MD]})}return e})()}}]);
//# sourceMappingURL=src_app_custom-elements_events_events_module_ts.577ef9b126a0c22e.js.map