1import{a as z,b as at,c as rt}from"./chunk-NGQN22T7.js";import{b as lt,c as ct,d as ee,e as st}from"./chunk-DD3LQ7AK.js";import{a as ot}from"./chunk-J3633N5L.js";import{a as it}from"./chunk-5JGV2R7G.js";import"./chunk-JJQ3SAF4.js";import"./chunk-MXRO5YKQ.js";import"./chunk-WUXE5G2M.js";import"./chunk-WS5IS3UF.js";import"./chunk-NREWKZHS.js";import"./chunk-OGPCZA4S.js";import"./chunk-NII3ONC2.js";import"./chunk-EVEE2BM5.js";import{a as nt}from"./chunk-27NJOPWT.js";import"./chunk-DQD3VLWQ.js";import"./chunk-FGXNUQX4.js";import"./chunk-JVRNJPL7.js";import"./chunk-7KGU3KC6.js";import"./chunk-25YTDFSJ.js";import{a as Z,b as Ue,c as Be}from"./chunk-FEM5WDYS.js";import{k as X,l as je}from"./chunk-4HEIS64P.js";import"./chunk-TQBFZH74.js";import"./chunk-CAFQQJ3Z.js";import"./chunk-NTEZ6HBD.js";import"./chunk-LKHYAKIP.js";import{a as He,b as Ke,c as Ye,d as Qe,e as Je,f as qe,g as Ge,h as We,i as Xe,j as Ze,l as et,m as tt}from"./chunk-QCAG6HG6.js";import"./chunk-HZ3WYMWQ.js";import{a as ze,b as Ne}from"./chunk-QF27IOQE.js";import"./chunk-LO5GPMW5.js";import"./chunk-NKJNLA4H.js";import{a as Ve}from"./chunk-ZSFNZLAA.js";import"./chunk-WL334ETE.js";import{g as Te}from"./chunk-WDIOLPZ2.js";import{a as $e}from"./chunk-LFVYZXVL.js";import{b as Re}from"./chunk-JBGTHU2Q.js";import"./chunk-WBTZD3PJ.js";import"./chunk-J6U6M7TF.js";import"./chunk-IR2QGIVV.js";import"./chunk-WU5OWFCN.js";import"./chunk-F5IQZLEF.js";import"./chunk-ARHRSX7S.js";import"./chunk-56U2VUAK.js";import"./chunk-YA3REOTQ.js";import"./chunk-HB4JGH6L.js";import"./chunk-H4EPMV5Z.js";import{a as Fe}from"./chunk-ZSHO3KMD.js";import"./chunk-QVGEDMLN.js";import"./chunk-UZY2R5Q5.js";import"./chunk-5GAGQHFR.js";import"./chunk-RYT6C367.js";import{f as Le}from"./chunk-SNZM6YGS.js";import"./chunk-3PGMBZAP.js";import"./chunk-FQFO62CD.js";import"./chunk-VT7CJSCD.js";import"./chunk-DLH4J2ZV.js";import"./chunk-A43BTBOJ.js";import"./chunk-67IT4HQ6.js";import"./chunk-2BXTPQTP.js";import"./chunk-JED7GRQQ.js";import"./chunk-ZECF2WJA.js";import"./chunk-G27UVVZT.js";import{a as Ie}from"./chunk-PNYSZFNB.js";import"./chunk-Y3MTRBLK.js";import"./chunk-XMBPLYUK.js";import"./chunk-QRMJLQVM.js";import"./chunk-24HYNKH3.js";import{g as Ee}from"./chunk-XAMY6DUE.js";import"./chunk-DE65ZGA7.js";import"./chunk-65I45D2I.js";import"./chunk-GZL4NBTB.js";import{a as Ae}from"./chunk-OMIAKVTT.js";import{D as De,q as we,t as ke,u as ye}from"./chunk-3XCK7DOC.js";import"./chunk-PJWNDC7A.js";import{M as I,N as E,c as be,h as Pe,n as Se,t as Oe}from"./chunk-QDFFLVTB.js";import"./chunk-JIVZONLP.js";import"./chunk-S43ITSQ5.js";import{e as ve,i as xe,k as W}from"./chunk-5FWAKVG3.js";import{q as fe,z as Me}from"./chunk-KAXBUATZ.js";import{$ as le,$c as H,A as ae,Ac as pe,Bc as ge,Cc as C,Cd as Ce,Dc as o,Dd as he,Eb as de,Ec as r,Ed as f,Fa as L,Fc as m,Ja as x,Jb as s,Jc as S,Jd as h,Kc as O,Kd as G,Oc as y,Od as v,Sa as b,T as re,Ta as P,Vc as w,Xc as d,ad as K,bc as me,bd as Y,cc as F,g as U,gc as M,hd as Q,i as oe,jd as c,kd as J,ld as _,md as q,sa as ce,va as se,vc as p,xc as g,yd as ue,z as B,zd as _e}from"./chunk-XW6AEKHB.js";import{a as ne,b as ie,l as A}from"./chunk-6G35VSEK.js";var _t=["privateSort"],Ct=t=>({data:t}),ht=()=>[10,20,50,100,150,200,300,500],N=(t,a)=>[t,!1,!0,"MM/DD/yyyy hh:mm A",a],R=(t,a)=>[t,!1,!0,"MM/DD/yyyy HH:mm",a],ft=(t,a)=>["/control-panel",t,"console","meeting",a],Mt=(t,a)=>a.PK;function vt(t,a){if(t&1&&(o(0,"li",7),c(1),r()),t&2){let e=d(2);s(),q("",e.attendee==null?null:e.attendee.firstName," ",e.attendee==null?null:e.attendee.lastName)}}function xt(t,a){if(t&1&&(o(0,"span",22),c(1),r()),t&2){let e=d(2);s(),_(" ",e.getActiveFilterCount()," ")}}function bt(t,a){if(t&1){let e=y();o(0,"button",46),w("click",function(){b(e);let l=d(2);return P(l.clearFilters())}),m(1,"i",47),c(2," Clear "),r()}if(t&2){let e=d(2);C("disabled",e.getActiveFilterCount()===0)}}function Pt(t,a){t&1&&(o(0,"th",48),c(1,"Title"),r())}function St(t,a){if(t&1&&(o(0,"td",49)(1,"a",50),c(2),r()()),t&2){let e=a.$implicit,n=d(2);s(),C("routerLink",_e("/control-panel/",n.eventUrl,"/console/meeting/",e.PK)),s(),_(" ",e.title," ")}}function Ot(t,a){t&1&&(o(0,"th",48),c(1,"Start time"),o(2,"sup"),
1c(3,"[*]"),r()())}function wt(t,a){if(t&1&&(o(0,"td",49),c(1),h(2,"dateFormat"),h(3,"dateFormat"),r()),t&2){let e=a.$implicit,n=d(2);s(),_(" ",n.agendaTimeFormat==="12-hour"?v(2,1,f(13,N,e.startTime,n.timezoneLabel)):v(3,7,f(16,R,e.startTime,n.timezoneLabel))," ")}}function kt(t,a){t&1&&(o(0,"th",48),c(1,"End time"),o(2,"sup"),c(3,"[*]"),r()())}function yt(t,a){if(t&1&&(o(0,"td",49),c(1),h(2,"dateFormat"),h(3,"dateFormat"),r()),t&2){let e=a.$implicit,n=d(2);s(),_(" ",n.agendaTimeFormat==="12-hour"?v(2,1,f(13,N,e.endTime,n.timezoneLabel)):v(3,7,f(16,R,e.endTime,n.timezoneLabel))," ")}}function Dt(t,a){t&1&&(o(0,"th",48),c(1,"Location"),r())}function Tt(t,a){if(t&1&&(o(0,"td",49),c(1),r()),t&2){let e=a.$implicit;s(),_(" ",(e==null?null:e.locationName)||"-"," ")}}function At(t,a){t&1&&(o(0,"th",48),c(1,"Status"),r())}function Lt(t,a){if(t&1&&(o(0,"td",49)(1,"span",51),c(2),r()()),t&2){let e=a.$implicit,n=d(2);s(),Q("status-accepted",e.status.toLowerCase()==="approved")("status-pending",e.status.toLowerCase()==="pending"||e.status.toLowerCase()==="proposed new time")("status-cancelled",e.status.toLowerCase()==="rejected"||e.status.toLowerCase()==="declined"),s(),_(" ",n.renameLabel(e.status)," ")}}function Ft(t,a){t&1&&(o(0,"th",48),c(1,"Check-in"),r())}function It(t,a){if(t&1&&(o(0,"td",49),c(1),r()),t&2){let e=a.$implicit;s(),_(" ",e!=null&&e.selfCheckIn?"Yes":"No"," ")}}function Et(t,a){t&1&&(o(0,"th",48),c(1,"Action"),r())}function zt(t,a){if(t&1){let e=y();o(0,"button",53),w("click",function(){b(e);let l=d().$implicit,i=d(2);return P(i.meetingCheckInOut(l,"check-out"))}),c(1,"Check-out"),r()}}function Nt(t,a){if(t&1){let e=y();o(0,"button",55),w("click",function(){b(e);let l=d(2).$implicit,i=d(2);return P(i.meetingCheckInOut(l,"check-in"))}),c(1," Check-in "),r()}}function Rt(t,a){if(t&1&&p(0,Nt,2,0,"button",54),t&2){let e=d().$implicit;g(e.status.toLowerCase()!=="rejected"&&e.status.toLowerCase()!=="declined"?0:-1)}}function $t(t,a){if(t&1&&(o(0,"td",49),p(1,zt,2,0,"button",52)(2,Rt,1,1),r()),t&2){let e=a.$implicit;s(),g(e!=null&&e.selfCheckIn?1:2)}}function Vt(t,a){t&1&&m(0,"tr",56)}function jt(t,a){t&1&&m(0,"tr",57)}function Ut(t,a){t&1&&m(0,"mat-spinner",38)}function Bt(t,a){t&1&&(o(0,"div",39),c(1,"No meetings found."),r())}function Ht(t,a){t&1&&(o(0,"div",42)(1,"div",58)(2,"span",59),c(3,"Loading..."),r()(),o(4,"p",60),c(5,"Loading meetings..."),r()())}function Kt(t,a){t&1&&(o(0,"div",43),m(1,"i",61),o(2,"p",62),c(3,"No meetings found."),r()())}function Yt(t,a){t&1&&(o(0,"span",81),m(1,"i",84),c(2," Yes "),r())}function Qt(t,a){t&1&&(o(0,"span",82),c(1,"No"),r())}function Jt(t,a){if(t&1){let e=y();o(0,"button",53),w("click",function(l){b(e);let i=d().$implicit;return d(3).meetingCheckInOut(i,"check-out"),l.preventDefault(),P(l.stopPropagation())}),m(1,"i",85),c(2," Check-out "),r()}}function qt(t,a){if(t&1){let e=y();o(0,"button",55),w("click",function(l){b(e);let i=d(2).$implicit;return d(3).meetingCheckInOut(i,"check-in"),l.preventDefault(),P(l.stopPropagation())}),m(1,"i",86),c(2," Check-in "),r()}}function Gt(t,a){if(t&1&&p(0,qt,3,0,"button",54),t&2){let e=d().$implicit;g(e.status.toLowerCase()!=="rejected"&&e.status.toLowerCase()!=="declined"?0:-1)}}function Wt(t,a){if(t&1&&(o(0,"div",63)(1,"a",65)(2,"div",66)(3,"div",67)(4,"h5",68),c(5),r(),o(6,"div",69)(7,"span",51),c(8),r()(),o(9,"div",70)(10,"div",71)(11,"div",72)(12,"div",73),m(13,"i",74),o(14,"div",75)(15,"div",76),c(16,"Start time"),r(),o(17,"div",77),c(18),h(19,"dateFormat"),h(20,"dateFormat"),r()()()(),o(21,"div",72)(22,"div",73),m(23,"i",78),o(24,"div",75)(25,"div",76),c(26,"End time"),r(),o(27,"div",77),c(28),h(29,"dateFormat"),h(30,"dateFormat"),r()()()(),o(31,"div",72)(32,"div",73),m(33,"i",79),o(34,"div",75)(35,"div",76),c(36,"Location"),r(),o(37,"div",77),c(38),r()()()(),o(39,"div",72)(40,"div",73),m(41,"i",80),o(42,"div",75)(43,"div",76),c(44,"Check-in status"),r(),o(45,"div",77),p(46,Yt,3,0,"span",81),p(47,Qt,2,0,"span",82),r()()()()()(),o(48,"div",83),p(49,Jt,3,0,"button",52)(50,Gt,1,1),r()()()()()),t&2){let e=a.$implicit,n=d(3);s(),C("routerLink",f(39,ft,n.eventUrl,e.PK)),s(4),J(e.title),s(2),Q("status-accepted",e.status.toLowerCase()==="approved")("status-pending",e.status.toLowerCase()==="pending"||e.status.toLowerCase()==="proposed new time")("status-cancelled",e.status.toLowerCase()==="rejected"||e.status.toLowerCase()==="declined"),s(),_(" ",n.renameLabel(e.status)," "),s(10),_(" ",n.agendaTimeFormat==="12-hour"?v(19,15,f(42,N,e.startTime,n.timezoneLabel)):v(20,21,f(45,R,e.startTime,n.timezoneLabel))," "),s(10),_(" ",n.agendaTimeFormat==="12-hour"?v(29,27,f(48,N,e.endTime,n.timezoneLabel)):v(30,33,f(51,R,e.endTime,n.timezoneLabel))," "),s(10),J((e==null?null:e.locationName)||"-"),s(8),g(e!=null&&e.selfCheckIn?46:-1),s(),g(e!=null&&e.selfCheckIn?-1:47),s(2),g(e!=null&&e.selfCheckIn?49:50)}}function Xt(t,a){if(t&1&&(o(0,"div",44),pe(1,Wt,51,54,"div",63,Mt),o(3,"div",64),
1c(4),r()()),t&2){let e=d();s(),ge(e.data.filteredData),s(3),_(" Showing ",e.data.filteredData.length," meeting(s) ")}}function Zt(t,a){if(t&1){let e=y();o(0,"div",2)(1,"nav",3)(2,"ol",4)(3,"li",5)(4,"a",6),c(5,"Meetings"),r()(),p(6,vt,2,2,"li",7),r()(),o(7,"div",8)(8,"div",9)(9,"div",10)(10,"h1",11),c(11," Meetings of "),o(12,"strong"),c(13),r()()(),o(14,"div",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"span",16),m(19,"i",17),r(),m(20,"input",18),r()(),o(21,"div",19)(22,"button",20),w("click",function(){b(e);let l=d();return P(l.openFilterModal())}),m(23,"i",21),c(24," Filter "),p(25,xt,2,1,"span",22),r(),p(26,bt,3,1,"button",23),r()()()(),o(27,"app-date-selector",24),w("datesSelected",function(l){b(e);let i=d();return P(i.onDatesSelected(l))}),r()(),o(28,"div",25)(29,"table",26,0),S(31,27),M(32,Pt,2,0,"th",28)(33,St,3,4,"td",29),O(),S(34,30),M(35,Ot,4,0,"th",28)(36,wt,4,19,"td",29),O(),S(37,31),M(38,kt,4,0,"th",28)(39,yt,4,19,"td",29),O(),S(40,32),M(41,Dt,2,0,"th",28)(42,Tt,2,1,"td",29),O(),S(43,33),M(44,At,2,0,"th",28)(45,Lt,3,7,"td",29),O(),S(46,34),M(47,Ft,2,0,"th",28)(48,It,2,1,"td",29),O(),S(49,35),M(50,Et,2,0,"th",28)(51,$t,3,1,"td",29),O(),M(52,Vt,1,0,"tr",36)(53,jt,1,0,"tr",37),r(),p(54,Ut,1,0,"mat-spinner",38),p(55,Bt,2,0,"div",39),m(56,"mat-paginator",40,1),r(),o(58,"div",41),p(59,Ht,6,0,"div",42),p(60,Kt,4,0,"div",43),p(61,Xt,5,1,"div",44),r(),o(62,"small",45)(63,"sup"),c(64,"[*]"),r(),c(65),h(66,"timezoneAbbrev"),r()()}if(t&2){let e=a,n=d();s(4),C("href",ue("/control-panel/",n.eventUrl,"/console#meetings"),de),s(2),g(n.attendee?6:-1),s(7),q("",n.attendee==null?null:n.attendee.firstName," ",n.attendee==null?null:n.attendee.lastName),s(7),C("formControl",n.search),s(5),g(n.getActiveFilterCount()>0?25:-1),s(),g(n.getActiveFilterCount()>0?26:-1),s(),C("eventStartDate",n.eventService==null||n.eventService.data==null?null:n.eventService.data.startDate)("eventEndDate",n.eventService==null||n.eventService.data==null?null:n.eventService.data.endDate)("selectedDates",n.selectedDates),s(2),C("dataSource",e.data),s(23),C("matHeaderRowDef",n.columnsToDisplay),s(),C("matRowDefColumns",n.columnsToDisplay),s(),g(n.isLoading?54:-1),s(),g(!n.isLoading&&(!(e.data!=null&&e.data.filteredData)||!(e.data!=null&&e.data.filteredData.length))?55:-1),s(),C("pageSizeOptions",Ce(23,ht)),s(3),g(n.isLoading?59:-1),s(),g(!n.isLoading&&(!(e.data!=null&&e.data.filteredData)||!(e.data!=null&&e.data.filteredData.length))?60:-1),s(),g(!n.isLoading&&(e.data!=null&&e.data.filteredData)&&(e.data==null?null:e.data.filteredData.length)>0?61:-1),s(4),_(" Displayed as ",G(66,21,n.eventService==null?null:n.eventService.data.timezone)," timezone")}}var en=2e3,dt=t=>t.map(a=>ie(ne({},a),{attendees:a?.meetingAttendees??[]})),$=(()=>{class t{constructor(){this.privateSort=new Z,this.columnsToDisplay=["title","startTime","endTime","locationName","status","checkIn","actions"],this.isLoading=!0,this.agendaTimeFormat="",this.timezoneLabel="",this.onMeetingsChangeSubject=new oe([]),this.dataSourcePrivate=new tt([]),this.locationOptions=[],this.selectedLocations=[],this.statusOptions=["Accepted","Pending","Cancelled","Declined"],this.selectedStatuses=[],this.checkInOptions=["Yes","No"],this.selectedCheckIns=[],this.selectedDates=[],this.attendeeDetails$=new U,this.destroy$=new U,this.route=x(ve),this.eventService=x(Fe),this.controlPanelService=x(Le),this.toastService=x(Ie),this.utilitiesService=x(Ae),this.modalService=x(ke),this.liveUpdates=x(st),this.stopLiveUpdates=[],this.liveReplay=new ct,this.meetingsReread=new lt(()=>this.loadAttendeeMeetings(!0),en)}ngOnInit(){let e=window.location.pathname.split("/");this.eventUrl=e[2],this.search=new Se(""),this.agendaTimeFormat=this.eventService.data.agendaTimeFormat?this.eventService.data.agendaTimeFormat:"12-hour",this.timezoneLabel=this.eventService.data.timezone?this.eventService.data.timezone:"",this.search.valueChanges.pipe(re(200),le(),se(this.destroy$),B(n=>{let l=n.trim().toLowerCase();return this.dataSourcePrivate.filter=JSON.stringify({title:l,locations:this.selectedLocations,statuses:this.selectedStatuses,checkIns:this.selectedCheckIns}
1),this.paginatorPrivate.firstPage(),setTimeout(()=>this.sortFilteredData(),0),n.trim().toLowerCase()})).subscribe(()=>{}),this.dataSourcePrivate.filterPredicate=(n,l)=>{let i=JSON.parse(l),u=!i.title||n.title?.toLowerCase().includes(i.title),k=!i.locations||i.locations.length===0||i.locations.includes(n.locationName),D=n.status;D.toLowerCase()==="approved"?D="Accepted":D.toLowerCase()==="rejected"&&(D="Declined");let gt=!i.statuses||i.statuses.length===0||i.statuses.includes(D),V=!0;if(i.checkIns&&i.checkIns.length>0){let T=!!n.selfCheckIn;i.checkIns.includes("Yes")&&!i.checkIns.includes("No")?V=T:i.checkIns.includes("No")&&!i.checkIns.includes("Yes")&&(V=!T)}let te=!0;if(i.selectedDates&&i.selectedDates.length>0){let T=new Date(n.startTime);te=i.selectedDates.some(ut=>{let j=new Date(ut);return T.getFullYear()===j.getFullYear()&&T.getMonth()===j.getMonth()&&T.getDate()===j.getDate()})}return u&&k&>&&V&&te},this.attendeeData$=this.attendeeDetails$.pipe(ce({})),this.dataSource$=ae([this.onMeetingsChangeSubject,this.attendeeData$]).pipe(B(([n,l])=>(this.dataSourcePrivate.paginator=this.paginatorPrivate,this.dataSourcePrivate.sort=this.privateSort,this.dataSourcePrivate.data=n.filter(i=>i.status!=="deleted"&&!i.microSponsorNoAccess),this.dataSourcePrivate.data.forEach(i=>{let u=i.meetingAttendees.filter(k=>k.GSI1===l.PK);i.status=u[0]?.status||"",i.selfCheckIn=u[0]?.selfCheckIn||"",typeof i?.meetOnCanapii>"u"&&(i.meetOnCanapii=!0)}),this.dataSourcePrivate.filteredData&&this.dataSourcePrivate.filteredData.sort((i,u)=>{let k=new Date(i.startTime).getTime();return new Date(u.startTime).getTime()-k}),this.dataSourcePrivate))),this.getRouterParams(),this.loadLocations(),this.loadAttendeeMeetings(),this.stopLiveUpdates=[this.liveUpdates.listen(n=>this.applyLiveCheckIn(n)),this.liveUpdates.onRefocus(()=>this.meetingsReread.request(0))]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.routerSubscription$.unsubscribe();for(let e of this.stopLiveUpdates)e();this.stopLiveUpdates=[],this.meetingsReread.stop()}applyLiveCheckIn(e){if(!this.attendee?.PK||e.attendeePK!==this.attendee.PK)return;this.liveReplay.record(e);let n=this.onMeetingsChangeSubject.value;ee(dt(n),e,{keepStatus:!0})&&this.onMeetingsChangeSubject.next(n),this.meetingsReread.request()}loadLocations(){return A(this,null,function*(){try{let n=(yield this.controlPanelService.getLocations())?.data??[];this.locationOptions=n.filter(l=>l?.name).map(l=>l.name).sort((l,i)=>l.localeCompare(i))}catch(e){console.error("Error loading locations:",e),this.locationOptions=[]}})}renameLabel(e){let n;return e==="approved"||e==="Approved"?n="Accepted":e==="rejected"||e==="Rejected"?n="Declined":n=e,n}sortFilteredData(){this.dataSourcePrivate.filteredData&&this.dataSourcePrivate.filteredData.sort((e,n)=>{let l=new Date(e.startTime).getTime();return new Date(n.startTime).getTime()-l})}onFilterChange(){let e=this.search.value?this.search.value.trim().toLowerCase():"";this.dataSourcePrivate.filter=JSON.stringify({title:e,locations:this.selectedLocations,statuses:this.selectedStatuses,checkIns:this.selectedCheckIns,selectedDates:this.selectedDates}),this.paginatorPrivate.firstPage(),setTimeout(()=>this.sortFilteredData(),0)}clearFilters(){this.search.setValue(""),this.selectedLocations=[],this.selectedStatuses=[],this.selectedCheckIns=[],this.dataSourcePrivate.filter=JSON.stringify({title:"",locations:[],statuses:[],checkIns:[],selectedDates:this.selectedDates}),this.paginatorPrivate.firstPage(),setTimeout(()=>this.sortFilteredData(),0)}onDatesSelected(e){this.selectedDates=e,this.onFilterChange()}getActiveFilterCount(){let e=0;return this.selectedLocations.length>0&&e++,this.selectedStatuses.length>0&&e++,this.selectedCheckIns.length>0&&e++,e}openFilterModal(){let e=this.modalService.open(rt,{size:"md",centered:!0,backdrop:"static"}),n={locationOptions:this.locationOptions,statusOptions:this.statusOptions,checkInOptions:this.checkInOptions,selectedLocations:this.selectedLocations,selectedStatuses:this.selectedStatuses,selectedCheckIns:this.selectedCheckIns,showCheckInFilter:!0};e.componentInstance.config=n,e.componentInstance.activeFilterCount=this.getActiveFilterCount(),e.componentInstance.filterChange.subscribe(l=>{this.selectedLocations=l.selectedLocations,this.selectedStatuses=l.selectedStatuses,this.selectedCheckIns=l.selectedCheckIns||[],this.onFilterChange()}),e.componentInstance.clearFilters.subscribe(()=>{this.clearFilters()}),e.componentInstance.close.subscribe(()=>{e.close()})}getRouterParams(){this.routerSubscription$=this.route.params.subscribe(e=>{e.id&&(this.id=decodeURI(e.id))})}loadAttendeeMeetings(e=!1){return A(this,null,function*(){let n=this.liveReplay.start();try{e||(this.isLoading=!0);let l=yield this.controlPanelService.getAttendeeMeetings(this.id),i=l?.data?.meetings;if(e&&!Array.isArray(i))return;for(let u of this.liveReplay.finish(n))ee(dt(i??[]),u,{keepStatus:!0});this.onMeetingsChangeSubject.next(i),this.attendeeDetails$.next(l?.data?.attendee),this.attendee=l?.data?.attendee,this.isLoading=!1}catch(l){this.isLoading=!1,e&&console.error("Failed to re-read the attendee's meetings",l)}finally{this.liveReplay.finish(n)}})}meetingCheckInOut(e,n){return A(this,null,function*(){try{let l=n==="check-in",i=l?"Check-in":"Check-out";n==="check-out"&&(yield this.utilitiesService.confirm({message:`Are you sure you want to check-out this ${this.attendee?.firstName} ${this.attendee?.lastName}?`}).result);try{let u=l?yield this.controlPanelService.meetingCheckIn(e.PK,{attendee:this.attendee.PK}):yield this.controlPanelService.meetingCheckOut(e.PK,{attendee:this.attendee.PK});if(u?.success){let k=u?.message.replace("Attendee",`${this.attendee?.firstName} ${this.attendee?.lastName}`);this.toastService.showSuccess(i,k)}else this.toastService.showDanger(i,`Failed to ${n} ${this.attendee?.firstName} ${this.attendee?.lastName}. Please try again.`);this.loadAttendeeMeetings()}catch{this.toastService.showDanger(i,`Failed to ${n} ${this.attendee?.firstName} ${this.attendee?.lastName}. Please try again.`)}}catch{return}})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=me({type:t,selectors:[["app-control-panel-meeting"]],viewQuery:function(n,l){if(n&1&&(H(X,5),H(_t,5)),n&2){let i;K(i=Y())&&(l.paginatorPrivate=i.first),K(i=Y())&&(l.privateSort=i.first)}},decls:2,vars:5,consts:[["privateSort","matSort"],["paginatorPrivate","matPaginator"],[1,"container-fluid","py-3"],["aria-label","breadcrumb",1,"mb-3"],[1,"breadcrumb"],[1,"breadcrumb-item"],[3,"href"],["aria-current","page",1,"breadcrumb-item","active"],[1,"sticky-header-filter"],[1,"row","g-3","align-items-center","mb-3"],[1,"col-12","col-lg-4"],[1,"page-title","mb-0"],[1,"col-12","col-lg-8"],[1,"d-flex","gap-2","align-items-center","flex-wrap"],[1,"flex-grow-1","search-wrapper"],[1,"input-group"],[1,"input-group-text"],[1,"bi","bi-search"],["placeholder","Search meetings...","aria-label","Search meetings",1,"form-control","search-input",3,"formControl"],[1,"d-flex","gap-2","buttons-wrapper"],[1,"btn","btn-success","position-relative","filter-btn",3,"click"],[1,"bi","bi-funnel","me-2"],[1,"position-absolute","top-0","start-100","translate-middle","badge","rounded-pill","bg-danger"],["type","button",1,"btn","btn-outline-secondary","clear-btn",3,"disabled"],[3,"datesSelected","eventStartDate","eventEndDate","selectedDates"],[1,"card","mb-3","d-none","d-lg-block","table-container"],["mat-table","","matSort","","matSortActive","startTime","matSortDirection","desc",1,"w-100","modern-table",3,"dataSource"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startTime"],["matColumnDef","endTime"],["matColumnDef","locationName"],["matColumnDef","status"],["matColumnDef","checkIn"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["diameter","40",1,"mx-auto","my-5"],[1,"text-center","my-5","o-50"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"d-lg-none"],[1,"text-center","py-5"],[1,"empty-state","text-center","py-5"],[1,"mobile-meetings-list"],[1,"d-block","mt-3"],["type","button",1,"btn","btn-outline-secondary","clear-btn",3,"click","disabled"],[1,"bi","bi-x-circle","me-1"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"meeting-link",3,"routerLink"],[1,"status-badge"],[1,"btn","btn-danger","btn-sm"],[1,"btn","btn-danger","btn-sm",3,"click"],[1,"btn","btn-primary","btn-sm"],[1,"btn","btn-primary","btn-sm",3,"click"],["mat-header-row",""],["mat-row",""],["aria-label","Loading meetings",1,"spinner-border","text-primary"],[1,"visually-hidden"],[1,"mt-2","text-muted"],[1,"bi","bi-calendar-x","fs-1","text-muted"],[1,"text-muted","mt-2"],[1,"meeting-card","mb-3"],[1,"mobile-pagination-info","text-center","text-muted","small","mt-3"],[1,"card-link",3,"routerLink"],[1,"card"],[1,"card-body"],[1,"meeting-title","mb-2"],[1,"mb-3","d-flex","flex-wrap","gap-2","align-items-center"],[1,"meeting-details"],[1,"row"],[1,"col-12","col-md-6"],[1,"detail-row"],[1,"bi","bi-calendar-event","me-2"],[1,"detail-content"],[1,"detail-label"],[1,"detail-value"],[1,"bi","bi-calendar-check","me-2"],[1,"bi","bi-geo-alt","me-2"],[1,"bi","bi-pers
1on-check","me-2"],[1,"text-success","fw-bold"],[1,"text-muted"],[1,"mt-3","d-flex","gap-2","action-buttons"],[1,"bi","bi-check-circle-fill","me-1"],[1,"bi","bi-box-arrow-right","me-1"],[1,"bi","bi-box-arrow-in-right","me-1"]],template:function(n,l){if(n&1&&(p(0,Zt,67,24,"div",2),h(1,"async")),n&2){let i;g((i=he(3,Ct,G(1,1,l.dataSource$)))?0:-1,i)}},dependencies:[I,be,Pe,E,Oe,z,He,Z,Qe,Ye,Je,Ue,Ke,qe,xe,Ge,Xe,We,Ze,ze,X,fe,Re,ot],styles:[".container-fluid[_ngcontent-%COMP%]{position:relative}.sticky-header-filter[_ngcontent-%COMP%]{position:sticky;top:60px;z-index:1020;background-color:#fff;padding:1rem .85rem;border-radius:.85rem;margin-bottom:1rem;border-bottom:1px solid #e9ecef;box-shadow:0 2px 4px #00000040}.sticky-header-filter[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;color:#212529;margin-bottom:0}@media (width <= 768px){.sticky-header-filter[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{font-size:1.5rem}}@media (width <= 576px){.sticky-header-filter[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{font-size:1.25rem}}.sticky-header-filter[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#164874}@media (width <= 576px){.sticky-header-filter[_ngcontent-%COMP%] .search-wrapper[_ngcontent-%COMP%]{flex-basis:100%;min-width:100%}}@media (width <= 576px){.sticky-header-filter[_ngcontent-%COMP%] .buttons-wrapper[_ngcontent-%COMP%]{flex-basis:100%;width:100%;justify-content:flex-end}}.sticky-header-filter[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{font-size:.95rem}.sticky-header-filter[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{background-color:#f8f9fa;border-right:none}.sticky-header-filter[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border-left:none}.sticky-header-filter[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border-color:#ced4da;box-shadow:none}.sticky-header-filter[_ngcontent-%COMP%] .filter-btn[_ngcontent-%COMP%], .sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%]{min-width:100px;padding:.375rem 1rem;white-space:nowrap}@media (width <= 768px){.sticky-header-filter[_ngcontent-%COMP%] .filter-btn[_ngcontent-%COMP%], .sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%]{min-width:90px;padding:.375rem .875rem;font-size:.9rem}}@media (width <= 576px){.sticky-header-filter[_ngcontent-%COMP%] .filter-btn[_ngcontent-%COMP%], .sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%]{min-width:80px;padding:.375rem .75rem;font-size:.875rem}.sticky-header-filter[_ngcontent-%COMP%] .filter-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.75rem}}.sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%]{color:#6c757d;border-color:#6c757d;transition:all .2s ease}.sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%]:hover:not(:disabled){color:#fff;background-color:#6c757d;border-color:#6c757d}.sticky-header-filter[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.875rem}.sticky-header-filter[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{font-size:.7rem;padding:.25em .5em}.form-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;margin-bottom:.25rem}.btn-outline-secondary[_ngcontent-%COMP%]{color:#6c757d;border-color:#6c757d;transition:all .2s ease}.btn-outline-secondary[_ngcontent-%COMP%]:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.875rem}.filter-section[_ngcontent-%COMP%] .form-label[_ngcontent-%COMP%]{font-size:.95rem;margin-bottom:.5rem}.table-container[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #00000014}.modern-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f8f9fa;font-weight:600;color:#495057;font-size:.875rem;text-transform:uppercase;letter-spacing:.5px;padding:1rem .75rem}.modern-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:1rem .75rem;vertical-align:middle}.modern-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#f8f9fa}.meeting-link[_ngcontent-%COMP%]{color:#164874;font-weight:600;text-decoration:none}.meeting-link[_ngcontent-%COMP%]:hover{color:#0d3049;text-decoration:underline}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:.35rem .75rem;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:capitalize}.status-badge.status-accepted[_ngcontent-%COMP%]{background-color:#28a7451a;color:#28a745}.status-badge.status-pending[_ngcontent-%COMP%]{background-color:#f6ba4826;color:#f6ba48}.status-badge.status-cancelled[_ngcontent-%COMP%]{background-color:#e64d6026;color:#e64d60}.mobile-meetings-list[_ngcontent-%COMP%]{padding:0}.meeting-card[_ngcontent-%COMP%] .card-link[_ngcontent-%COMP%]{text-decoration:none;color:inherit;display:block}.meeting-card[_ngcontent-%COMP%] .card-link[_ngcontent-%COMP%]:hover{text-decoration:none}.meeting-card[_ngcontent-%COMP%] .card-link[_ngcontent-%COMP%]:hover .card[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0000001f;transform:translateY(-2px)}.meeting-card[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]{border-radius:8px;border:1px solid #e9ecef;transition:all .2s ease}.meeting-card[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:hover{border-color:#dee2e6}.meeting-card[_ngcontent-%COMP%] .meeting-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#164874;margin-bottom:.75rem;line-height:1.4}@media (width <= 576px){.meeting-card[_ngcontent-%COMP%] .meeting-title[_ngcontent-%COMP%]{font-size:1rem}}.meeting-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.detail-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem}.detail-row[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.125rem;color:#6c757d;flex-shrink:0;margin-top:.125rem}.detail-content[_ngcontent-%COMP%]{flex:1;min-width:0}.detail-label[_ngcontent-%COMP%]{font-size:.75rem;color:#6c757d;text-transform:uppercase;letter-spacing:.5px;font-weight:600;margin-bottom:.25rem}.detail-value[_ngcontent-%COMP%]{font-size:.9375rem;color:#212529;overflow-wrap:break-word}.empty-state[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:3rem;color:#adb5bd}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}.spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem}.mobile-pagination-info[_ngcontent-%COMP%]{padding:1rem;background-color:#f8f9fa;border-radius:8px;font-size:.875rem}@media (width <= 1024px){.header-section[_ngcontent-%COMP%]{margin-bottom:1rem}}@media (width >= 768px) and (width <= 1023px){.meeting-card[_ngcontent-%COMP%] .meeting-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{gap:0}.meeting-card[_ngcontent-%COMP%] .meeting-details[_ngcontent-%COMP%] .detail-row[_ngcontent-%COMP%]{margin-bottom:.5rem}.meeting-card[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{justify-content:flex-end}.meeting-card[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:0 0 auto;min-width:120px}}@media (width <= 768px){.container-fluid[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.meeting-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:1rem}}@media (width <= 576px){.container-fluid[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}.header-section[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{margin-bottom:1rem}.meeting-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:.875rem}.meeting-card[_ngcontent-%COMP%] .meeting-title[_ngcontent-%COMP%]{font-size:.9375rem}.meeting-card[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 auto}.detail-row[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.detail-value[_ngcontent-%COMP%]{font-size:.875rem}.btn-sm[_ngcontent-%COMP%]{font-size:.8125rem;padding:.375rem .75rem}}.location-filter-select[_ngcontent-%COMP%] .ng-select-container, .status-filter-select[_ngcontent-%COMP%] .ng-select-container, .checkin-filter-select[_ngcontent-%COMP%] .ng-select-container{min-height:38px}.location-filter-select[_ngcontent-%COMP%] .ng-value, .status-filter-select[_ngcontent-%COMP%] .ng-value, .checkin-filter-select[_ngcontent-%COMP%] .ng-value{background-color:#164874;color:#fff;border-radius:3px;padding:2px 8px;margin:2px;font-size:.875rem}.location-filter-select[_ngcontent-%COMP%] .ng-value .ng-value-icon, .status-filter-select[_ngcontent-%COMP%] .ng-value .ng-value-icon, .checkin-filter-select[_ngcontent-%COMP%] .ng-value .ng-value-icon{color:#000;opacity:.7}.location-filter-select[_ngcontent-%COMP%] .ng-value .ng-value-icon:hover, .status-filter-select[_ngcontent-%COMP%] .ng-value .ng-value-icon:hover, .checkin-filter-select[_ngcontent-%COMP%] .ng-value .ng-value-icon:hover{opacity:1}.location-filter-select[_ngcontent-%COMP%] .ng-placeholder, .status-filter-select[_ngcontent-%COMP%] .ng-placeholder, .checkin-filter-select[_ngcontent-%COMP%] .ng-placeholder{color:#6c757d}"]})}}return t})();var tn=[{path:"",component:$}],pt=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=F({type:t})}static{this.\u0275inj=L({imports:[W.forChild(tn),W]})}}return t})();var qn=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=F({type:t})}
1static{this.\u0275inj=L({imports:[Me,$e,it,pt,we,ye,Ee,I,E,et,je,Be,Ne,De,Ve,nt,Te,z,at,$]})}}return t})();export{qn as AttendeeMeetingsModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.