-
Notifications
You must be signed in to change notification settings - Fork 0
/
16-es2015.8e62125b87f0ece2ac59.js
1 lines (1 loc) · 2.18 KB
/
16-es2015.8e62125b87f0ece2ac59.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{U32Y:function(e,t,n){"use strict";n.r(t),n.d(t,"VisitorListPageModule",(function(){return p}));var o=n("SVse"),s=n("s7LF"),i=n("sZkV"),c=n("iInd"),r=n("lJxs"),a=n("LRne"),l=n("8Y7J"),u=n("t0hA");function b(e,t){if(1&e&&(l.Pb(0,"ion-item"),l.rc(1),l.cc(2,"date"),l.cc(3,"date"),l.Ob()),2&e){const e=t.$implicit;l.zb(1),l.vc(" ",null!==e.checkOutDateTime&&void 0!==(null==e?null:e.checkOutDateTime)&&void 0!==(null==e?null:e.checkInDateTime)?"\u2705":"\u{1f533}"," First name: ",e.Person.personFirstName,"; Checked in: ",l.ec(2,5,e.checkInDateTime,"EEEE',' dd MMM HH:mm"),"; Checked out: ",null!=(null==e?null:e.checkOutDateTime)?l.ec(3,8,null==e?null:e.checkOutDateTime,"EEEE',' dd MMM HH:mm"):"Not checked out yet","; ",e.Booking.Event.eventName," ")}}const d=[{path:"",component:(()=>{class e{constructor(e,t){this.activatedRoute=e,this.bookingService=t,this.items=[],this.bookedPersons=Object(a.a)([]);const n=e.snapshot.paramMap.get("eventUUID");console.log("VisitorListPage -> constructor -> eventUUID",n);const o=t.getPersonsBookedByEventUUID(n);o.subscribe(e=>{console.log("VisitorListPage -> constructor -> result",e)});const s=o.pipe(Object(r.a)(e=>e.data.PersonBooking));this.bookedPersons=s,s.subscribe(e=>{this.items=e})}ngOnInit(){this.bookedPersons.subscribe(e=>{console.log("VisitorListPage -> ngOnInit -> a",e)})}}return e.\u0275fac=function(t){return new(t||e)(l.Jb(c.a),l.Jb(u.a))},e.\u0275cmp=l.Db({type:e,selectors:[["app-visitor-list"]],decls:8,vars:3,consts:[[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(l.Pb(0,"ion-header"),l.Pb(1,"ion-toolbar"),l.Pb(2,"ion-title"),l.rc(3," Visitor list "),l.Ob(),l.Ob(),l.Ob(),l.Pb(4,"ion-content"),l.Pb(5,"ion-list"),l.pc(6,b,4,11,"ion-item",0),l.cc(7,"async"),l.Ob(),l.Ob()),2&e&&(l.zb(6),l.hc("ngForOf",l.dc(7,1,t.bookedPersons)))},directives:[i.o,i.G,i.F,i.k,i.x,o.j,i.s],pipes:[o.b,o.e],styles:[""]}),e})()}];let m=(()=>{class e{}return e.\u0275mod=l.Hb({type:e}),e.\u0275inj=l.Gb({factory:function(t){return new(t||e)},imports:[[c.i.forChild(d)],c.i]}),e})(),p=(()=>{class e{}return e.\u0275mod=l.Hb({type:e}),e.\u0275inj=l.Gb({factory:function(t){return new(t||e)},imports:[[o.c,s.g,i.H,m]]}),e})()}}]);