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