PageSourceSearch

https://techleadersummit.io/app/chunk-FPBWDZBP.js

js techleadersummit.io collected 2026-10-07 07:16:46 UTC 106,556 bytes, 2 lines download raw bytes

1import{a as gt}from"./chunk-F3YW4QTF.js";import{a as ve}from"./chunk-KQCJL3Z5.js";import{a as Fe}from"./chunk-46XOPNFH.js";import{a as De}from"./chunk-A2NI7TCE.js";import"./chunk-USFQZG35.js";import{a as vt}from"./chunk-LU6YXTA5.js";import{a as I}from"./chunk-AA4K6WS4.js";import{a as ze}from"./chunk-ZQ7DYZD3.js";import"./chunk-544PK6PO.js";import{a as ht}from"./chunk-TE3HTB2M.js";import{a as he}from"./chunk-L5BWHD3Q.js";import{a as Ct}from"./chunk-QSQY3MKG.js";import{d as ft}from"./chunk-NM2YCYMW.js";import{B as ue,Dc as fe,Ec as Q,Pc as mt,Qc as z,Uc as D,Vc as ct,Xc as Te,Y as N,a as _e,b as $,bc as lt,cd as pt,d as B,e as Ve,fc as dt,gc as Me,gd as Ce,h as L,j as we,jc as O,kc as b,ld as se,n as W,nb as st,ob as re,oc as T,q as ke,r as Ee,sa as Ie,va as F}from"./chunk-OTSSTHG4.js";import{$ as S,Ba as at,C as be,Ca as a,Da as h,Ea as _,Fa as q,G as v,H as g,La as R,Ma as pe,N as ce,Qa as oe,R as ne,Ta as M,Ua as Y,V as nt,Va as P,W as k,Wa as rt,X as r,aa as E,ba as ye,fb as j,gb as ae,hb as ee,ia as ot,ja as c,ka as p,la as y,ma as V,na as w,oa as u,p as U,pa as n,qa as i,ra as l,sa as x,t as ie,ta as C,tb as Pe,ua as d,ub as _t,vb as J,wb as ut,yb as it}from"./chunk-LSXE27IB.js";function kt(o,t){if(o&1&&(n(0,"ul",0)(1,"li")(2,"a",6),a(3,"Schedule"),i()(),n(4,"li")(5,"a",6),a(6,"Speakers"),i()(),n(7,"li")(8,"a",6),a(9,"Pre-Conf"),i()(),n(10,"li")(11,"a",6),a(12,"Attendees"),i()(),n(13,"li")(14,"a",6),a(15,"Slack"),i()(),n(16,"li")(17,"a",6),a(18,"Video"),i()(),n(19,"li")(20,"a",6),a(21,"Show Admin"),i()()()),o&2){let e=d();r(2),u("href",R("/app/showadmin/virtual/",e.show.id,"/schedule"),k),r(3),u("href",R("/app/showadmin/virtual/",e.show.id,"/speakers"),k),r(3),u("href",R("/app/showadmin/virtual/",e.show.id,"/preconf"),k),r(3),u("href",R("/app/showadmin/virtual/",e.show.id,"/attendee"),k),r(3),u("href",R("/app/showadmin/slack/",e.show.id,"/invite"),k),r(3),u("href",R("/app/showadmin/virtual/",e.show.id,"/video"),k),r(3),u("href",R("/app/showadmin/virtual/",e.show.id,"/admins"),k)}}var K=class o{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-links"]],inputs:{show:"show"},standalone:!1,decls:17,vars:1,consts:[[1,"hlink"],["href","/app/showadmin/virtual/users"],["href","/app/showadmin/virtual/create-hosts-queue"],["href","/app/showadmin/virtual/speaker-status"],["href","/app/showadmin/virtual/meetings"],["href","/app/showadmin/virtual/settings"],[3,"href"]],template:function(e,s){e&1&&(c(0,kt,22,14,"ul",0),n(1,"ul",0)(2,"li")(3,"a",1),a(4,"Zoom Users"),i()(),n(5,"li")(6,"a",2),a(7,"Create Hosts Queue"),i()(),n(8,"li")(9,"a",3),a(10,"Speaker Status"),i()(),n(11,"li")(12,"a",4),a(13,"Zoom Meetings"),i()(),n(14,"li")(15,"a",5),a(16,"Settings"),i()()()),e&2&&p(s.show?0:-1)},encapsulation:2})}};function Et(o,t){if(o&1&&(n(0,"h1"),a(1),i()),o&2){let e=d();r(),h(e.show.name)}}var Oe=class o{constructor(t,e){this.showService=t;this.route=e}ngOnInit(){this.route.params.subscribe(t=>{let e=+t.showId;this.fetchData(e)})}fetchData(t){this.showService.fetchShow(t).subscribe(e=>this.show=e)}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(Pe))}}static{this.\u0275cmp=E({type:o,selectors:[["app-virtual-show"]],standalone:!1,decls:10,vars:2,consts:[[1,"show-wrapper"],[1,"row"],[1,"col-3"],[1,"col-9"],[3,"show"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"header"),c(2,Et,2,1,"h1"),n(3,"div",1)(4,"div",2)(5,"h3"),a(6,"Virtual Show Admin"),i()(),n(7,"div",3),l(8,"app-vs-links",4),i()()(),l(9,"router-outlet"),i()),e&2&&(r(2),p(s.show?2:-1),r(6),u("show",s.show))},dependencies:[_t,K],styles:["header[_ngcontent-%COMP%]{margin-bottom:30px}header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px;margin-left:20px}"]})}};function Mt(o,t){if(o&1&&(n(0,"h4")(1,"a",6),a(2,"Attendee CSV"),i()()),o&2){let e=d(2);r(),u("href",R("/n/data/suadmin/presentation/",e.presentation.id,"/virtualattendees.csv"),k)}}function Tt(o,t){if(o&1&&(n(0,"div",21),a(1),i()),o&2){let e=d(3);r(),_(" ",e.speaker.name," is not setup as a zoom host in the NFJS account. ")}}function Pt(o,t){if(o&1){let e=x();n(0,"div")(1,"button",22),C("click",function(){v(e);let m=d(3);return g(m.createMeeting(m.presentation))}),a(2,"Create Meeting"),i(),n(3,"button",23),C("click",function(){v(e);let m=d(3);return g(m.selectCreateMeetingWithHost(m.presentation))}),a(4,"Create Meeting + Select Host"),i()()}}function zt(o,t){if(o&1&&(n(0,"a",27),l(1,"i",30),a(2," Replay"),i()),o&2){let e=d(4);u("href",e.presentation.replayUrl,k)}}function Dt(o,t){if(o&1&&(n(0,"li")(1,"b"),a(2,"Zoom Start Time: "),i(),a(3),i()),o&2){let e=d(4);r(3),_(" ",e.time(e.zoomDetails==null?null:e.zoomDetails.start_time,"M/d/yyyy h:mm a")," ")}}function Ft(o,t){if(o&1&&(n(0,"div")(1,"textarea",31),a(2),M(3,"json"),i()()),o&2){let e=d(4);r(2),h(Y(3,1,e.zoomDetails))}}function Ot(o,t){if(o&1&&(n(0,"a",32),l(1,"i",30),i()),o&2){let e=d().$implicit;u("href",e.replayUrl,k)}}function Zt(o,t){if(o&1&&(n(0,"tr")(1,"td")(2,"a",6),a(3),i()(),n(4,"td"),a(5),i(),n(6,"td"),c(7,Ot,2,1,"a",32),i()()),o&2){let e=t.$implicit;r(2),u("href",e.replayUrl,k),r(),h(e.cdnPath),r(2),h(e.sizeMB),r(2),p(e.replayUrl?7:-1)}}function At(o,t){o&1&&(n(0,"tr")(1,"td",33)(2,"em"),a(3,"No records"),i()()())}function Rt(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"button",35),C("click",function(){let m=v(e).$implicit,f=d(5);return g(f.publishRecording(m))}
1),l(3,"i",36),i()(),n(4,"td"),a(5),i(),n(6,"td"),a(7),M(8,"number"),i(),n(9,"td"),a(10),i()()}if(o&2){let e=t.$implicit;r(5),_(" ",e.download_url.substring(0,60)," "),r(2),_(" ",P(8,3,e.file_size/1e6,"1.1-1")," MB "),r(3),h(e.file_type)}}function Ut(o,t){o&1&&(n(0,"tr")(1,"td",37)(2,"em"),a(3,"No recordings"),i()()())}function Nt(o,t){if(o&1&&(n(0,"div")(1,"h3"),a(2,"Recordings Hosted on Zoom"),i(),n(3,"table",29)(4,"thead")(5,"tr"),l(6,"th",34),n(7,"th"),a(8,"File"),i(),l(9,"th")(10,"th"),i()(),n(11,"tbody"),V(12,Rt,11,6,"tr",null,y),c(14,Ut,4,0,"tr"),i()()()),o&2){let e=d(4);r(12),w(e.recordingFiles),r(2),p(e.recordingFiles.length==0?14:-1)}}function Ht(o,t){if(o&1){let e=x();n(0,"div")(1,"div",24)(2,"button",25),C("click",function(){v(e);let m=d(3);return g(m.deleteMeeting(m.presentation))}),a(3,"Delete Meeting"),i(),n(4,"button",25),C("click",function(){v(e);let m=d(3);return g(m.setShowZoomDetail())}),l(5,"i",26),a(6," Zoom Details"),i(),c(7,zt,3,1,"a",27),i(),n(8,"ul")(9,"li")(10,"b"),a(11,"Meeting ID: "),i(),a(12),i(),n(13,"li")(14,"b"),a(15,"Start URL: "),i(),n(16,"a",28),a(17),i()(),n(18,"li")(19,"b"),a(20,"Join URL: "),i(),a(21),i(),n(22,"li")(23,"b"),a(24,"Host Email: "),i(),a(25),i(),n(26,"li")(27,"b"),a(28,"Host ID: "),i(),a(29),i(),n(30,"li")(31,"b"),a(32,"Auto Recording: "),i(),a(33),i(),n(34,"li")(35,"b"),a(36,"NFJS Start Time: "),i(),a(37),i(),c(38,Dt,4,1,"li"),i(),c(39,Ft,4,3,"div"),n(40,"div")(41,"h3"),a(42,"Recordings Hosted on NFJS"),i(),n(43,"table",29)(44,"thead")(45,"tr")(46,"th"),a(47,"File"),i(),n(48,"th"),a(49,"Size MB"),i(),n(50,"th"),a(51,"View"),i()()(),n(52,"tbody"),V(53,Zt,8,4,"tr",null,y),c(55,At,4,0,"tr"),i()()(),c(56,Nt,15,1,"div"),i()}if(o&2){let e=d(3);r(7),p(e.presentation.replayUrl?7:-1),r(5),_(" ",e.presentation.zoomMeetingId," "),r(4),u("href",e.presentation.zoomStartUrl,k),r(),_("",e.presentation.zoomStartUrl.substring(0,80),"..."),r(4),_(" ",e.presentation.zoomJoinUrl," "),r(4),_(" ",e.zoomDetails==null?null:e.zoomDetails.host_email," "),r(4),_(" ",e.presentation.zoomHostId," "),r(4),_(" ",e.zoomDetails==null||e.zoomDetails.settings==null?null:e.zoomDetails.settings.auto_recording," "),r(4),_(" ",e.time(e.presentation.startTime,"M/d/yyyy h:mm a")," "),r(),p(e.zoomDetails?38:-1),r(),p(e.showZoomDetail?39:-1),r(14),w(e.presentation.recordings),r(2),p(e.presentation.recordings.length==0?55:-1),r(),p(e.recordingFiles?56:-1)}}function jt(o,t){if(o&1&&(n(0,"div",16),c(1,Tt,2,1,"div",21),c(2,Pt,5,0,"div"),c(3,Ht,57,13,"div"),i()),o&2){let e=d(2);r(),p(e.speaker.zoomHostId==null?1:-1),r(),p(e.presentation.webinarCreated==!1?2:-1),r(),p(e.presentation.webinarCreated?3:-1)}}function Bt(o,t){if(o&1&&(n(0,"div",2)(1,"div",4)(2,"h5",5),a(3),n(4,"a",6),l(5,"i",7),i()(),n(6,"button",8)(7,"span",9),a(8,"\xD7"),i()()(),n(9,"div",10)(10,"header")(11,"div",11),l(12,"img",12),i(),n(13,"div",13)(14,"h3"),a(15),i(),n(16,"h4"),a(17),i(),n(18,"h4"),a(19),i(),c(20,Mt,3,2,"h4"),i()(),l(21,"div",14),M(22,"markdown"),l(23,"app-info-message",15),c(24,jt,4,3,"div",16),i(),n(25,"div",17)(26,"div",18)(27,"div",19)(28,"button",20),a(29,"Close"),i()()()()()),o&2){let e=d();r(3),_("",e.presentation.title," \xA0 "),r(),u("href",pe("/app/speaker/",e.presentation.speakerIds[0],"/topic/",e.presentation.topicId,"/preview"),k),r(8),u("src",e.presentation.smallImageSqURL,k)("alt",e.presentation.speakerNames),r(3),h(e.presentation.speakerNames),r(2),h(e.time(e.presentation.startTime,"EEEE - h:mm a")),r(2),_("Presentation ID: ",e.presentation.id),r(),p(e.show.isPast?20:-1),r(),u("innerHTML",Y(22,13,e.presentation.summary),nt),r(2),u("error",e.error),r(),p(e.show.virtualPlatform==0?24:-1)}}var Ze=class o{constructor(t,e,s,m){this.showService=t;this.speakerService=e;this.zoomService=s;this.router=m;this.update=new ce;this.ended=!1;this.showZoomDetail=!1}ngOnInit(){}ngOnChanges(t){this.presentation&&(this.ended=this.hasEnded(this.presentation),this.fetchData(this.presentation.speakerIds[0]),this.setupReplayUrl(this.presentation))}setupReplayUrl(t){if(t?.recordings==null||t?.recordings.length===0)return;let e=t.recordings[0];t.replayUrl=e.replayUrl,t.sizeMB=e.sizeMB}fetchData(t){this.speakerService.get(t).subscribe(e=>{this.speaker=e}),this.presentation.zoomMeetingId!=null&&(this.recordingFiles=null,this.zoomDetails=null,this.ended?this.fetchMeetingWithRecordings(this.presentation):this.fetchMeetingNoRecording(this.presentation))}fetchMeetingWithRecordings(t){U(this.zoomService.fetchRecordings(t.zoomMeetingId),this.zoomService.fetch
1Meeting(t.zoomMeetingId)).subscribe(e=>{this.recordingFiles=e[0].recording_files,this.zoomDetails=e[1]})}fetchMeetingNoRecording(t){this.zoomService.fetchMeeting(t.zoomMeetingId).subscribe(e=>{this.zoomDetails=e,console.log(e)})}time(t,e){return t==null?null:Q(t,e,this.zoneName)}createMeeting(t){confirm("Are you sure you want to create the meeting?")&&this.zoomService.createMeeting(t.id).subscribe(e=>{this.update.emit("Meeting created")},e=>{this.error=b(e)})}selectCreateMeetingWithHost(t){this.zoomService.fetchUsers().subscribe(e=>{this.hosts=e})}hostSelectedForMeeting(t){this.zoomService.createMeetingForPresentationWithHost(this.presentation.id,t).subscribe(e=>{this.update.emit("Meeting created")},e=>{this.error=b(e)},()=>{T("#selectZoomHost"),O()})}setShowZoomDetail(){this.showZoomDetail=!this.showZoomDetail}deleteMeeting(t){confirm("Are you sure you want to delete the meeting?")&&this.zoomService.deleteMeeting(t.id).subscribe(e=>{this.update.emit("Meeting created")},e=>{this.error=b(e)})}hasEnded(t){return Date.now()>Me(t.endTime).getTime()}publishRecording(t){this.zoomService.publishRecordings(this.presentation.id).subscribe(e=>{T();let s=`/staff/task-status/${e.taskId}`;this.router.navigateByUrl(s)})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(se),S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-presentation-detail"]],inputs:{show:"show",presentation:"presentation",zoneName:"zoneName"},outputs:{update:"update"},standalone:!1,features:[ne],decls:4,vars:2,consts:[["id","presentationDetail","tabindex","-1","role","dialog","aria-labelledby","presentationTitle","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[3,"host","zoomHosts"],[1,"modal-header"],[1,"modal-title"],["target","_blank",3,"href"],[1,"fas","fa-edit"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"speaker-circle-sm"],[3,"src","alt"],[1,"text"],[3,"innerHTML"],[3,"error"],[1,"zoom"],[1,"modal-footer"],[1,"clearfix"],[1,"float-right"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"alert","alert-danger"],["type","button",1,"btn","btn-primary",3,"click"],["type","button","data-toggle","modal","data-target","#selectZoomHost",1,"btn","btn-primary",3,"click"],[1,"button-wrapper","mb-3"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-search"],["target","_blank",1,"btn","btn-secondary",3,"href"],[3,"href"],[1,"table","table-striped"],[1,"fas","fa-tv"],["name","zoomDetail","cols","60","rows","10",1,"form-control"],["target","_blank",1,"btn","btn-primary",3,"href"],["colspan","3"],[1,"w80"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-cloud-upload-alt"],["colspan","4"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1),c(2,Bt,30,15,"div",2),i()(),n(3,"app-select-zoom-host",3),C("host",function(f){return s.hostSelectedForMeeting(f)}),i()),e&2&&(r(2),p(s.presentation&&s.speaker?2:-1),r(),u("zoomHosts",s.hosts))},dependencies:[z,Fe,mt,ae,ee],styles:["div.modal[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]{display:table;margin-bottom:20px}div.modal[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   div.speaker-circle-sm[_ngcontent-%COMP%]{display:table-cell;padding-right:10px}div.modal[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   div.text[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}div.modal[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   div.text[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px}div.modal[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   div.text[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px}div.modal[_ngcontent-%COMP%]   div.zoom[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none}div.modal[_ngcontent-%COMP%]   div.modal-footer[_ngcontent-%COMP%]{display:block}"]})}};function $t(o,t){if(o&1){let e=x();n(0,"div")(1,"button",10),C("click",function(){v(e);let m=d(2);return g(m.createMeetingsForSlot(m.slot))}),a(2,"Create Meetings"),i(),n(3,"button",10),C("click",function(){v(e);let m=d(2);return g(m.deleteMeetingsForSlot(m.slot))}),a(4,"Delete Meetings"),i()()}}function Wt(o,t){if(o&1){let e=x();n(0,"div")(1,"h4"),a(2,"Meeting is Configured"),i(),n(3,"div",12),a(4),l(5,"br"),a(6),l(7,"br"),n(8,"b"),a(9,"Zoom Meeting ID: "),i(),a(10),l(11,"br"),n(12,"b"),a(13,"Join: "),i(),n(14,"a",13),a(15),i(),l(16,"br"),n(17,"b"),a(18,"Start: "),i(),n(19,"a",13),a(20),i()(),n(21,"button",14),C("click",function(){v(e);let m=d(3);return g(m.deleteBreakMeeting(m.slot))}),l(22,"i",15),i(),n(23,"button",14),C("click",function(){v(e);let m=d(3);return g(m.updateSlotMeetingSettings(m.slot))}),l(24,"i",16),i()()}if(o&2){let e=d(3);r(4),_(" ",e.slot.virtualAdmin.name," "),r(2),_(" ",e.slot.virtualAdmin.zoomEmail," "),r(4),_("",e.slot.zoomMeetingId," "),r(4),u("href",e.slot.zoomJoinUrl,k),r(),h(e.slot.zoomJoinUrl),r(4),u("href",e.slot.zoomStartUrl,k),r(),h(e.slot.zoomStartUrl==null?null:e.slot.zoomStartUrl.substring(0,80))}}function Jt(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"button",10),C("click",function(){let m=v(e).$implicit,f=d(4);return g(f.createMeetingForBreak(f.slot,m))}),l(3,"i",19),i()(),n(4,"td"),a(5),l(6,"br"),a(7),l(8,"br"),a(9),i()()}if(o&2){let e=t.$implicit;r(5),_(" ",e.name," "),r(2),_(" ",e.zoomEmail," "),r(2),_(" ",e.zoomHostId," ")}}function Gt(o,t){o&1&&(n(0,"tr")(1,"td",20)(2,"em"),a(3,"No admins configured"),i()()())}function qt(o,t){if(o&1&&(n(0,"table",11)(1,"thead",17)(2,"tr"),l(3,"th",18),n(4,"th"),a(5,"Host"),i()()(),n(6,"tbody"),V(7,Jt,10,3,"tr",null,y),c(9,Gt,4,0,"tr"),i()()),o&2){let e=d(3);r(7),w(e.admins),r(2),p(e.admins.length==0?9:-1)}}function Qt(o,t){if(o&1&&(n(0,"div")(1,"h3"),a(2),i(),n(3,"h4"),a(4),i(),c(5,Wt,25,7,"div"),c(6,qt,10,1,"table",11),i()),o&2){let e=d(2);r(2),h(e.slot.label),r(2),_("Slot ID: ",e.slot.id),r(),p(e.slot.zoomMeetingId?5:-1),r(),p(e.slot.zoomMeetingId==null?6:-1)}}function Kt(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"button",21),C("click",function(){let m=v(e).$implicit,f=d(3);return g(f.publishRecording(m))}
1),l(3,"i",22),i()(),n(4,"td"),a(5),i(),n(6,"td"),a(7),M(8,"number"),i(),n(9,"td"),a(10),i()()}if(o&2){let e=t.$implicit;r(5),_(" ",e.download_url.substring(0,60)," "),r(2),_(" ",P(8,3,e.file_size/1e6,"1.1-1")," MB "),r(3),h(e.file_type)}}function Xt(o,t){if(o&1&&(n(0,"div")(1,"table",11)(2,"thead")(3,"tr"),l(4,"td"),n(5,"th"),a(6,"File"),i(),l(7,"th")(8,"th")(9,"th"),i()(),n(10,"tbody"),V(11,Kt,11,6,"tr",null,y),i()()()),o&2){let e=d(2);r(11),w(e.recordingFiles)}}function Yt(o,t){if(o&1&&(n(0,"div",2)(1,"div",3)(2,"h5",4),a(3,"Create Meeting(s)"),i(),n(4,"button",5)(5,"span",6),a(6,"\xD7"),i()()(),n(7,"div",7),c(8,$t,5,0,"div"),c(9,Qt,7,4,"div"),c(10,Xt,13,0,"div"),i(),n(11,"div",8)(12,"button",9),a(13,"Close"),i()()()),o&2){let e=d();r(8),p(e.slot.typeId!=1&&e.slot.meal==!1?8:-1),r(),p(e.slot.typeId==1||e.slot.meal?9:-1),r(),p(e.recordingFiles?10:-1)}}var Ae=class o{constructor(t,e){this.zoomService=t;this.router=e;this.update=new ce;this.ended=!1}ngOnChanges(t){this.slot&&(this.ended=this.hasEnded(this.slot),this.fetchData())}ngOnInit(){}hasEnded(t){return Date.now()>Me(t.endTime).getTime()}fetchData(){this.ended&&this.slot.zoomMeetingId&&this.zoomService.fetchRecordings(this.slot.zoomMeetingId).subscribe(t=>{this.recordingFiles=t.recording_files})}deleteMeetingsForSlot(t){confirm("Are you sure you want to delete these?")&&this.zoomService.deleteMeetingsForSlot(t.id).subscribe(e=>{this.update.emit("Meetings deleted")},e=>{this.error=b(e)})}createMeetingsForSlot(t){confirm("Are you sure you want to create meetings?")&&this.zoomService.createMeetingsForSlot(t.id).subscribe(e=>{this.update.emit("Meetings created")},e=>{this.error=b(e)})}createMeetingForBreak(t,e){confirm("Are you sure you want to create meeting?")&&this.zoomService.createMeetingForBreak(t.id,e.id).subscribe(s=>{this.update.emit("Meeting created")},s=>{this.error=b(s)})}deleteBreakMeeting(t){confirm("Are you sure you want to delete this?")&&this.zoomService.deleteBreakMeeting(t.id).subscribe(e=>{this.update.emit("Meeting deleted")},e=>{this.error=b(e)})}publishRecording(t){this.zoomService.publishRecordingsForSlot(this.slot.id).subscribe(e=>{T();let s=`/staff/task-status/${e.taskId}`;this.router.navigateByUrl(s)})}updateSlotMeetingSettings(t){confirm("Are you sure you want to update meeting settings?")&&this.zoomService.updateSlotMeetingSettings(t.id).subscribe(e=>{T(),alert("update complete")},e=>{this.error=b(e)})}static{this.\u0275fac=function(e){return new(e||o)(S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-slot"]],inputs:{slot:"slot",admins:"admins"},outputs:{update:"update"},standalone:!1,features:[ne],decls:3,vars:1,consts:[["id","slotModal","tabindex","-1","role","dialog","aria-labelledby","slotModaltitle","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["type","button",1,"btn","btn-primary",3,"click"],[1,"table","table-striped"],[1,"mb-3"],["target","_blank",3,"href"],[1,"btn","btn-danger",3,"click"],[1,"fas","fa-trash"],[1,"fas","fa-edit"],[1,"thead-inverse"],[1,"w80"],[1,"fas","fa-plus"],["colspan","2"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-cloud-upload-alt"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1),c(2,Yt,14,3,"div",2),i()()),e&2&&(r(2),p(s.slot?2:-1))},dependencies:[ee],styles:["h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:16px}i.fa-check[_ngcontent-%COMP%]{color:green}i.fa-tikes[_ngcontent-%COMP%]{color:red}"]})}};function ti(o,t){o&1&&l(0,"div",0)}function ii(o,t){o&1&&(n(0,"div",18),l(1,"i",7),i())}function ni(o,t){o&1&&(n(0,"div",18),l(1,"i",8),i())}function oi(o,t){if(o&1&&(n(0,"td",16),a(1),c(2,ii,2,0,"div",18),c(3,ni,2,0,"div",18),i()),o&2){let e=d().$implicit,s=d().$implicit;ot("colspan",s.roomCount),r(),_(" ",e.label," "),r(),p(e.zoomMeetingId?2:-1),r(),p(e.zoomMeetingId==null?3:-1)}}function ai(o,t){if(o&1&&(n(0,"h5"),a(1),i()),o&2){let e=d().$implicit;r(),_("Size: ",e.sizeMB)}}function ri(o,t){o&1&&l(0,"i",7)}function si(o,t){o&1&&l(0,"i",8)}function li(o,t){if(o&1&&(n(0,"div"),l(1,"i",20),i()),o&2){let e=d().$implicit,s=d(4);r(),u("className",s.videoClass(e))}}function di(o,t){if(o&1){let e=x();n(0,"td",19),C("click",function(){let m=v(e).$implicit,f=d(4);return g(f.selectPresentation(m))}),n(1,"h4"),a(2),i(),n(3,"h5"),a(4),i(),c(5,ai,2,1,"h5"),c(6,ri,1,0,"i",7),c(7,si,1,0,"i",8),c(8,li,2,1,"div"),i()}if(o&2){let e=t.$implicit,s=d(4);r(2),h(e.title),r(2),h(e.speakerNames),r(),p(e.sizeMB?5:-1),r(),p(e.webinarCreated?6:-1),r(),p(e.webinarCreated==!1?7:-1),r(),p(s.hasEnded(e)?8:-1)}}function mi(o,t){if(o&1){let e=x();n(0,"tr",13)(1,"td",14)(2,"a",15),C("click",function(){let m=v(e).$implicit,f=d(3);return g(f.selectSlot(m))}),a(3),i()(),c(4,oi,4,4,"td",16),V(5,di,9,6,"td",17,y),i()}if(o&2){let e=t.$implicit,s=d(3);r(3),h(s.slotTime(e)),r(),p(e.typeId==1||e.meal==!0?4:-1),r(),w(e.presentations)}}function ci(o,t){if(o&1&&(n(0,"div")(1,"div",12)(2,"header")(3,"h3"),a(4),M(5,"date"),i()(),n(6,"table"),V(7,mi,7,2,"tr",13,y),i()()()),o&2){let e=t.$implicit;r(4),h(P(5,4,e.startTime,"EEEE - MMM d, yyyy")),r(2),at(R("schedule rooms-",e.roomCount)),r(),w(e.slots)}}function pi(o,t){if(o&1){let e=x();n(0,"div")(1,"div",6)(2,"b"),a(3,"Time Zone: "),i(),a(4),i(),n(5,"div",6),l(6,"i",7),a(7," Webinar Room Created "),l(8,"br")(9,"i",8),a(10," Not Created "),i(),V(11,ci,9,7,"div",null,y),n(13,"button",9),C("click",function(){v(e);let m=d();return g(m.deleteAllZoomMeetings())}),l(14,"i",10),a(15," Delete All Zoom Meetings"),i(),n(16,"button",11),C("click",function(){v(e);let m=d();return g(m.createZoomMeetings())}),a(17,"Create Zoom Meetings"),i()()}if(o&2){let e=d();r(4),_(" ",e.show.location.zoneName," "),r(7),w(e.schedule)}}var Re=class o{constructor(t,e,s){this.showService=t;this.zoomService=e;this.router=s}ngOnInit(){this.showService.show.subscribe(t=>{this.show=t,this.zoneName=t?.location?.zoneName,this.fetchData(t.id)})}slotTime(t){let e=Q(t.startTime,"h:mm",this.zoneName),s=Q(t.endTime,"h:mm",this.zoneName);return`${e} - ${s}`}time(t,e){return Q(t,e,this.zoneName)}fetchData(t){U(this.showService.showSchedule(t),this.showService.presentations(t),this.zoomService.presentationVideo(t),this.zoomService.getAdmins(t)).subscribe(e=>{let s=e[0],m=e[1];this.presentationVideo=e[2],this.admins=e[3],this.schedule=this.orderPresentationsByOrdinal(s,this.presentationVideo),this.presentations=m})}orderPresentationsByOrdinal(t,e){return t.forEach(s=>{s.slots.forEach(m=>{let f=m.presentations;f==null||f.length==0||(f=he(f,["ordinal"]),st(f,te=>{this.mapRecordingToPresentation(te,e)}),m.presentations=f)})}),t}mapRecordingToPresentation(t,e){if(this.hasEnded(t)==!1)return t;let s=F(e,{presentationId:t.id});if(s.length>0){let m=s[0];t.replayUrl=m.replayUrl,t.sizeMB=m.sizeMB}return t.recordings=s,t}selectPresentation(t){this.presentation=t,this.presentation.recordings=F(this.presentationVideo,{presentationId:t.id}),this.rooms=null,this.message=null}selectSlot(t){this.slot=t}handleUpdate(t){this.message=t,this.fetchData(this.show.id),T()}hasEnded(t){return Date.now()>Date.parse(t.endTime)}videoClass(t){return"fas fa-tv "+(this.presentationVideo.find(s=>s.presentationId==t.id)?"exists":"missing")}deleteAllZoomMeetings(){confirm("Are you sure you want to delete all Zoom meetings?")&&this.zoomService.deleteAllZoomMeetings(this.show.id).subscribe(t=>{let e=`/staff/task-status/${t.taskId}`;this.router.navigateByUrl(e)},t=>{this.error=b(t)})}createZoomMeetings(){confirm("Are you sure you want to create Zoom meetings?")&&this.zoomService.createZoomMeetings(this.show.id).subscribe(t=>{this.message="Task is running",O()},t=>{this.error=b(t)})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-virtual-show-schedule"]],standalone:!1,decls:7,vars:9,consts:[[1,"spinner"],[1,"row"],[1,"col-6"],[3,"error","message"],[3,"update","show","presentation","zoneName"],[3,"update","slot","admins"],[1,"mb-2"],[1,"fas","fa-check"],[1,"fas","fa-times"],[1,"btn","btn-secondary",3,"click"],[1,"fas","fa-tras
1h"],[1,"btn","btn-primary",3,"click"],[1,"day"],[1,"slot"],[1,"time"],["data-toggle","modal","data-target","#slotModal",3,"click"],[1,"label"],["data-toggle","modal","data-target","#presentationDetail",1,"presentation"],[1,"meeting"],["data-toggle","modal","data-target","#presentationDetail",1,"presentation",3,"click"],[3,"className"]],template:function(e,s){e&1&&(c(0,ti,1,0,"div",0),n(1,"div",1)(2,"div",2),l(3,"app-info-message",3),i()(),c(4,pi,18,1,"div"),n(5,"app-vs-presentation-detail",4),C("update",function(f){return s.handleUpdate(f)}),i(),n(6,"app-vs-slot",5),C("update",function(f){return s.handleUpdate(f)}),i()),e&2&&(p(s.schedule==null?0:-1),r(3),u("error",s.error)("message",s.message),r(),p(s.schedule?4:-1),r(),u("show",s.show)("presentation",s.presentation)("zoneName",s.zoneName),r(),u("slot",s.slot)("admins",s.admins))},dependencies:[z,Ze,Ae,j],styles:["i.fa-check[_ngcontent-%COMP%]{color:green}i.fa-times[_ngcontent-%COMP%]{color:red}div.day[_ngcontent-%COMP%]{margin-bottom:40px}div.day[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]{background-color:#f1f1f1;margin-bottom:10px;padding:5px 15px}div.day[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:18px}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:5px;border:1px solid #999}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.time[_ngcontent-%COMP%]{text-wrap:nowrap;min-width:10px;font-size:12px}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.time[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00f}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.time[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{cursor:pointer}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.label[_ngcontent-%COMP%]{background-color:#f1f1f1}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]{font-size:14px;max-width:120px}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:400}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:12px}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]   i.exists[_ngcontent-%COMP%]{color:green}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]   i.missing[_ngcontent-%COMP%]{color:red}div.day[_ngcontent-%COMP%]   table.schedule[_ngcontent-%COMP%]   td.presentation[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:khaki}"]})}};function _i(o,t){o&1&&l(0,"div",8)}function ui(o,t){if(o&1){let e=x();n(0,"tr")(1,"td"),a(2),i(),n(3,"td")(4,"button",13),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.delete(m))}),a(5,"Delete"),i()(),n(6,"td"),a(7),i(),n(8,"td"),a(9),i(),n(10,"td"),a(11),M(12,"date"),i(),n(13,"td"),a(14),l(15,"br"),a(16),i(),l(17,"td"),i()}if(o&2){let e=t.$implicit,s=t.$index;r(2),_("",s+1,"."),r(5),h(e.topic),r(2),h(e.id),r(2),h(P(12,7,e.start_time,"M/d/yyyy h:mm a")),r(3),q(" ",e.user.first_name," ",e.user.last_name," "),r(2),_(" ",e.user.email," ")}}function fi(o,t){o&1&&(n(0,"tr")(1,"td",14)(2,"em"),a(3,"No meetings"),i()()())}function Ci(o,t){if(o&1){let e=x();n(0,"div")(1,"table",9)(2,"thead")(3,"tr"),l(4,"th",10)(5,"th"),n(6,"th"),a(7,"Name"),i(),n(8,"th"),a(9,"ID"),i(),n(10,"th"),a(11,"Start Time"),i(),n(12,"th"),a(13,"Zoom User"),i()()(),n(14,"tbody"),V(15,ui,18,10,"tr",null,y),c(17,fi,4,0,"tr"),i()(),n(18,"button",11),C("click",function(){v(e);let m=d();return g(m.deleteOldMeetings())}),l(19,"i",12),a(20," Delete Old Meetings"),i()()}if(o&2){let e=d();r(15),w(e.meetings),r(2),p(e.meetings.length==0?17:-1)}}var Ue=class o{constructor(t){this.zoomService=t;this.pastOnly=!1;this.pastOnlyCtrl=new L(!1);this.findText=new L}ngOnInit(){this.fetchData(),this.findText.valueChanges.pipe(ie(500)).subscribe(t=>{this.filterMeetings(t)}),this.pastOnlyCtrl.valueChanges.subscribe(t=>{this.pastOnly=t,this.filterPastMeetings()})}filterPastMeetings(){if(this.pastOnly==!1){this.meetings=this.allMeetings;return}let t=new Date().getTime();this.meetings=F(this.allMeetings,e=>e.startTime.getTime()<t)}filterMeetings(t){if(t=t?.trim()?.toLowerCase(),t==null||t.length<3){this.meetings=this.allMeetings;return}this.meetings=this.allMeetings.filter(e=>{let s=`${e?.user?.first_name} ${e?.user?.last_name}`.toLowerCase();return N(e?.topic?.toLowerCase(),t)||N(s,t)})}
1fetchData(){this.zoomService.fetchMeetings().subscribe(t=>{let e=he(re(t,s=>(s.startTime=new Date(s.start_time),s)),["startTime"],["asc"]);this.meetings=e,this.allMeetings=e},t=>{this.error=b(t)})}delete(t){confirm("are you sure you want to delete this?")&&this.zoomService.deleteMeetingByZoomId(t.id).subscribe(e=>{this.message="Delete complete",this.fetchData()},e=>{this.error=b(e)})}deleteOldMeetings(){confirm("Are you sure you want to delete this?")&&(this.meetings=null,this.zoomService.deleteOldMeetings().subscribe(t=>{this.message="Delete complete",this.fetchData()},t=>{this.error=b(t)}))}static{this.\u0275fac=function(e){return new(e||o)(S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-meetings"]],standalone:!1,decls:15,vars:6,consts:[[1,"row"],[1,"col-6"],[1,"form-group"],["type","text","placeholder","Search",1,"form-control",3,"formControl"],[1,"form-check"],[1,"form-check-label"],["type","checkbox","name","pastOnly","value","true",1,"form-check-input",3,"formControl"],[3,"error","message"],[1,"spinner"],[1,"table","table-striped"],[1,"w20"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],[1,"btn","btn-secondary",3,"click"],["colspan","4"]],template:function(e,s){e&1&&(n(0,"h1"),a(1,"Zoom Meetings"),i(),n(2,"div",0)(3,"div",1)(4,"div",2),l(5,"input",3),i(),n(6,"div",4)(7,"label",5),l(8,"input",6),a(9," Past Meetings Only "),i()(),l(10,"app-info-message",7),i(),n(11,"div",1),l(12,"app-vs-links"),i()(),c(13,_i,1,0,"div",8),c(14,Ci,21,1,"div")),e&2&&(r(5),u("formControl",s.findText),r(3),u("formControl",s.pastOnlyCtrl),r(2),u("error",s.error)("message",s.message),r(3),p(s.meetings==null?13:-1),r(),p(s.meetings?14:-1))},dependencies:[z,$,_e,B,W,K,j],encapsulation:2})}};function hi(o,t){if(o&1&&(n(0,"div")(1,"div")(2,"b"),a(3,"Auto Recording: "),i(),a(4),i(),n(5,"div")(6,"b"),a(7,"Audio Transcript: "),i(),a(8),i()()),o&2){let e=d(2);r(4),_(" ",e.autoRecording," "),r(4),_(" ",e.audioTranscript," ")}}function vi(o,t){if(o&1&&(n(0,"div",2)(1,"div",4)(2,"h5",5),a(3,"Zoom Detail"),i(),n(4,"button",6)(5,"span",7),a(6,"\xD7"),i()()(),n(7,"div",8),l(8,"app-info-message",9),n(9,"div",10)(10,"textarea",11),a(11),M(12,"json"),i()(),c(13,hi,9,2,"div"),i(),n(14,"div",12)(15,"button",13),a(16,"Close"),i(),n(17,"button",14),a(18,"Save"),i()()()),o&2){let e=d();r(8),u("error",e.error)("message",e.message),r(3),h(Y(12,4,e.zoomHost)),r(2),p(e.autoRecording!=null&&e.audioTranscript!=null?13:-1)}}function gi(o,t){if(o&1&&(n(0,"div")(1,"textarea",23),a(2),M(3,"json"),i()()),o&2){let e=d(2);r(2),h(Y(3,1,e.zoomHostSettings))}}function Si(o,t){if(o&1){let e=x();n(0,"div",2)(1,"div",4)(2,"h5",5),a(3,"Settings"),i(),n(4,"button",6)(5,"span",7),a(6,"\xD7"),i()()(),n(7,"div",15),l(8,"app-info-message",9),n(9,"form",16)(10,"div",17)(11,"label",18),l(12,"input",19),a(13," Auto Record "),i()(),n(14,"div",17)(15,"label",18),l(16,"input",20),a(17," Audio Transcript "),i()(),n(18,"div",17)(19,"label",18),l(20,"input",21),a(21," Captions "),i()()(),c(22,gi,4,3,"div"),i(),n(23,"div",12)(24,"button",13),a(25,"Close"),i(),n(26,"button",22),C("click",function(){v(e);let m=d();return g(m.updateRecordingSettings())}),a(27,"Save"),i()()()}if(o&2){let e=d();r(8),u("error",e.error)("message",e.message),r(),u("formGroup",e.settingsForm),r(13),p(e.zoomHostSettings?22:-1)}}var ge=class o{constructor(t,e){this.zoomService=t;this.settingsForm=e.group({autoRecording:[],audioTranscript:[],captions:[]})}ngOnChanges(t){this.zoomHost&&this.showDetail(this.zoomHost)}showDetail(t){this.zoomHostSettings=null,this.zoomService.fetchUserSettings(t.id).subscribe(e=>{this.zoomHost.settings=e,this.zoomHostSettings=e,this.autoRecording=e.recording.auto_recording=="cloud",this.audioTranscript=e.recording.recording_audio_transcript==!0;let s=e.in_meeting.closed_captioning.auto_transcribing==!0;this.settingsForm.patchValue({autoRecording:this.autoRecording,audioTranscript:this.audioTranscript,captions:s})})}updateRecordingSettings(){if(!confirm("Are you sure you want to update recording settings?"))return;let t=this.settingsForm.value;this.zoomService.updateRecordingSettings(this.zoomHost.id,t).subscribe(e=>{this.message="Update complete",O(),T()},e=>{this.error=b(e)})}static{this.\u0275fac=function(e){return new(e||o)(S(I),S(ue))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-user-detail"]],inputs:{zoomHost:"zoomHost"},standalone:!1,features:[ne],decls:6,vars:2,consts:[["id","zoomUser","tabindex","-1","role","dialog","aria-labelledby","zoomUser","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],["id","editSettings","tabindex","-1","role","dialog","aria-labelledby","editSettings","aria-hidden","true",1,"modal","fade"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body","zoom-host"],[3,"error","message"],[1,"form-group"],["name","detail",1,"form-control"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["type","button",1,"btn","btn-primary"],[1,"modal-body"],[3,"formGroup"],[1,"form-check"],[1,"form-check-label"],["type","checkbox","formControlName","autoRecording","id","autoRecord","value","true",1,"form-check-input"],["type","checkbox","formControlName","audioTranscript","id","audioTranscript","value","true",1,"form-check-input"],["type","checkbox","formControlName","captions","id","captions","value","true",1,"form-check-input"],["type","button",1,"btn","btn-primary",3,"click"],["name","zoomHostSettings","cols","80","rows","10"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1),c(2,vi,19,6,"div",2),i()(),n(3,"div",3)(4,"div",1),c(5,Si,28,4,"div",2),i()()),e&2&&(r(2),p(s.zoomHost?2:-1),r(3),p(s.zoomHost?5:-1))},dependencies:[z,we,_e,B,Ve,Ee,ke,ae],styles:["div.zoom-host[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;min-height:400px}"]})}};function xi(o,t){if(o&1&&(n(0,"div")(1,"b"),a(2,"Users: "),i(),a(3),i()),o&2){let e=d();r(3),_(" ",e.users.length," ")}}function bi(o,t){o&1&&l(0,"div",3)}function yi(o,t){if(o&1){let e=x();n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),i(),n(5,"td")(6,"button",23),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.showDetail(m))}),l(7,"i",24),i(),n(8,"button",25),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.showDetail(m))}),l(9,"i",26),i(),n(10,"button",27),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.deleteZoomHost(m))}),l(11,"i",28),i()(),n(12,"td"),a(13),l(14,"br"),a(15),i(),n(16,"td"),a(17),M(18,"date"),i(),n(19,"td"),a(20),M(21,"date"),i()()}if(o&2){let e=t.$implicit,s=t.$index;r(2),_("",s+1,"."),r(2),h(e.id),r(9),q(" ",e.first_name," ",e.last_name," "),r(2),_(" ",e.email," "),r(2),_(" ",P(18,7,e.created_at,"M/d/yyyy h:mm a")," "),r(3),h(P(21,10,e.last_login_time,"M/d/yyyy h:mm a"))}}function Vi(o,t){o&1&&(n(0,"tr")(1,"td",29)(2,"em"),a(3,"No records"),i()()())}function wi(o,t){if(o&1&&(n(0,"div")(1,"div",15)(2,"div",16)(3,"div",17),l(4,"input",18),i()(),n(5,"div",19)(6,"button",20),a(7,"+ Invite"),i()()(),n(8,"table",21)(9,"thead")(10,"tr"),l(11,"th",22),n(12,"th"),a(13,"ID"),i(),l(14,"th"),n(15,"th"),a(16,"Name"),i(),n(17,"th"),a(18,"Created"),i(),n(19,"th"),a(20,"Last Login"),i()()(),n(21,"tbody"),V(22,yi,22,13,"tr",null,y),c(24,Vi,4,0,"tr"),i()()()),o&2){let e=d();r(4),u("formControl",e.findText),r(18),w(e.users),r(2),p(e.users.length==0?24:-1)}}function ki(o,t){if(o&1){let e=x();n(0,"div")(1,"app-speaker-find",30),C("speaker",function(m){v(e);let f=d();return g(f.foundSpeaker(m))}),i()()}}function Ei(o,t){if(o&1){let e=x();n(0,"div")(1,"table",31)(2,"tbody")(3,"tr")(4,"th",32),a(5,"Name"),i(),n(6,"td"),a(7),i()(),n(8,"tr")(9,"th"),a(10,"Zoom Email: "),i(),n(11,"td"),a(12),i()()()(),n(13,"button",33),C("click",function(){v(e);let m=d();return g(m.sendZoomInvite(m.speaker))}),l(14,"i",34),a(15," Send Zoom Invite"),i()()}if(o&2){let e=d();r(7),h(e.speaker.name),r(5),h(e.speaker.zoomEmail)}}var Ne=class o{constructor(t,e){this.zoomService=t;this.findText=new L;this.settingsForm=e.group({autoRecording:[],captions:[]})}ngOnInit(){fe(this.findText).subscribe(t=>{this.filter(t.toLowerCase().trim())}),this.fetchData()}fetchData(){this.zoomService.fetchUsers().subscribe(t=>{this.allUsers=t,this.users=t},t=>{this.error=b(t)})}filter(t){if(t.length<3){this.users=this.allUsers;return}this.users=this.allUsers.filter(e=>e.first_name.toLowerCase().indexOf(t)!=-1||e.last_name.toLowerCase().indexOf(t)!=-1||e.email.toLowerCase().indexOf(t)!=-1||e.id.toLowerCase().indexOf(t)!=-1)}showDetail(t){this.zoomHost=t,this.zoomHostSettings=null,this.zoomService.fetchUserSettings(t.id).subscribe(e=>{this.zoomHost.settings=e,this.zoomHostSettings=e;let s=e.recording.auto_recording=="cloud",m=e.in_meeting.closed_captioning.auto_transcribing==!0;this.settingsForm.patchValue({autoRecording:s,captions:m})})}deleteZoomHost(t){confirm("Are you sure you want to remove zoom host?")&&this.zoomService.deleteHost(t.id).subscribe(e=>{O(),this.message="Delete complete",this.fetchData()},e=>{this.error=b(e),O()})}foundSpeaker(t){this.speaker=t}sendZoomInvite(t){confirm("Are you sure you want to send this invite?")&&(T(),this.zoomService.inviteSpeaker(t.id).subscribe(e=>{this.message="Invite sent",this.fetchData()},e=>{this.error=b(e)}))}updateRecordingSettings(){if(!confirm("Are you sure you want to update recording settings?"))return;let t=this.settingsForm.value;this.zoomService.updateRecordingSettings(this.zoomHost.id,t).subscribe(e=>{this.message="Update complete",O(),T()},e=>{this.error=b(e)})}static{this.\u0275fac=function(e){return new(e||o)(S(I),S(ue))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-users"]],standalone:!1,decls:26,vars:8,consts:[[1,"row"],[1,"col-6"],[3,"error","message"],[1,"spinner"],["id","invite","tabindex","-1","role","dialog","aria-labelledby","inviteUser","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[3,"zoomHost"],[1,"clearfix","mb-3"],[1,"float-left"],[1,"form-group"],["type","text","name","findText","placeholder","Find",1,"form-control",3,"formControl"],[1,"float-right"],["data-toggle","modal","data-target","#invite",1,"btn","btn-primary"],[1,"table","table-striped"],[1,"w20"],["data-toggle","modal","data-target","#editSettings",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-edit"],["data-toggle","modal","data-target","#zoomUser",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-search"],["type","button",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],["colspan","6"],[3,"speaker"],[1,"table","table-striped","w400"],[1,"w150"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-envelope-square"]],template:function(e,s){e&1&&(n(0,"h1"),a(1,"Zoom Users"),i(),n(2,"div",0)(3,"div",1),c(4,xi,4,1,"div"),l(5,"app-info-message",2),i(),n(6,"div",1),l(7,"app-vs-links"),i()(),c(8,bi,1,0,"div",3),c(9,wi,25,2,"div"),n(10,"div",4)(11,"div",5)(12,"div",6)(13,"div",7)(14,"h5",8),a(15,"Send Zoom Invite"),i(),n(16,"button",9)(17,"span",10),a(18,"\xD7"),i()()(),n(19,"div",11),c(20,ki,2,0,"div"),c(21,Ei,16,2,"div"),i(),n(22,"div",12)(23,"button",13),a(24,"Close"),i()()()()(),l(25,"app-vs-user-detail",14)),e&2&&(r(4),p(s.users?4:-1),r(),u("error",s.error)("message",s.message),r(3),p(s.users==null?8:-1),r(),p(s.users?9:-1),r(11),p(s.speaker==null?20:-1),r(),p(s.speaker?21:-1),r(4),u("zoomHost",s.zoomHost))},dependencies:[z,$,B,W,ve,K,ge,j],styles:["div.zoom-host[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;min-height:400px}"]})}};function Ii(o,t){o&1&&l(0,"div",0)}function Mi(o,t){o&1&&l(0,"i",18)}function Ti(o,t){o&1&&l(0,"i",19)}function Pi(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"div",15),l(3,"img",16),i()(),n(4,"td")(5,"h4")(6,"a",17),a(7),i()(),n(8,"h5"),a(9),i()(),n(10,"td"),c(11,Mi,1,0,"i",18),c(12,Ti,1,0,"i",19),i(),n(13,"td"),a(14),i(),n(15,"td"),a(16),i(),n(17,"td"),l(18,"app-boolean-status",20),i(),n(19,"td")(20,"button",21),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.selectShowSpeaker(m))}),l(21,"i",22),i(),n(22,"button",23),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.showHostDetail(m.speaker))}),l(23,"i",24),i(),n(24,"a",25),l(25,"i",26),i()(),l(26,"td"),i()}if(o&2){let e=t.$implicit,s=d(2);r(3),u("src",e.speaker.smallImageSqURL,k)("alt",e.speaker.name),r(3),u("href",R("/app/speaker/",e.speakerId,"/bio/view"),k),r(),h(e.speaker.name),r(2),h(e.speaker.zoomEmail),r(2),p(e.speaker.zoomHostId?11:-1),r(),p(e.speaker.zoomHostId==null?12:-1),r(2),_(" ",e.speaker.zoomAutoRecording," "),r(2),_(" ",e.speaker.zoomHostId," "),r(2),u("status",e.speaker.zoomConfirmed),r(4),u("disabled",!(!(e==null||e.speaker==null)&&e.speaker.zoomHostId)),r(2),u("href",pe("/app/showadmin/virtual/",s.show.id,"/speakers/",e.speakerId,"/zoom"),k)}}function zi(o,t){o&1&&(n(0,"tr")(1,"td",27)(2,"em"),a(3,"No records.."),i()()())}function Di(o,t){if(o&1){let e=x();n(0,"div")(1,"div",6),l(2,"input",7),i(),n(3,"div",8)(4,"b"),a(5,"Not Linked to Zoom: "),i(),a(6),i(),n(7,"table",9)(8,"thead")(9,"tr"),l(10,"th",10),n(11,"th",11),a(12,"Name"),i(),n(13,"th",10),a(14,"Zoom"),i(),n(15,"th",10),a(16,"Recording"),i(),n(17,"th",10),a(18,"ID"),i(),n(19,"th",10),a(20,"Confirmed"),i(),l(21,"th",11)(22,"th"),i()(),n(23,"tbody"),V(24,Pi,27,15,"tr",null,y),c(26,zi,4,0,"tr"),i()(),n(27,"div",12)(28,"div",13)(29,"button",14),C("click",function(){v(e);let m=d();return g(m.checkZoomConfirmationStatus())}),a(30,"Check Zoom Confirmation Status"),i(),n(31,"button",14),C("click",function(){v(e);let m=d();return g(m.checkRecordingSettings())}),a(32,"Check Recording Settings"),i(),n(33,"button",14),C("click",function(){v(e);let m=d();return g(m.updateRecordingSettings())}),a(34,"Update Recording Settings"),i()()()()}if(o&2){let e=d();r(2),u("formControl",e.findText),r(4),_(" ",e.unLinkedCount," "),r(18),w(e.showSpeakers),r(2),p(e.showSpeakers.length==0?26:-1)}}function Fi(o,t){if(o&1){let e=x();n(0,"button",48),C("click",function(){v(e);let m=d(3);return g(m.addHost())}),l(1,"i",49),a(2," Create Zoom Host"),i()}}function Oi(o,t){if(o&1){let e=x();n(0,"button",48),C("click",function(){v(e);let m=d(3);return g(m.selectUserClicked())}),l(1,"i",49),a(2," Select Zoom Host"),i()}}function Zi(o,t){if(o&1){let e=x();n(0,"button",50),C("click",function(){v(e);let m=d(3);return g(m.removeHost())}),l(1,"i",51),a(2," Remove Zoom Host"),i()}}function Ai(o,t){if(o&1){let e=x();n(0,"button",14),C("click",function(){v(e);let m=d(3);return g(m.enableRecording())}),l(1,"i",51),a(2," Enable Recording"),i()}}function Ri(o,t){if(o&1&&(n(0,"div",39),c(1,Fi,3,0,"button",45),c(2,Oi,3,0,"button",45),c(3,Zi,3,0,"button",46),c(4,Ai,3,0,"button",47),i()),o&2){let e=d(2);r(),p(e.showSpeaker.speaker.zoomHostId==null?1:-1),r(),p(e.showSpeaker.speaker.zoomHostId==null?2:-1),r(),p(e.showSpeaker.speaker.zoomHostId?3:-1),r(),p(e.showSpeaker.speaker.zoomHostId?4:-1)}}function Ui(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"button",48),C("click",function(){let m=v(e).$implicit,f=d(3);return g(f.assignSpeakerToZoomAccount(m))}
1),l(3,"i",54),i()(),n(4,"td"),a(5),l(6,"br"),a(7),i()()}if(o&2){let e=t.$implicit;r(5),q(" ",e.first_name," ",e.last_name," "),r(2),_(" ",e.email," ")}}function Ni(o,t){o&1&&(n(0,"tr"),l(1,"td")(2,"td"),i())}function Hi(o,t){if(o&1&&(n(0,"div")(1,"table",52)(2,"thead")(3,"tr"),l(4,"th",53),n(5,"th"),a(6,"Zoom Account"),i()()(),n(7,"tbody"),V(8,Ui,8,3,"tr",null,y),c(10,Ni,3,0,"tr"),i()()()),o&2){let e=d(2);r(8),w(e.userList),r(2),p(e.userList.length==0?10:-1)}}function ji(o,t){if(o&1){let e=x();n(0,"div",4)(1,"div",28)(2,"h5",29),a(3),i(),n(4,"button",30)(5,"span",31),a(6,"\xD7"),i()()(),n(7,"div",32)(8,"table",33)(9,"tbody")(10,"tr")(11,"th"),a(12,"Speaker: "),i(),n(13,"td"),a(14),i()(),n(15,"tr")(16,"th"),a(17,"NFJS Email: "),i(),n(18,"td"),a(19),i()(),n(20,"tr")(21,"th"),a(22,"Zoom Email: "),i(),n(23,"td"),a(24),i()(),n(25,"tr")(26,"th"),a(27,"Zoom ID: "),i(),n(28,"td"),a(29),i()(),n(30,"tr")(31,"th"),a(32,"Auto Record: "),i(),n(33,"td"),a(34),i()(),n(35,"tr"),l(36,"th"),n(37,"td")(38,"form",34),C("ngSubmit",function(){v(e);let m=d();return g(m.updateSpeakerZoom())}),n(39,"div",35)(40,"label",36),l(41,"input",37),a(42," Zoom Confirmed "),i(),n(43,"button",38),a(44,"Update"),i()()()()()()(),c(45,Ri,5,4,"div",39),n(46,"div",39)(47,"a",40),l(48,"i",41),a(49," Which Zoom Email?"),i(),n(50,"a",42),C("click",function(m){v(e);let f=d();return g(f.zoomInviteSentClick(m))}),l(51,"i",41),a(52," Zoom Invite Sent"),i()(),n(53,"div",39)(54,"a",40),a(55,"Zoom Links Email"),i()(),c(56,Hi,11,1,"div"),i(),n(57,"div",43)(58,"button",44),a(59,"Close"),i()()()}if(o&2){let e=d();r(3),h(e.showSpeaker.speaker.name),r(11),h(e.showSpeaker.speaker.name),r(5),h(e.showSpeaker.speaker.email),r(5),h(e.showSpeaker.speaker.zoomEmail),r(5),h(e.showSpeaker.speaker.zoomHostId),r(5),h(e.showSpeaker.speaker.zoomAutoRecording),r(4),u("formGroup",e.zoomForm),r(7),p(e.userList==null?45:-1),r(2),u("href",e.userMailService.link_SpeakerZoomWhichEmail(e.showSpeaker.speaker,e.show),k),r(7),u("href",e.userMailService.link_SpeakerZoomInstructionEmail(e.showSpeaker.speaker,e.show),k),r(2),p(e.userList?56:-1)}}var bt="zoom-invite-sent",He=class o{constructor(t,e,s,m,f,te,me){this.zoomService=t;this.showService=e;this.speakerService=s;this.templateService=m;this.userMailService=f;this.userAdminService=te;this.unLinkedCount=0;this.findText=new L;this.zoomForm=me.group({zoomConfirmed:[!1]})}ngOnInit(){this.findText.valueChanges.pipe(ie(500)).subscribe(t=>{this.filterSpeakers(t?.trim()?.toLowerCase())}),this.fetchData()}fetchData(){this.showService.show.subscribe(t=>{U(this.showService.showSpeakers(t.id),this.templateService.getBySlug(bt)).subscribe(e=>{let s=e[0];this.zoomInviteSentTemplate=e[1],console.log(this.zoomInviteSentTemplate),this.show=t,this.allShowSpeakers=s,this.showSpeakers=s,this.unLinkedCount=F(this.allShowSpeakers,m=>m.speaker.zoomHostId==null)?.length})})}filterSpeakers(t){if(t==null||t==""){this.showSpeaker=this.allShowSpeakers;return}this.showSpeakers=F(this.allShowSpeakers,e=>N(e.speaker.name.toLowerCase(),t))}selectShowSpeaker(t){this.userList=null,U(this.userAdminService.get(t.speaker.id),this.speakerService.getPresentations(t.speaker.id,this.show.id),this.userAdminService.linkIn(t.speaker.id)).subscribe(e=>{let s=e[0];t.speaker.presentations=e[1],t.speaker.user=s,t.speaker.linkIn=e[2].link,this.showSpeaker=t,this.zoomForm.patchValue({zoomConfirmed:t.speaker.zoomConfirmed})})}selectUserClicked(){this.zoomService.fetchUsers().subscribe(t=>{this.userList=t},t=>{this.error=b(t)})}assignSpeakerToZoomAccount(t){confirm("Are you sure you want to assign the speaker to this account?")&&this.zoomService.assignSpeakerToZoomAccount(this.showSpeaker.speakerId,t).subscribe(e=>{this.fetchData(),T(),this.userList=null},e=>{this.error=b(e)})}addHost(){confirm("Are you sure you want to add host?")&&this.zoomService.addHost(this.showSpeaker.id).subscribe(t=>{T(),this.message="Added host",this.fetchData()},t=>{T(),this.error=b(t)})}enableRecording(){confirm("Are you sure you want to enable cloud recording?")&&this.zoomService.enableRecording(this.showSpeaker.speakerId).subscribe(t=>{T(),this.message="Update complete",this.fetchData()},t=>{T(),this.error=b(t)})}removeHost(){confirm("Are you sure you want to remove host?")&&this.zoomService.removeHost(this.showSpeaker.speakerId).subscribe(t=>{T(),this.message="Removed host",this.fetchData()},t=>{this.error=b(t)})}updateRecordingSettings(){confirm("Are you sure you want to update recording settings?")&&this.zoomService.updateRecordingSettingsAllUsers().subscribe(t=>{this.message="Update settings",this.fetchData()},t=>{this.error=b(t)})}checkRecordingSettings(){confirm("Are you sure you want to check recording settings?")&&this.zoomService.checkRecordingSettings().subscribe(t=>{this.message="Check settings",this.fetchData()},t=>{this.error=b(t)})}
1updateSpeakerZoom(){if(!confirm("Are you sure you want to update?"))return;let t=this.zoomForm.value;this.zoomService.updateSpeakerZoom(this.showSpeaker.speakerId,t).subscribe(e=>{this.message="Updated speaker zoom",T(),this.fetchData()},e=>{this.error=b(e)})}checkZoomConfirmationStatus(){confirm("Are you sure you want to check Zoom confirmation status?")&&this.zoomService.checkZoomConfirmationStatus().subscribe(t=>{this.message="Check status complete"},t=>{this.error=b(t)})}showHostDetail(t){this.zoomService.fetchUser(t.zoomHostId).subscribe(e=>{this.zoomHost=e})}zoomInviteSentClick(t){console.log(t),t.preventDefault();let e={show:this.show,speaker:this.showSpeaker.speaker};this.templateService.merge(bt,e).subscribe(s=>{let m=s.subject,f=s.message,te=this.userMailService.link_mail(this.showSpeaker.speaker.email,m,f);window.open(te,"_blank")})}static{this.\u0275fac=function(e){return new(e||o)(S(I),S(D),S(se),S(gt),S(ht),S(vt),S(ue))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-hosts"]],standalone:!1,decls:9,vars:6,consts:[[1,"spinner"],[3,"error","message"],["id","speakerModal","tabindex","-1","role","dialog","aria-labelledby","speakerModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[3,"zoomHost"],[1,"form-group","w200","mb-3"],["type","text","name","findText","placeholder","Find..",1,"form-control",3,"formControl"],[1,"mb-4"],[1,"table","table-striped"],[1,"w80"],[1,"w200"],[1,"clearfix"],[1,"float-right"],[1,"btn","btn-secondary",3,"click"],[1,"speaker-circle-sm"],[3,"src","alt"],[3,"href"],[1,"fas","fa-check"],[1,"fas","fa-times"],[3,"status"],["data-toggle","modal","data-target","#speakerModal",1,"btn","btn-primary",3,"click"],[1,"fas","fa-edit"],["data-toggle","modal","data-target","#zoomUser",1,"btn","btn-secondary",3,"click","disabled"],[1,"fas","fa-search-plus"],[1,"btn","btn-primary",3,"href"],[1,"fas","fa-calendar-alt"],["colspan","8"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"table","table-striped","w500"],[3,"ngSubmit","formGroup"],[1,"form-check"],[1,"form-check-label"],["type","checkbox","formControlName","zoomConfirmed","id","zoomConfirmed","value","true",1,"form-check-input"],["type","submit",1,"btn","btn-primary"],[1,"mb-3"],["target","_blank",1,"btn","btn-primary",3,"href"],[1,"fas","fa-envelope"],["target","_blank",1,"btn","btn-primary",3,"click"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"btn","btn-primary"],[1,"btn","btn-danger"],[1,"btn","btn-secondary"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-plus"],[1,"btn","btn-danger",3,"click"],[1,"fas","fa-trash"],[1,"table","table-striped","w300"],[1,"w60"],[1,"fas","fa-hand-pointer"]],template:function(e,s){e&1&&(n(0,"h2"),a(1,"Speakers"),i(),c(2,Ii,1,0,"div",0),l(3,"app-info-message",1),c(4,Di,35,3,"div"),n(5,"div",2)(6,"div",3),c(7,ji,60,11,"div",4),i()(),l(8,"app-vs-user-detail",5)),e&2&&(r(2),p(s.showSpeakers==null?2:-1),r(),u("error",s.error)("message",s.message),r(),p(s.showSpeakers?4:-1),r(3),p(s.showSpeaker?7:-1),r(),u("zoomHost",s.zoomHost))},dependencies:[Te,z,we,$,_e,B,Ve,W,Ee,ke,ge],styles:["i.fa-check[_ngcontent-%COMP%]{color:green;font-size:20px}i.fa-times[_ngcontent-%COMP%]{color:red;font-size:20px}a.btn[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{margin-right:10px}"]})}};var Li=()=>["../","speaker-video"],$i=()=>["../","recordings"],Wi=()=>["../","missing_video"],yt=()=>["mp4"];function Ji(o,t){o&1&&l(0,"div",2)}function Gi(o,t){o&1&&(n(0,"button",23),l(1,"i",31),i())}function qi(o,t){if(o&1&&(n(0,"div",32),l(1,"img",42),i()),o&2){let e=d().$implicit;r(),u("src",e.smallImageSqURL,k)}}function Qi(o,t){o&1&&(n(0,"span"),a(1,"*"),i())}function Ki(o,t){if(o&1&&(n(0,"span"),a(1),i()),o&2){let e=d().$implicit;r(),_("- Part ",e.ordinal+1)}}function Xi(o,t){o&1&&l(0,"i",38)}function Yi(o,t){o&1&&l(0,"i",39)}function en(o,t){if(o&1){let e=x();n(0,"tr")(1,"td"),c(2,qi,2,1,"div",32),i(),n(3,"td"),c(4,Qi,2,0,"span"),a(5),c(6,Ki,2,1,"span"),l(7,"br"),a(8),l(9,"br"),a(10),l(11,"br"),n(12,"a",25),a(13),i()(),n(14,"td")(15,"a",33),l(16,"i",34),i()(),n(17,"td")(18,"a",35),l(19,"i",36),i()(),n(20,"td")(21,"button",37),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.publish(m))}),c(22,Xi,1,0,"i",38),c(23,Yi,1,0,"i",39),i()(),n(24,"td")(25,"button",40),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.uploadClicked(m))}),l(26,"i",22),i()(),n(27,"td"),a(28),i(),n(29,"td"),a(30),M(31,"date"),i(),n(32,"td"),a(33),i(),n(34,"td")(35,"button",37),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.deleteVideo(m))}),l(36,"i",41),i()()()}if(o&2){let e=t.$implicit,s=d(2);r(2),p(e.presentationId?2:-1),r(2),p(e.multipleFiles?4:-1),r(),_(" ",e.title," "),r(),p(e.multipleFiles?6:-1),r(2),_(" ",e.speakerNames," "),r(2),q(" ID: ",e.id," Meeting ID: ",e.zoomMeetingId," "),r(2),u("href",R("/n/data/member/virtual-show/presentation_video/",e.id,"/download"),k),r(),h(e.cdnPath.substring(0,60)),r(2),u("href",R("/n/data/member/virtual-show/presentation_video/",e.id,"/download"),k),r(3),u("href",pe("/app/member/",s.show.id,"/replay/",e.id),k),r(4),p(e.publish?22:-1),r(),p(e.publish==!1?23:-1),r(5),_(" ",e.replayCount," "),r(2),_(" ",P(31,20,e.loadDate,"M/d/yyyy")," "),r(3),_(" ",e.sizeMB," MB ")}}function tn(o,t){o&1&&(n(0,"tr")(1,"td",43)(2,"em"),a(3,"No recordings"),i()()())}function nn(o,t){o&1&&l(0,"div",2)}function on(o,t){if(o&1){let e=x();n(0,"button",44),C("click",function(){v(e);let m=d(2);return g(m.updateReplayStats())}),a(1,"Update Replay Stats"),i()}}function an(o,t){if(o&1){let e=x();n(0,"div")(1,"div",16)(2,"div",17)(3,"div",18),l(4,"input",19),i()(),n(5,"div",20)(6,"button",21),C("click",function(){v(e);let m=d();return g(m.uploadOtherClicked())}),l(7,"i",22),i(),c(8,Gi,2,0,"button",23),i(),n(9,"div",17)(10,"ul",24)(11,"li")(12,"a",25),a(13,"Browse"),i()(),n(14,"li")(15,"a",26),a(16,"By Speaker"),i()(),n(17,"li")(18,"a",26),a(19,"Zoom Recordings"),i()(),n(20,"li")(21,"a",26),a(22,"Video Missing"),i()()()()(),n(23,"table",27)(24,"thead")(25,"tr"),l(26,"th",28),n(27,"th"),a(28,"Title"),i(),n(29,"th"),a(30,"Zoom DL"),i(),n(31,"th"),a(32,"View"),i(),n(33,"th"),a(34,"Publish"),i(),n(35,"th"),a(36,"Upload"),i(),n(37,"th"),a(38,"Replay"),i(),n(39,"th"),a(40,"Loaded"),i(),n(41,"th"),a(42,"Size"),i(),l(43,"th"),i()(),n(44,"tbody"),V(45,en,37,23,"tr",null,y),c(47,tn,4,0,"tr"),i()(),n(48,"div",29),a(49," * Indicates that there are multiple files recorded for this session "),i(),c(50,nn,1,0,"div",2),c(51,on,2,0,"button",30),i()}if(o&2){let e=d();r(4),u("formControl",e.findText),r(4),p(e.show.isPast?8:-1),r(4),u("href",R("/app/member/",e.show.id,"/replay"),k),r(3),u("routerLink",oe(10,Li)),r(3),u("routerLink",oe(11,$i)),r(3),u("routerLink",oe(12,Wi)),r(24),w(e.video),r(2),p(e.video.length==0?47:-1),r(3),p(e.processing?50:-1),r(),p(e.processing==!1?51:-1)}}function rn(o,t){if(o&1){let e=x();n(0,"div")(1,"h4"),a(2,"Upload Edited .mp4 File"),i(),n(3,"app-file-upload",45),C("uploadComplete",function(m){v(e);let f=d();return g(f.uploadComplete(m))}),i()()}o&2&&(r(3),u("fileTypes",oe(1,yt)))}function sn(o,t){if(o&1){let e=x();n(0,"div")(1,"app-speaker-find",46),C("speaker",function(m){v(e);let f=d();return g(f.uploadSpeakerFound(m))}),i()()}}function ln(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"button",48),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.selectPresentationForUpload(m))}
1),l(3,"i",49),i()(),n(4,"td"),a(5),i(),n(6,"td"),a(7),M(8,"date"),i()()}if(o&2){let e=t.$implicit,s=d(2);r(5),_(" ",e.title," "),r(2),_(" ",rt(8,2,e.startTime,"EEE MMM d, hh:mm a",s.show.location.zoneName)," ")}}function dn(o,t){o&1&&(n(0,"tr")(1,"td",50)(2,"em"),a(3,"No presentations..."),i()()())}function mn(o,t){if(o&1&&(n(0,"div")(1,"table",27)(2,"thead")(3,"tr"),l(4,"th",47),n(5,"th"),a(6,"Presentation"),i(),n(7,"th"),a(8,"Time"),i()()(),n(9,"tbody"),V(10,ln,9,6,"tr",null,y),c(12,dn,4,0,"tr"),i()()()),o&2){let e=d();r(10),w(e.speakerPresentations),r(2),p(e.speakerPresentations.length==0?12:-1)}}function cn(o,t){if(o&1){let e=x();n(0,"div")(1,"h3"),a(2),i(),n(3,"h4"),a(4),i(),n(5,"app-file-upload",51),C("uploadComplete",function(m){v(e);let f=d();return g(f.uploadOtherComplete(m))}),i()()}if(o&2){let e=d();r(2),_("Upload Recording: ",e.presentationForUpload.title),r(2),h(e.presentationForUpload.speakerNames),r(),u("formId","file-form-2")("fileNameId","file-name-2")("fileTypes",oe(5,yt))}}var je=class o{constructor(t,e,s){this.showService=t;this.zoomService=e;this.router=s;this.processing=!1;this.findText=new L;this.fileUploaded=!1}ngOnInit(){this.fetchData(),this.findText.valueChanges.pipe(ie(500)).subscribe(t=>{this.filterVideo(t)})}fetchData(){this.showService.show.subscribe(t=>{U(this.showService.presentations(t.id),this.zoomService.presentationVideo(t.id)).subscribe(e=>{this.allPresentations=e[0];let s=e[1];this.show=t,this.video=s,this.allVideo=s})})}filterVideo(t){if(t=Ct(t)?.toLowerCase(),t==null||t.length==0){this.video=this.allVideo;return}this.video=F(this.allVideo,e=>N(e?.title?.toLowerCase(),t)||N(e?.speakerNames?.toLowerCase(),t))}deleteVideo(t){confirm("Are you sure you want to delete this video?")&&this.zoomService.deleteVideo(t.id).subscribe(e=>{this.message="Delete compelte",this.fetchData()},e=>{this.error=b(e)})}publish(t){confirm("Are you sure you want to change publish status?")&&this.zoomService.togglePublishVideo(t.id).subscribe(e=>{this.message="Toggle complete",this.fetchData()},e=>{this.error=b(e)})}uploadClicked(t){this.selectedVideo=t,this.fileUploaded=!1}uploadComplete(t){this.fileUploaded=!0,this.zoomService.uploadEditedVideo(this.selectedVideo.id,t).subscribe(e=>{T(),O();let s=`/staff/task-status/${e.taskId}`;this.router.navigateByUrl(s)},e=>{this.error=b(e),T(),O()})}updateReplayStats(){this.processing=!0,this.zoomService.updateReplayStats().subscribe(t=>{this.processing=!1,this.message="Update complete",this.fetchData(),O()},t=>{this.error=b(t),this.processing=!0,O()})}uploadOtherClicked(){this.uploadSpeaker=null,this.speakerPresentations=null,this.presentationForUpload=null}uploadSpeakerFound(t){this.uploadSpeaker=t,this.speakerPresentations=F(this.allPresentations,e=>N(e.speakerNames,t.name))}selectPresentationForUpload(t){this.presentationForUpload=t}uploadOtherComplete(t){t.presentationId=this.presentationForUpload.id,this.zoomService.uploadPresentationVideo(t).subscribe(e=>{T(),O();let s=`/staff/task-status/${e.taskId}`;this.router.navigateByUrl(s)},e=>{this.error=b(e),T(),O()})}deleteAllZoomMeetings(){confirm("Are you sure you want to delete all zoom meetings?")&&this.zoomService.deleteAllZoomMeetings(this.show.id).subscribe(t=>{T();let e=`/staff/task-status/${t.taskId}`;this.router.navigateByUrl(e)},t=>{this.error=b(t),T()})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-presentation-video"]],standalone:!1,decls:52,vars:8,consts:[[1,"mb-3"],[3,"error","message"],[1,"spinner"],["id","uploadModal","tabindex","-1","role","dialog","aria-labelledby","uploadModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["id","uploadOther","tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade"],["id","deleteFromZoom","tabindex","-1","role","dialog","aria-labelledby","deleteFromZoom","aria-hidden","true",1,"modal","fade"],[1,"btn","btn-danger",3,"click"],[1,"row"],[1,"col-5"],[1,"form-group","find-text"],["type","text","name","findText","placeholder","Search",1,"form-control",3,"formControl"],[1,"col-2"],["type","button","data-toggle","modal","data-target","#uploadOther",1,"btn","btn-primary",3,"click"],[1,"fas","fa-cloud-upload-alt"],["data-toggle","modal","data-target","#deleteFromZoom",1,"btn","btn-warning"],[1,"hlink"],[3,"href"],[3,"routerLink"],[1,"table","table-striped"],[1,"w80"],[1,"alert","alert-info","w600"],[1,"btn","btn-secondary"],[1,"fas","fa-archive"],[1,"speaker-circle-sm"],["target","_blank",1,"btn","btn-secondary",3,"href"],[1,"fas","fa-cloud-download-alt"],[1,"btn","btn-primary",3,"href"],[1,"fas","fa-tv"],[1,"btn","btn-warning",3,"click"],[1,"fas","fa-check"],[1,"fas","fa-times"],["data-toggle","modal","data-target","#uploadModal",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],["alt","v.speakerNames",3,"src"],["colspan","10"],[1,"btn","btn-secondary",3,"click"],[3,"uploadComplete","fileTypes"],[3,"speaker"],[1,"w40"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-hand-pointer"],["colspan","3"],[3,"uploadComplete","formId","fileNameId","fileTypes"]],template:function(e,s){e&1&&(n(0,"h2",0),a(1,"Published Video Recordings"),i(),l(2,"app-info-message",1),c(3,Ji,1,0,"div",2),c(4,an,52,13,"div"),n(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"h5",7),a(10,"Upload Edited Recording"),i(),n(11,"button",8)(12,"span",9),a(13,"\xD7"),i()()(),n(14,"div",10),c(15,rn,4,2,"div"),i(),n(16,"div",11)(17,"button",12),a(18,"Close"),i()()()()(),n(19,"div",13)(20,"div",4)(21,"div",5)(22,"div",6)(23,"h5",7),a(24,"Upload Video"),i(),n(25,"button",8)(26,"span",9),a(27,"\xD7"),i()()(),n(28,"div",10),c(29,sn,2,0,"div"),c(30,mn,13,1,"div"),c(31,cn,6,6,"div"),i(),n(32,"div",11)(33,"button",12),a(34,"Close"),i()()()()(),n(35,"div",14)(36,"div",4)(37,"div",5)(38,"div",6)(39,"h5",7),a(40,"Delete Zoom Meetings and Recordings"),i(),n(41,"button",8)(42,"span",9),a(43,"\xD7"),i()()(),n(44,"div",10)(45,"p"),a(46," After the event, verify that all recordings are loaded to the NFJS CDN. Once that is complete, you may delete the meetings and recordings on Zoom. "),i(),n(47,"button",15),C("click",function(){return s.deleteAllZoomMeetings()}),a(48,"Delete Zoom Meetings"),i()(),n(49,"div",11)(50,"button",12),a(51,"Close"),i()()()()()),e&2&&(r(2),u("error",s.error)("message",s.message),r(),p(s.video==null?3:-1),r(),p(s.video?4:-1),r(11),p(s.fileUploaded==!1?15:-1),r(14),p(s.speakerPresentations==null?29:-1),r(),p(s.speakerPresentations&&s.presentationForUpload==null?30:-1),r(),p(s.presentationForUpload?31:-1))},dependencies:[z,$,B,W,ve,ze,ut,j],styles:["div.find-text[_ngcontent-%COMP%]{max-width:300px}i.fa-check[_ngcontent-%COMP%]{color:green}i.fa-times[_ngcontent-%COMP%]{color:red}"]})}};function pn(o,t){o&1&&l(0,"div",0)}function _n(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),l(5,"br"),a(6),i(),l(7,"td"),i()),o&2){let e=t.$implicit,s=t.$index;r(2),_(" ",s+1,". "),r(2),_(" ",e.name," "),r(2),_(" ",e.email," ")}}function un(o,t){o&1&&(n(0,"tr")(1,"td",8)(2,"em"),a(3,"No records"),i()()())}function fn(o,t){if(o&1&&(n(0,"div")(1,"div",1)(2,"div",2)(3,"b"),a(4,"Time Zone: "),i(),a(5),i()(),n(6,"table",3)(7,"thead",4)(8,"tr"),l(9,"th",5),n(10,"th"),a(11,"Name"),i(),n(12,"th"),a(13,"Check-In "),l(14,"br"),a(15,"Assigned Time"),i()()(),n(16,"tbody"),V(17,_n,8,3,"tr",null,y),c(19,un,4,0,"tr"),i()(),n(20,"div",6)(21,"h4"),a(22,"Not Checked-In Emails"),i(),l(23,"textarea",7),i()()),o&2){let e=d();r(5),_(" ",e.zoneName," "),r(12),w(e.showUsers),r(2),p(e.showUsers.length==0?19:-1),r(4),u("value",e.notCheckedInEmail)}}var Be=class o{constructor(t,e){this.showService=t;this.showAdminService=e}ngOnInit(){this.showService.show.subscribe(t=>{this.show=t,this.zoneName=t.location.zoneName,this.fetchData(t.id)})}fetchData(t){this.showAdminService.showUsers(t).subscribe(e=>{this.showUsers=e,this.filterNotCheckedIn(e)})}filterNotCheckedIn(t){this.notCheckedIn=[],this.notCheckedInEmail=""}time(t,e){return Q(t,e,this.zoneName)}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(Ce))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-attendee"]],standalone:!1,decls:2,vars:2,consts:[[1,"spinner"],[1,"clearfix","mb
1-3"],[1,"float-right"],[1,"table","table-striped","mb-5"],[1,"thead-inverse"],[1,"w20"],[1,"form-group"],["name","emails","rows","5",1,"form-control",3,"value"],["colspan","4"]],template:function(e,s){e&1&&(c(0,pn,1,0,"div",0),c(1,fn,24,3,"div")),e&2&&(p(s.showUsers==null?0:-1),r(),p(s.showUsers?1:-1))},styles:["i.fa-check[_ngcontent-%COMP%]{color:green}i.fa-times[_ngcontent-%COMP%]{color:red}"]})}};function Cn(o,t){o&1&&l(0,"div",1)}function hn(o,t){o&1&&(n(0,"div")(1,"h3"),a(2,"No Workshop Configured"),i()())}function vn(o,t){if(o&1){let e=x();n(0,"div")(1,"button",3),C("click",function(){v(e);let m=d(3);return g(m.createMeeting())}),l(2,"i",4),a(3," Create Zoom Meeting "),i()()}}function gn(o,t){if(o&1){let e=x();n(0,"div")(1,"ul")(2,"li")(3,"b"),a(4,"Meeting ID: "),i(),a(5),i(),n(6,"li")(7,"b"),a(8,"Join URL: "),i(),a(9),i(),n(10,"li")(11,"b"),a(12,"Start URL: "),i(),n(13,"a",5),a(14),i(),a(15,".."),i(),n(16,"li")(17,"b"),a(18,"Host ID: "),i(),a(19),i()(),n(20,"button",6),C("click",function(){v(e);let m=d(3);return g(m.deleteMeeting())}),l(21,"i",4),a(22," Delete Zoom Meeting "),i()()}if(o&2){let e=d(3);r(5),_(" ",e.presentation.zoomMeetingId),r(4),_(" ",e.presentation.zoomJoinUrl),r(4),u("href",e.presentation.zoomStartUrl,k),r(),h(e.presentation.zoomStartUrl.substring(0,60)),r(5),_(" ",e.presentation.zoomHostId)}}function Sn(o,t){if(o&1&&(n(0,"div")(1,"h4"),a(2),i(),n(3,"h5"),a(4),i(),c(5,vn,4,0,"div"),c(6,gn,23,5,"div"),i()),o&2){let e=d(2);r(2),h(e.presentation.title),r(2),q(" ",e.time(e.preConfWorkshop.start,"EEEE - M/d/yyyy h:mm a")," ",e.zoneName," "),r(),p(e.presentation.zoomMeetingId==null?5:-1),r(),p(e.presentation.zoomMeetingId!=null?6:-1)}}function xn(o,t){if(o&1&&(n(0,"div"),c(1,hn,3,0,"div"),c(2,Sn,7,5,"div"),i()),o&2){let e=d();r(),p(e.preConfWorkshop==null?1:-1),r(),p(e.preConfWorkshop?2:-1)}}var Le=class o{constructor(t,e,s){this.showService=t;this.preConfWorkshopService=e;this.zoomService=s}ngOnInit(){this.showService.show.subscribe(t=>{this.fetchData(t)})}fetchData(t){this.show=t,this.zoneName=t?.location?.zoneName,this.preConfWorkshopService.getWorkshop(t.id).subscribe(e=>{this.preConfWorkshop=e,this.presentation=e?.presentation})}time(t,e){return Q(t,e,this.zoneName)}createMeeting(){confirm("Are you sure you want to create zoom meeting?")&&this.zoomService.createMeeting(this.presentation.id).subscribe(t=>{this.message="Meeting created",this.fetchData(this.show)},t=>{this.error=b(t)})}deleteMeeting(){confirm("Are you sure you want to delete zoom meeting?")&&this.zoomService.deleteMeeting(this.presentation.id).subscribe(t=>{this.message="Meeting created",this.fetchData(this.show)},t=>{this.error=b(t)})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(De),S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-preconf"]],standalone:!1,decls:5,vars:4,consts:[[1,"mb-4"],[1,"spinner"],[3,"error","message"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-plus"],[3,"href"],[1,"btn","btn-danger",3,"click"]],template:function(e,s){e&1&&(n(0,"h2",0),a(1,"Pre-Conference Workshop"),i(),c(2,Cn,1,0,"div",1),l(3,"app-info-message",2),c(4,xn,3,2,"div")),e&2&&(r(2),p(s.show==null?2:-1),r(),u("error",s.error)("message",s.message),r(),p(s.show?4:-1))},dependencies:[z],styles:["ul[_ngcontent-%COMP%]{list-style:none}"]})}};function bn(o,t){o&1&&l(0,"div",0)}function yn(o,t){if(o&1&&(n(0,"div",6),a(1),M(2,"number"),n(3,"a",7),a(4),i()()),o&2){let e=t.$implicit;r(),q(" ",e.file_type," - ",P(2,4,e.file_size/1e6,"1.1-1")," MB - "),r(2),u("href",e.download_url,k),r(),h(e.download_url.substring(0,60))}}function Vn(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),l(5,"br"),a(6),M(7,"date"),i(),n(8,"td",5)(9,"h4"),a(10),i(),V(11,yn,5,7,"div",6,y),i()()),o&2){let e=t.$implicit,s=t.$index;r(2),_("",s+1,"."),r(2),_("",e.host_email," "),r(2),_(" ",P(7,4,e.start_time,"M/d/yyyy h:mm a")," "),r(4),h(e.topic),r(),w(e.recording_files)}}function wn(o,t){o&1&&(n(0,"tr")(1,"td",8)(2,"em"),a(3,"No data"),i()()())}function kn(o,t){if(o&1&&(n(0,"div")(1,"table",3)(2,"thead")(3,"tr"),l(4,"th",4),n(5,"th"),a(6,"Host"),i(),n(7,"th"),a(8,"Topic"),i()()(),n(9,"tbody"),V(10,Vn,13,7,"tr",null,y),c(12,wn,4,0,"tr"),i()()()),o&2){let e=d();r(10),w(e.meetings),r(2),p(e.meetings.length==0?12:-1)}}var $e=class o{constructor(t){this.zoomService=t;this.findText=new L}ngOnInit(){this.fetchData(),this.findText.valueChanges.pipe(ie(500)).subscribe(t=>{this.filter(t?.trim()?.toLowerCase())})}filter(t){if(t==null||t.length<3){this.meetings=this.allMeetings;return}this.meetings=F(this.allMeetings,e=>N(e?.topic?.toLowerCase(),t)||N(e?.host_email?.toLowerCase(),t))}fetchData(){this.zoomService.fetchAllRecordings().subscribe(t=>{this.allMeetings=t.meetings,this.meetings=this.allMeetings},t=>{this.error=b(t)})}static{this.\u0275fac=function(e){return new(e||o)(S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-recording-list"]],standalone:!1,decls:6,vars:3,consts:[[1,"spinner"],[1,"form-group","mb-3","find-text"],["type","text","name","findText","placeholder","Search..",1,"form-control",3,"formControl"],[1,"table","table-striped"],[1,"w20"],[1,"detail"],[1,"file"],["download","",3,"href"],["colspan","3"]],template:function(e,s){e&1&&(n(0,"h3"),a(1,"Zoom Recordings"),i(),c(2,b
1n,1,0,"div",0),n(3,"div",1),l(4,"input",2),i(),c(5,kn,13,1,"div")),e&2&&(r(2),p(s.meetings==null?2:-1),r(2),u("formControl",s.findText),r(),p(s.meetings?5:-1))},dependencies:[$,B,W,ee,j],styles:["div.find-text[_ngcontent-%COMP%]{max-width:300px}td.detail[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{border-bottom:1px solid #999}td.detail[_ngcontent-%COMP%]   div.file[_ngcontent-%COMP%]{padding-bottom:5px;border-bottom:1px solid #999}td.detail[_ngcontent-%COMP%]   div.file[_ngcontent-%COMP%]:last-child{border-bottom:0}"]})}};function En(o,t){o&1&&l(0,"i",9)}function In(o,t){o&1&&l(0,"i",10)}function Mn(o,t){if(o&1&&(n(0,"div"),a(1),M(2,"date"),i()),o&2){let e=d(2).$implicit;r(),_(" ",P(2,1,e.presentation.startTime,"M/d/yyyy h:mm a")," ")}}function Tn(o,t){o&1&&(n(0,"div")(1,"em"),a(2,"Not Scheduled"),i()())}function Pn(o,t){if(o&1&&(n(0,"span"),c(1,Mn,3,4,"div"),c(2,Tn,3,0,"div"),i()),o&2){let e=d().$implicit;r(),p(e.presentation.startTime?1:-1),r(),p(e.presentation.startTime==null?2:-1)}}function zn(o,t){if(o&1){let e=x();n(0,"button",12),C("click",function(){v(e);let m=d().$implicit,f=d(2);return g(f.delete(m))}),a(1,"Delete"),i()}}function Dn(o,t){if(o&1){let e=x();n(0,"button",12),C("click",function(){v(e);let m=d().$implicit,f=d(2);return g(f.disableWaitingRoom(m))}),a(1,"PWD"),i()}}function Fn(o,t){if(o&1){let e=x();n(0,"tr")(1,"td",7)(2,"a",8),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.selectMeeting(m))}),a(3),i()(),n(4,"td"),a(5),i(),n(6,"td"),a(7),M(8,"date"),i(),n(9,"td"),c(10,En,1,0,"i",9),c(11,In,1,0,"i",10),i(),n(12,"td"),c(13,Pn,3,2,"span"),i(),n(14,"td"),c(15,zn,2,0,"button",11),c(16,Dn,2,0,"button",11),i()()}if(o&2){let e=t.$implicit;r(3),h(e.id),r(2),h(e.topic),r(2),h(P(8,8,e.start_time,"M/d/yyyy h:mm a")),r(3),p(e.presentation!=null?10:-1),r(),p(e.presentation==null?11:-1),r(2),p(e.presentation?13:-1),r(2),p(e.presentation==null||e.presentation.startTime==null?15:-1),r(),p((e==null||e.presentation==null?null:e.presentation.startTime)!=null?16:-1)}}function On(o,t){o&1&&(n(0,"tr")(1,"td",13)(2,"em"),a(3,"No records"),i()()())}function Zn(o,t){if(o&1){let e=x();n(0,"div",1)(1,"h2"),a(2),i(),n(3,"table",5)(4,"thead")(5,"tr")(6,"th"),a(7,"ID"),i(),n(8,"th"),a(9,"Title"),i(),n(10,"th"),a(11,"Start"),i(),n(12,"th"),a(13,"Presentation"),i(),n(14,"th"),a(15,"Start"),i(),l(16,"th"),i()(),n(17,"tbody"),V(18,Fn,17,11,"tr",null,y),c(20,On,4,0,"tr"),i()(),n(21,"button",6),C("click",function(){v(e);let m=d();return g(m.disableAllWaitingRooms())}),a(22,"Disable all waiting rooms"),i()()}if(o&2){let e=d();r(2),_("",e.speaker.name," Zoom Meetings"),r(16),w(e.meetings),r(2),p(e.meetings.length==0?20:-1)}}function An(o,t){if(o&1&&(n(0,"div",4)(1,"div",14)(2,"h5",15),a(3,"Meeting Detail"),i(),n(4,"button",16)(5,"span",17),a(6,"\xD7"),i()()(),n(7,"div",18)(8,"textarea",19),a(9),M(10,"json"),i()(),n(11,"div",20)(12,"button",21),a(13,"Close"),i()()()),o&2){let e=d();r(9),h(Y(10,1,e.selectedMeeting))}}var We=class o{constructor(t,e,s,m){this.zoomService=t;this.speakerService=e;this.showService=s;this.route=m}ngOnInit(){this.showService.show.subscribe(t=>{this.show=t,this.route.params.subscribe(e=>{let s=+e.speakerId;this.fetchData(s)})})}fetchData(t){U(this.speakerService.get(t),this.zoomService.fetchMeetingsForSpeaker(t),this.showService.presentations(this.show.id)).subscribe(e=>{this.speaker=e[0],this.formatMeetings(e[1],e[2])})}formatMeetings(t,e){this.meetings=re(t,s=>(s.presentation=Ie(e,{zoomMeetingId:s.id}),s))}delete(t){confirm("Are you sure you want to delete this?")&&this.zoomService.deleteMeetingByZoomId(t.id).subscribe(e=>{this.message="delete complete",this.fetchData(this.speaker.id)},e=>{this.error=b(e)})}disableWaitingRoom(t){this.zoomService.disableWaitingRoomForPresentation(t.presentation.id).subscribe(e=>{this.message="update complete"},e=>{this.error=b(e)},()=>{O()})}disableAllWaitingRooms(){confirm("are you sure you want to disable all waiting rooms?")&&this.zoomService.disableAllWaitingRooms(this.show.id).subscribe(t=>{this.message="update compelte"},t=>{this.error=b(t)},()=>{O()})}
1selectMeeting(t){this.zoomService.fetchMeeting(t.id).subscribe(e=>this.selectedMeeting=e)}static{this.\u0275fac=function(e){return new(e||o)(S(I),S(se),S(D),S(Pe))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-speaker-zoom-meetings"]],standalone:!1,decls:5,vars:4,consts:[[3,"error","message"],[1,"meetings"],["id","zoomDetail","tabindex","-1","role","dialog","aria-labelledby","zoomDetailLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"table","table-striped"],[1,"btn","btn-primary",3,"click"],[1,"meeting-id"],["data-toggle","modal","data-target","#zoomDetail",3,"click"],[1,"fas","fa-check"],[1,"fas","fa-times"],[1,"btn","btn-secondary"],[1,"btn","btn-secondary",3,"click"],["colspan","6"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],["name","text",1,"form-control"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"]],template:function(e,s){e&1&&(l(0,"app-info-message",0),c(1,Zn,23,2,"div",1),n(2,"div",2)(3,"div",3),c(4,An,14,3,"div",4),i()()),e&2&&(u("error",s.error)("message",s.message),r(),p(s.meetings?1:-1),r(3),p(s.selectedMeeting?4:-1))},dependencies:[z,ae,j],styles:["td.meeting-id[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#00f}td.meeting-id[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{cursor:pointer}#zoomDetail[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{min-height:500px}"]})}};function Rn(o,t){if(o&1&&(n(0,"span"),a(1),i()),o&2){let e=d(3);r(),_("(part ",e.presentation.part,")")}}function Un(o,t){if(o&1&&(n(0,"span"),a(1),i()),o&2){let e=d().$implicit;r(),_("(part ",e.part,")")}}function Nn(o,t){if(o&1&&(n(0,"span"),l(1,"br"),a(2),M(3,"date"),i()),o&2){let e=d().$implicit;r(2),_(" ",P(3,1,e.recordingStart,"M/d/yyyy h:mm a"))}}function Hn(o,t){o&1&&l(0,"i",11)}function jn(o,t){o&1&&l(0,"i",12)}function Bn(o,t){if(o&1){let e=x();n(0,"tr")(1,"td"),a(2),c(3,Un,2,1,"span"),l(4,"br"),a(5),c(6,Nn,4,4,"span"),i(),n(7,"td"),a(8),l(9,"br"),a(10),M(11,"date"),i(),n(12,"td"),a(13),i(),n(14,"td"),c(15,Hn,1,0,"i",11),c(16,jn,1,0,"i",12),i(),n(17,"td")(18,"button",13),C("click",function(){let m=v(e).$implicit,f=d(3);return g(f.doCopy(m))}),l(19,"i",14),a(20," Copy"),i()()()}if(o&2){let e=t.$implicit;r(2),_(" ",e.title," "),r(),p(e.part?3:-1),r(2),_(" ",e.speakerNames," "),r(),p(e.recordingStart?6:-1),r(2),_(" ",e.showName," "),r(2),_(" ",P(11,9,e.startTime,"M/d/yyyy")," "),r(3),_(" ",e.sizeMB," "),r(2),p(e.publish?15:-1),r(),p(e.publish==!1?16:-1)}}function Ln(o,t){o&1&&(n(0,"tr")(1,"td",15)(2,"em"),a(3,"No Records"),i()()())}function $n(o,t){if(o&1&&(n(0,"div",7)(1,"h3"),a(2),c(3,Rn,2,1,"span"),i(),n(4,"table",10)(5,"thead")(6,"tr")(7,"th"),a(8,"Title"),i(),n(9,"th"),a(10,"Event"),i(),n(11,"th"),a(12,"Size"),i(),n(13,"th"),a(14,"Published"),i(),l(15,"th"),i()(),n(16,"tbody"),V(17,Bn,21,12,"tr",null,y),c(19,Ln,4,0,"tr"),i()()()),o&2){let e=d(2);r(2),_("",e.presentation.title," "),r(),p(e.presentation.part?3:-1),r(14),w(e.video),r(2),p(e.video.length==0?19:-1)}}function Wn(o,t){if(o&1&&(n(0,"div",2)(1,"div",3)(2,"h5",4),a(3,"Copy Missing Video"),i(),n(4,"button",5)(5,"span",6),a(6,"\xD7"),i()()(),c(7,$n,20,3,"div",7),n(8,"div",8)(9,"button",9),a(10,"Close"),i()()()),o&2){let e=d();r(7),p(e.video?7:-1)}}var Je=class o{constructor(t){this.zoomService=t;this.update=new ce}
1ngOnChanges(t){this.presentation&&this.fetchData()}fetchData(){this.zoomService.fetchVideoForTopic(this.presentation.topicId).subscribe(t=>{this.video=t})}doCopy(t){confirm("Are you sure you want to copy this recording?")&&this.zoomService.copyVideoForPresentation(this.presentation.id,t.id).subscribe(e=>{this.update.emit("Video copied")})}static{this.\u0275fac=function(e){return new(e||o)(S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-presentation-video-copy"]],inputs:{presentation:"presentation"},outputs:{update:"update"},standalone:!1,features:[ne],decls:3,vars:1,consts:[["id","copyModal","tabindex","-1","role","dialog","aria-labelledby","copyModal","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"table","table-striped"],[1,"fas","fa-check"],[1,"fas","fa-times"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-copy"],["colspan","5"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1),c(2,Wn,11,1,"div",2),i()()),e&2&&(r(2),p(s.presentation?2:-1))},dependencies:[j],encapsulation:2})}};var Gn=()=>["mp4"];function qn(o,t){o&1&&l(0,"div",0)}function Qn(o,t){if(o&1&&(n(0,"span"),a(1),i()),o&2){let e=d().$implicit;r(),_("(part ",e.part,")")}}function Kn(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"div",19),l(3,"img",20),i()(),n(4,"td")(5,"h4"),a(6),c(7,Qn,2,1,"span"),i(),n(8,"h5"),a(9),i()(),n(10,"td"),a(11),i(),n(12,"td")(13,"button",21),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.showZoomDetails(m))}),l(14,"i",22),i(),n(15,"button",23),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.selectPresentation(m))}),l(16,"i",24),i(),n(17,"button",25),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.selectPresentation(m))}),l(18,"i",26),i()(),n(19,"td"),a(20),i()()}if(o&2){let e=t.$implicit,s=d(2);r(3),u("src",e.smallImageSqURL,k)("alt",e.speakerNames),r(3),_("",e.title," "),r(),p(e.part?7:-1),r(2),h(e.speakerNames),r(2),_(" ",e.zoomMeetingId," "),r(9),_(" ",s.time(e.startTime,"EEEE - h:mm a")," ")}}function Xn(o,t){o&1&&(n(0,"tr")(1,"td",27)(2,"em"),a(3,"No records"),i()()())}function Yn(o,t){if(o&1){let e=x();n(0,"div")(1,"div",6)(2,"div",7)(3,"div",8),l(4,"input",9),i()(),n(5,"div",10)(6,"a",11),l(7,"i",12),i()()(),n(8,"table",13)(9,"thead")(10,"tr"),l(11,"th",14),n(12,"th"),a(13,"Presentation"),i(),n(14,"th"),a(15,"Meeting ID"),i(),n(16,"th",15),a(17,"Upload"),i(),n(18,"th"),a(19,"Time"),i()()(),n(20,"tbody"),V(21,Kn,21,7,"tr",null,y),c(23,Xn,4,0,"tr"),i()(),n(24,"div",16)(25,"div",17)(26,"button",18),C("click",function(){v(e);let m=d();return g(m.substituteMissingForPastRecodings())}),a(27,"Substitute Missing for Past Recordings"),i()()()()}if(o&2){let e=d();r(4),u("formControl",e.findText),r(2),u("href",R("/app/showadmin/virtual/",e.show.id,"/past-video"),k),r(15),w(e.missing),r(2),p(e.missing.length==0?23:-1)}}function eo(o,t){if(o&1){let e=x();n(0,"div",3)(1,"div",28)(2,"h5",29),a(3),i(),n(4,"button",30)(5,"span",31),a(6,"\xD7"),i()()(),n(7,"div",32)(8,"app-file-upload",33),C("uploadComplete",function(m){v(e);let f=d();return g(f.uploadComplete(m))}),i()(),n(9,"div",34)(10,"button",35),a(11,"Close"),i()()()}if(o&2){let e=d();r(3),_("Upload : ",e.presentation.title),r(5),u("formId","file-form-2")("fileNameId","file-name-2")("fileTypes",oe(4,Gn))}}function to(o,t){if(o&1){let e=x();n(0,"tr")(1,"td")(2,"button",44),C("click",function(){v(e);let m=d(3);return g(m.publishRecording())}),l(3,"i",24),i()(),n(4,"td"),a(5),i(),n(6,"td"),a(7),M(8,"number"),i(),n(9,"td"),a(10),i()()}if(o&2){let e=t.$implicit;r(5),_(" ",e.download_url.substring(0,60)," "),r(2),_(" ",P(8,3,e.file_size/1e6,"1.1-1")," MB "),r(3),h(e.file_type)}}function io(o,t){o&1&&(n(0,"tr")(1,"td",27)(2,"em"),a(3,"No recordings"),i()()())}function no(o,t){if(o&1&&(n(0,"div")(1,"h3"),a(2,"Recordings Hosted on Zoom"),i(),n(3,"table",13)(4,"thead")(5,"tr"),l(6,"td"),n(7,"th"),a(8,"File"),i(),l(9,"th")(10,"th")(11,"th"),i()(),n(12,"tbody"),V(13,to,11,6,"tr",null,y),c(15,io,4,0,"tr"),i()()()),o&2){let e=d(2);r(13),w(e.zoomRecordings.recording_files),r(2),p(e.zoomRecordings.recording_files.length==0?15:-1)}}function oo(o,t){if(o&1&&(n(0,"div",3)(1,"div",28)(2,"h5",29),a(3,"Zoom Detail"),i(),n(4,"button",30)(5,"span",31),a(6,"\xD7"),i()()(),n(7,"div",32)(8,"ul",36)(9,"li",37)(10,"a",38),a(11,"Zoom Recordings"),i()(),n(12,"li",37)(13,"a",39),a(14,"Zoom Data"),i()()(),n(15,"div",40)(16,"div",41),c(17,no,16,1,"div"),i(),n(18,"div",42)(19,"textarea",43),a(20),M(21,"json"),i()()()(),n(22,"div",34)(23,"button",35),a(24,"Close"),i()()()),o&2){let e=d();r(17),p(e.zoomRecordings!=null&&e.zoomRecordings.recording_files?17:-1),r(3),h(Y(21,2,e.zoomMeeting))}}var Ge=class o{constructor(t,e,s){this.showService=t;this.zoomService=e;this.router=s;this.zoneName=lt;this.findText=new L}ngOnInit(){this.fetchData(),fe(this.findText).subscribe(t=>{this.findMissing(t)})}fetchData(){this.showService.show.subscribe(t=>{this.zoneName=t.location.timeZoneName,U(this.showService.presentations(t.id),this.zoomService.presentationVideo(t.id)).subscribe(e=>{this.show=t;let s=e[0],m=e[1],f=F(s,te=>dt(te.startTime)?Ie(m,{presentationId:te.id,publish:!0})==null:!1);this.allMissing=he(f,"startTime"),this.missing=this.allMissing})})}findMissing(t){if(t.length<3){this.missing=this.allMissing;return}t=t.toLowerCase(),this.missing=F(this.allMissing,e=>N(e.title.toLowerCase(),t)||N(e.speakerNames.toLowerCase(),t))}selectPresentation(t){this.presentation=t}
1showZoomDetails(t){U(this.zoomService.fetchMeeting(t.zoomMeetingId),this.zoomService.fetchRecordings(t.zoomMeetingId)).subscribe(e=>{this.presentation=t,this.zoomMeeting=e[0],this.zoomRecordings=e[1]},e=>{this.error=b(e),this.presentation=t})}time(t,e){return Q(t,e,this.zoneName)}uploadComplete(t){t.presentationId=this.presentation.id,this.zoomService.uploadPresentationVideo(t).subscribe(e=>{T(),O();let s=`/staff/task-status/${e.taskId}`;this.router.navigateByUrl(s)},e=>{this.error=b(e),T(),O()})}publishRecording(){this.zoomService.publishRecordings(this.presentation.id).subscribe(t=>{T();let e=`/staff/task-status/${t.taskId}`;this.router.navigateByUrl(e)})}substituteMissingForPastRecodings(){confirm("Are you sure you want to run update?")&&this.zoomService.substituteMissingForPastRecodings(this.show.id).subscribe(t=>{this.message="Update complete",this.fetchData()})}handleUpdate(t){this.message=t,T(),this.fetchData()}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-presentation-video-missing"]],standalone:!1,decls:11,vars:5,consts:[[1,"spinner"],["id","uploadFile","tabindex","-1","role","dialog","aria-labelledby","uploadLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-lg"],[1,"modal-content"],["id","zoomDetail","tabindex","-1","role","dialog","aria-labelledby","zoomDetail","aria-hidden","true",1,"modal","fade"],[3,"update","presentation"],[1,"row"],[1,"col-12","col-sm-11"],[1,"form-group","w300"],["type","text","placeholder","Search",1,"form-control",3,"formControl"],[1,"col-12","col-sm-1"],[1,"btn","btn-primary",3,"href"],[1,"fas","fa-plus"],[1,"table","table-striped"],[1,"w80"],[1,"w180"],[1,"clearfix"],[1,"float-right"],[1,"btn","btn-secondary",3,"click"],[1,"speaker-circle-sm"],[3,"src","alt"],["data-toggle","modal","data-target","#zoomDetail",1,"btn","btn-primary",3,"click"],[1,"fas","fa-tv"],["data-toggle","modal","data-target","#uploadFile",1,"btn","btn-primary",3,"click"],[1,"fas","fa-cloud-upload-alt"],["data-toggle","modal","data-target","#copyModal",1,"btn","btn-primary",3,"click"],[1,"fas","fa-copy"],["colspan","5"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[3,"uploadComplete","formId","fileNameId","fileTypes"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["id","tabs","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["href","#tab1","role","tab","data-toggle","tab",1,"nav-link","active"],["href","#tab2","role","tab","data-toggle","tab",1,"nav-link"],[1,"tab-content"],["id","tab1",1,"active","show","tab-pane","fade","in"],["id","tab2",1,"tab-pane","fade"],["name","zoomDetail","id","zoomData","cols","60","rows","10",1,"form-control"],[1,"btn","btn-primary",3,"click"]],template:function(e,s){e&1&&(n(0,"h3"),a(1,"Presentations with no Recordings"),i(),c(2,qn,1,0,"div",0),c(3,Yn,28,4,"div"),n(4,"div",1)(5,"div",2),c(6,eo,12,5,"div",3),i()(),n(7,"div",4)(8,"div",2),c(9,oo,25,4,"div",3),i()(),n(10,"app-vs-presentation-video-copy",5),C("update",function(f){return s.handleUpdate(f)}),i()),e&2&&(r(2),p(s.missing==null?2:-1),r(),p(s.missing?3:-1),r(3),p(s.presentation?6:-1),r(3),p(s.presentation?9:-1),r(),u("presentation",s.presentation))},dependencies:[$,B,W,ze,Je,ae,ee],encapsulation:2})}};function ao(o,t){o&1&&l(0,"div",0)}function ro(o,t){if(o&1){let e=x();n(0,"button",15),C("click",function(){v(e);let m=d().$implicit,f=d(2);return g(f.removeZoomHost(m))}),l(1,"i",16),i()}}function so(o,t){o&1&&l(0,"i",12)}function lo(o,t){o&1&&l(0,"i",13)}function mo(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),c(4,ro,2,0,"button",9),i(),n(5,"td")(6,"div",10),l(7,"img",11),i()(),n(8,"td"),c(9,so,1,0,"i",12),c(10,lo,1,0,"i",13),i(),n(11,"td",14)(12,"h3"),a(13),i(),n(14,"h4"),a(15),i(),n(16,"h4"),a(17),i()()()),o&2){let e=t.$implicit,s=t.$index;r(2),_(" ",s+1,". "),r(2),p(e.zoomStatus==2?4:-1),r(3),u("src",e.smallImageSqURL,k)("alt",e.name),r(2),p(e.zoomStatus==2?9:-1),r(),p(e.zoomStatus==1?10:-1),r(3),h(e.name),r(2),h(e.email),r(2),h(e.zoomHostId)}}function co(o,t){o&1&&(n(0,"tr")(1,"td",17)(2,"em"),a(3,"No records"),i()()())}function po(o,t){if(o&1){let e=x();n(0,"div")(1,"div",1)(2,"div",2)(3,"b"),a(4,"Speaker Count: "),i(),a(5),i(),n(6,"div",3)(7,"button",4),C("click",function(){v(e);let m=d();return g(m.updateStatus())}),a(8,"Update Status"),i()()(),n(9,"table",5)(10,"thead")(11,"tr"),l(12,"th",6)(13,"th",7)(14,"th",8),n(15,"th",8),a(16,"Active"),l(17,"br"),a(18,"Status"),i(),n(19,"th"),a(20,"Name"),i()()(),n(21,"tbody"),V(22,mo,18,9,"tr",null,y),c(24,co,4,0,"tr"),i()()()}if(o&2){let e=d();r(5),_(" ",e.speakers.length," "),r(17),w(e.speakers),r(2),p(e.speakers.length==0?24:-1)}}var qe=class o{constructor(t){this.zoomService=t}ngOnInit(){this.fetchData()}fetchData(){this.zoomService.zoomSpeakers().subscribe(t=>this.speakers=t)}removeZoomHost(t){confirm("Are you sure you want to remove this zoom host?")&&this.zoomService.removeHost(t.id).subscribe(e=>{this.message="Host removed",this.fetchData()},e=>{this.error=b(e)})}updateStatus(){this.zoomService.updateZoomSpeakerStatus().subscribe(t=>{this.message="Update complete",this.fetchData()},t=>{this.error=b(t)})}static{this.\u0275fac=function(e){return new(e||o)(S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-speaker-status"]],standalone:!1,decls:4,vars:2,consts:[[1,"spinner"],[1,"clearfix","mb
1-2"],[1,"float-left"],[1,"float-right"],[1,"btn","btn-secondary",3,"click"],[1,"table","table-striped"],[1,"w20"],[1,"w80"],[1,"w60"],[1,"btn","btn-danger"],[1,"speaker-circle-sm"],[3,"src","alt"],[1,"fas","fa-times"],[1,"fas","fa-check"],[1,"speaker"],[1,"btn","btn-danger",3,"click"],[1,"fas","fa-trash"],["colspan","4"]],template:function(e,s){e&1&&(n(0,"h3"),a(1,"Speaker Zoom Host Status"),i(),c(2,ao,1,0,"div",0),c(3,po,25,2,"div")),e&2&&(r(2),p(s.speakers==null?2:-1),r(),p(s.speakers?3:-1))},styles:["i.fa-times[_ngcontent-%COMP%]{color:#c00}i.fa-check[_ngcontent-%COMP%]{color:green}td.speaker[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], td.speaker[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:16px;font-weight:400}"]})}};function _o(o,t){if(o&1){let e=x();n(0,"div",3)(1,"app-speaker-find",5),C("speaker",function(m){v(e);let f=d();return g(f.updateSpeaker(m))}),i()()}}function uo(o,t){if(o&1){let e=x();n(0,"div")(1,"app-show-find",9),C("show",function(m){v(e);let f=d(2);return g(f.updateShow(m))}),i()()}o&2&&(r(),u("label","Find Show"))}function fo(o,t){o&1&&l(0,"i",16)}function Co(o,t){o&1&&l(0,"i",16)}function ho(o,t){if(o&1){let e=x();n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),M(5,"date"),i(),n(6,"td"),a(7),M(8,"number"),i(),n(9,"td"),c(10,fo,1,0,"i",16),i(),n(11,"td"),c(12,Co,1,0,"i",16),i(),n(13,"td")(14,"button",17),C("click",function(){let m=v(e).$implicit,f=d(4);return g(f.selectVideo(m))}),a(15,"Select"),i()()()}if(o&2){let e=t.$implicit;r(2),h(e.title),r(2),_(" ",P(5,5,e.startTime,"EEE h:mm a")," "),r(3),_(" ",P(8,8,e.sizeMB,"0.0-0")," MB "),r(3),p(e.publish?10:-1),r(2),p(e.selected?12:-1)}}function vo(o,t){if(o&1){let e=x();n(0,"div")(1,"table",10)(2,"thead")(3,"tr")(4,"th",3),a(5,"Video"),i(),n(6,"th",11),a(7,"Time"),i(),n(8,"th",12),a(9,"Size"),i(),n(10,"th",12),a(11,"Published"),i(),l(12,"th",13)(13,"th",14),i()(),n(14,"tbody"),V(15,ho,16,11,"tr",null,y),i()(),n(17,"button",15),C("click",function(){v(e);let m=d(3);return g(m.doCopy())}),a(18," Copy Video "),i()()}if(o&2){let e=d(3);r(15),w(e.videoList)}}function go(o,t){if(o&1&&(n(0,"div")(1,"h3"),a(2),i(),n(3,"h4"),a(4),i(),c(5,vo,19,0,"div"),i()),o&2){let e=d(2);r(2),h(e.pastShow.name),r(2),h(e.pastShow.dates),r(),p(e.videoList?5:-1)}}function So(o,t){if(o&1&&(n(0,"div",4)(1,"div",6)(2,"div",7),l(3,"img",8),i(),n(4,"h4"),a(5),i()(),c(6,uo,2,1,"div"),c(7,go,6,3,"div"),i()),o&2){let e=d();r(3),u("src",e.speaker.smallImageSqURL,k)("alt",e.speaker.name),r(2),h(e.speaker.name),r(),p(e.pastShow==null?6:-1),r(),p(e.pastShow?7:-1)}}var Qe=class o{constructor(t,e,s){this.showService=t;this.zoomService=e;this.router=s}ngOnInit(){this.showService.show.subscribe(t=>this.show=t)}updateSpeaker(t){this.speaker=t}updateShow(t){this.pastShow=t,this.fetchPresentationsForShow(this.speaker,t)}fetchPresentationsForShow(t,e){this.zoomService.presentationVideo(e.id).subscribe(s=>{this.videoList=F(s,m=>m.speakerIds.indexOf(t.id)>=0)})}selectVideo(t){t.selected=!t.selected,console.log(t)}doCopy(){let t=F(this.videoList,{selected:!0});if(t.length==0){alert("selection required");return}let e=re(t,"id");this.zoomService.copyVideoToShow(this.show.id,e).subscribe(s=>{this.message="Update complete",this.speaker=null,this.pastShow=null,this.videoList=null})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-presentation-video-add-past"]],standalone:!1,decls:6,vars:4,consts:[[1,"mb-5"],[3,"error","message"],[1,"select-speaker","w700","mb-5"],[1,"w300"],[1,"selected"],[3,"speaker"],[1,"w100","mb-5"],[1,"speaker-circle-sm"],[3,"src","alt"],[3,"show","label"],[1,"table","table-striped"],[1,"w120"],[1,"w60"],[1,"w20"],[1,"w50"],["type","button",1,"btn","btn-primary",3,"click"],[1,"fas","fa-check"],[1,"btn","btn-primary",3,"click"]],template:function(e,s){e&1&&(n(0,"h2",0),a(1,"Add Video from Past Event"),i(),l(2,"app-info-message",1),n(3,"div",2),c(4,_o,2,0,"div",3),c(5,So,8,5,"div",4),i()),e&2&&(r(2),u("error",s.error)("message",s.message),r(2),p(s.speaker==null?4:-1),r(),p(s.speaker?5:-1))},dependencies:[z,ct,ve,ee,j],styles:["div.select-speaker[_ngcontent-%COMP%]   h4[_ng
1content-%COMP%]{font-size:16px}div.select-speaker[_ngcontent-%COMP%]   div.selected[_ngcontent-%COMP%]   div.speaker[_ngcontent-%COMP%]{text-align:center}table.table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], table.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-size:14px;padding:5px}"]})}};function xo(o,t){o&1&&l(0,"div",0)}function bo(o,t){if(o&1){let e=x();n(0,"tr")(1,"td"),a(2),l(3,"br"),a(4),i(),n(5,"td"),a(6),i(),n(7,"td")(8,"button",10),C("click",function(){let m=v(e).$implicit,f=d(2);return g(f.removeAdmin(m))}),l(9,"i",11),i()(),l(10,"td"),i()}if(o&2){let e=t.$implicit;r(2),_(" ",e.name," "),r(2),_(" ",e.zoomEmail," "),r(2),_(" ",e.zoomHostId," ")}}function yo(o,t){o&1&&(n(0,"tr")(1,"td",12)(2,"em"),a(3,"No records"),i()()())}function Vo(o,t){if(o&1&&(n(0,"div")(1,"div",3)(2,"div",4)(3,"button",5),l(4,"i",6),i()()(),n(5,"table",7)(6,"thead")(7,"tr")(8,"th",8),a(9,"Name"),i(),n(10,"th",8),a(11,"Zoom ID"),i(),l(12,"th",9)(13,"th"),i()(),n(14,"tbody"),V(15,bo,11,3,"tr",null,y),c(17,yo,4,0,"tr"),i()()()),o&2){let e=d();r(15),w(e.admins),r(2),p(e.admins.length==0?17:-1)}}var Ke=class o{constructor(t,e,s){this.showService=t;this.showAdminService=e;this.zoomService=s}ngOnInit(){this.showService.show.subscribe(t=>{this.show=t,this.fetchData(t.id)})}fetchData(t){U(this.zoomService.getAdmins(t),this.zoomService.fetchUsers()).subscribe(e=>{this.admins=e[0],this.hosts=e[1]})}addAdmin(t){confirm("Are you sure you want to add this admin?")&&(T(),this.zoomService.addAdmin(this.show.id,t).subscribe(()=>{this.message="Admin added",this.fetchData(this.show.id)},e=>{this.error=b(e)}))}removeAdmin(t){confirm("Are you sure you want to remove admin?")&&this.zoomService.removeAdmin(this.show.id,t.id).subscribe(()=>{this.message="Admin removed",this.fetchData(this.show.id)},e=>{this.error=b(e)})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(Ce),S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-admin"]],standalone:!1,decls:4,vars:5,consts:[[1,"spinner"],[3,"error","message"],[3,"host","zoomHosts"],[1,"clearfix","mb-3"],[1,"float-right"],["data-toggle","modal","data-target","#selectZoomHost",1,"btn","btn-primary"],[1,"fas","fa-plus"],[1,"table","table-striped"],[1,"w200"],[1,"w60"],[1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],["colspan","4"]],template:function(e,s){e&1&&(c(0,xo,1,0,"div",0),l(1,"app-info-message",1),c(2,Vo,18,1,"div"),n(3,"app-select-zoom-host",2),C("host",function(f){return s.addAdmin(f)}),i()),e&2&&(p(s.admins==null?0:-1),r(),u("error",s.error)("message",s.message),r(),p(s.admins?2:-1),r(),u("zoomHosts",s.hosts))},dependencies:[z,Fe],encapsulation:2})}};function wo(o,t){o&1&&l(0,"div",0)}function ko(o,t){if(o&1){let e=x();n(0,"div")(1,"div"),a(2),i(),n(3,"button",9),C("click",function(){v(e);let m=d().$implicit,f=d(2);return g(f.deleteZoomHost(m))}),l(4,"i",10),i()()}if(o&2){let e=d().$implicit;r(2),h(e.zoomHostId)}}function Eo(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),i(),n(5,"td"),l(6,"app-boolean-status",12),i()()),o&2){let e=t.$implicit;r(2),h(e.ordinal),r(2),_(" ",e.sizeMB," MB "),r(2),u("status",e.publish)}}function Io(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td",11)(4,"table",11),V(5,Eo,7,3,"tr",null,y),i()()()),o&2){let e=t.$implicit;r(2),_(" ",e.title," "),r(3),w(e.video)}}function Mo(o,t){if(o&1&&(n(0,"tr")(1,"td",5)(2,"h3"),a(3),i(),n(4,"div",6),l(5,"img",7),i(),c(6,ko,5,1,"div"),i(),n(7,"td")(8,"table",8)(9,"tbody"),V(10,Io,7,1,"tr",null,y),i()()()()),o&2){let e=t.$implicit,s=d(2);r(3),h(e.name),r(2),u("src",e.smallImageSqURL,k)("alt",e.name),r(),p(s.show.isPast&&e.zoomHostId!=null?6:-1),r(4),w(e.presentations)}}function To(o,t){o&1&&(n(0,"tr")(1,"td",13)(2,"em"),a(3,"No records"),i()()())}function Po(o,t){if(o&1&&(n(0,"div")(1,"div",2),l(2,"input",3),i(),n(3,"table",4)(4,"thead")(5,"tr")(6,"th"),a(7,"Speaker"),i(),n(8,"th"),a(9,"Presentation"),i()()(),n(10,"tbody"),V(11,Mo,12,4,"tr",null,y),c(13,To,4,0,"tr"),i()()()),o&2){let e=d();r(2),u("formControl",e.findText),r(9),w(e.speakers),r(2),p(e.speakers.length==0?13:-1)}}var Xe=class o{constructor(t,e,s){this.showService=t;this.zoomService=e;this.router=s;this.findText=new L}ngOnInit(){this.showService.show.subscribe(t=>{this.fetchData(t)}),fe(this.findText).subscribe(t=>{this.filterSpeakers(t.trim().toLowerCase())})}filterSpeakers(t){this.speakers=F(this.speakers,e=>N(e.name.toLowerCase(),t))}fetchData(t){U(this.showService.showSpeakers(t.id),this.showService.presentations(t.id),this.zoomService.presentationVideo(t.id)).subscribe(e=>{let s=e[1],m=e[2],f=re(e[0],te=>{let me=te.speaker;me.presentations=F(s,xe=>N(xe.speakerIds,me.id));
1for(let xe of me.presentations)xe.video=F(m,wt=>wt.presentationId===xe.id);return me});this.show=t,this.speakers=f})}deleteZoomHost(t){confirm(`Are you sure you want to delete zoom host ${t.name}?`)&&this.zoomService.removeHost(t.id).subscribe(e=>{this.message=`Zoom host ${t.name} deleted`,this.fetchData(this.show)})}static{this.\u0275fac=function(e){return new(e||o)(S(D),S(I),S(J))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-speaker-video"]],standalone:!1,decls:5,vars:4,consts:[[1,"spinner"],[3,"error","message"],[1,"form-group","w300"],["type","text","name","findText","placeholder","Find..",1,"form-control",3,"formControl"],[1,"table","table-striped"],[1,"speaker"],[1,"speaker-circle-sm"],[3,"src","alt"],[1,"presentations"],["type","button",1,"btn","btn-danger",3,"click"],[1,"fa","fa-trash"],[1,"w200"],[3,"status"],["colspan","2"]],template:function(e,s){e&1&&(n(0,"h2"),a(1,"Speaker Video"),i(),c(2,wo,1,0,"div",0),l(3,"app-info-message",1),c(4,Po,14,2,"div")),e&2&&(r(2),p(s.speakers==null?2:-1),r(),u("error",s.error)("message",s.message),r(),p(s.speakers!=null?4:-1))},dependencies:[Te,z,$,B,W],styles:["table.presentations[_ngcontent-%COMP%]{width:100%}td.speaker[_ngcontent-%COMP%]{text-align:center}td.speaker[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400}td.speaker[_ngcontent-%COMP%]   div.speaker-circle-sm[_ngcontent-%COMP%]{margin-bottom:10px}"]})}};function zo(o,t){o&1&&l(0,"div",0)}function Do(o,t){if(o&1&&(n(0,"div"),a(1),i()),o&2){let e=t.$implicit;r(),_(" ",e.name," ")}}function Fo(o,t){if(o&1&&(n(0,"tr")(1,"td"),a(2),i(),n(3,"td"),a(4),l(5,"br"),V(6,Do,2,1,"div",null,y),i(),n(8,"td"),a(9),i(),n(10,"td"),a(11),i()()),o&2){let e=t.$implicit,s=t.$index;r(2),_(" ",s+1,". "),r(2),_(" ",e.speaker.name," "),r(2),w(e.shows),r(3),_(" ",e.speaker.email," "),r(2),_(" ",e.speaker.zoomEmail," ")}}function Oo(o,t){o&1&&(n(0,"tr")(1,"td",4)(2,"em"),a(3,"No records"),i()()())}function Zo(o,t){if(o&1&&(n(0,"div")(1,"div")(2,"b"),a(3,"Hosts Needed: "),i(),a(4),i(),n(5,"table",1)(6,"thead")(7,"tr"),l(8,"th",2),n(9,"th"),a(10,"Name"),i(),n(11,"th"),a(12,"Email"),i(),n(13,"th"),a(14,"Zoom Email"),i()()(),n(15,"tbody"),V(16,Fo,12,4,"tr",null,y),c(18,Oo,4,0,"tr"),i()(),l(19,"textarea",3),i()),o&2){let e=d();r(4),_(" ",e.hosts.length," "),r(12),w(e.hosts),r(2),p(e.hosts.length==0?18:-1),r(),u("value",e.emails)}}var Ye=class o{constructor(t){this.zoomService=t}ngOnInit(){this.fetchData()}fetchData(){this.zoomService.createZoomHostQueue().subscribe(t=>{this.hosts=t,this.emails=t.map(e=>e.speaker.email).join(", "),console.log(this.emails)})}static{this.\u0275fac=function(e){return new(e||o)(S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-create-hosts-queue"]],standalone:!1,decls:7,vars:2,consts:[[1,"spinner"],[1,"table","table-striped"],[1,"w20"],["name","emails","id","emails","cols","30","rows","10",1,"emails",3,"value"],["colspan","4"]],template:function(e,s){e&1&&(n(0,"h1"),a(1,"Create Hosts Queue"),i(),n(2,"p"),a(3,` Host accounts needed in next 60 days. Does not include webinars or virtual workshops.
2`),i(),l(4,"app-vs-links"),c(5,zo,1,0,"div",0),c(6,Zo,20,3,"div")),e&2&&(r(5),p(s.hosts==null?5:-1),r(),p(s.hosts?6:-1))},dependencies:[K],styles:["textarea.emails[_ngcontent-%COMP%]{width:100%;min-height:200px}"]})}};function Ao(o,t){o&1&&l(0,"div",3)}function Ro(o,t){if(o&1&&(n(0,"div",4),a(1),i()),o&2){let e=d();r(),h(e.webError)}}function Uo(o,t){o&1&&(n(0,"span",7),a(1,"success"),i())}function No(o,t){if(o&1&&(n(0,"span",8),a(1,"error"),i(),n(2,"span",9),a(3),i()),o&2){let e=d(2);r(3),h(e.webResult.connectionStatus==null?null:e.webResult.connectionStatus.message)}}function Ho(o,t){if(o&1&&(n(0,"div",5)(1,"table",6)(2,"tbody")(3,"tr")(4,"th"),a(5,"Account ID"),i(),n(6,"td"),a(7),i()(),n(8,"tr")(9,"th"),a(10,"Client ID"),i(),n(11,"td"),a(12),i()(),n(13,"tr")(14,"th"),a(15,"Client Secret"),i(),n(16,"td"),a(17),i()(),n(18,"tr")(19,"th"),a(20,"Status"),i(),n(21,"td"),c(22,Uo,2,0,"span",7),c(23,No,4,1),i()()()()()),o&2){let e=d();r(7),h(e.webResult.ZoomOauthCredentials==null?null:e.webResult.ZoomOauthCredentials.accountId),r(5),h(e.webResult.ZoomOauthCredentials==null?null:e.webResult.ZoomOauthCredentials.clientId),r(5),h(e.webResult.ZoomOauthCredentials==null?null:e.webResult.ZoomOauthCredentials.clientSecret),r(5),p((e.webResult.connectionStatus==null?null:e.webResult.connectionStatus.status)==="success"?22:-1),r(),p((e.webResult.connectionStatus==null?null:e.webResult.connectionStatus.status)==="error"?23:-1)}}function jo(o,t){o&1&&l(0,"div",3)}function Bo(o,t){if(o&1&&(n(0,"div",4),a(1),i()),o&2){let e=d();r(),h(e.taskError)}}function Lo(o,t){o&1&&(n(0,"span",7),a(1,"success"),i())}
2function $o(o,t){if(o&1&&(n(0,"span",8),a(1,"error"),i(),n(2,"span",9),a(3),i()),o&2){let e=d(2);r(3),h(e.taskResult.connectionStatus==null?null:e.taskResult.connectionStatus.message)}}function Wo(o,t){if(o&1&&(n(0,"div",5)(1,"table",6)(2,"tbody")(3,"tr")(4,"th"),a(5,"Account ID"),i(),n(6,"td"),a(7),i()(),n(8,"tr")(9,"th"),a(10,"Client ID"),i(),n(11,"td"),a(12),i()(),n(13,"tr")(14,"th"),a(15,"Client Secret"),i(),n(16,"td"),a(17),i()(),n(18,"tr")(19,"th"),a(20,"Status"),i(),n(21,"td"),c(22,Lo,2,0,"span",7),c(23,$o,4,1),i()()()()()),o&2){let e=d();r(7),h(e.taskResult.ZoomOauthCredentials==null?null:e.taskResult.ZoomOauthCredentials.accountId),r(5),h(e.taskResult.ZoomOauthCredentials==null?null:e.taskResult.ZoomOauthCredentials.clientId),r(5),h(e.taskResult.ZoomOauthCredentials==null?null:e.taskResult.ZoomOauthCredentials.clientSecret),r(5),p((e.taskResult.connectionStatus==null?null:e.taskResult.connectionStatus.status)==="success"?22:-1),r(),p((e.taskResult.connectionStatus==null?null:e.taskResult.connectionStatus.status)==="error"?23:-1)}}var et=class o{constructor(t){this.zoomService=t;this.webLoading=!1;this.taskLoading=!1}testWebConnection(){this.webResult=null,this.webError=null,this.webLoading=!0,this.zoomService.testWebConnection().subscribe({next:t=>{this.webResult=t,this.webLoading=!1},error:t=>{this.webError=b(t),this.webLoading=!1}})}testTaskConnection(){this.taskResult=null,this.taskError=null,this.taskLoading=!0,this.zoomService.testTaskConnection().subscribe({next:t=>{this.taskResult=t,this.taskLoading=!1},error:t=>{this.taskError=b(t),this.taskLoading=!1}})}static{this.\u0275fac=function(e){return new(e||o)(S(I))}}static{this.\u0275cmp=E({type:o,selectors:[["app-vs-settings"]],standalone:!1,decls:20,vars:8,consts:[[1,"row","mt-4"],[1,"col-6"],[1,"btn","btn-primary",3,"click","disabled"],[1,"spinner","mt-2"],[1,"alert","alert-danger","mt-2"],[1,"mt-3"],[1,"table","table-sm","table-bordered"],[1,"badge","bg-success"],[1,"badge","bg-danger"],[1,"ms-2","text-danger"]],template:function(e,s){e&1&&(n(0,"h1"),a(1,"Zoom Settings"),i(),l(2,"app-vs-links"),n(3,"div",0)(4,"div",1)(5,"h4"),a(6,"nfjsweb Connection"),i(),n(7,"button",2),C("click",function(){return s.testWebConnection()}),a(8," Test Zoom Connection (nfjsweb) "),i(),c(9,Ao,1,0,"div",3),c(10,Ro,2,1,"div",4),c(11,Ho,24,5,"div",5),i(),n(12,"div",1)(13,"h4"),a(14,"nfjstask Connection"),i(),n(15,"button",2),C("click",function(){return s.testTaskConnection()}),a(16," Test Zoom Connection (nfjstask) "),i(),c(17,jo,1,0,"div",3),c(18,Bo,2,1,"div",4),c(19,Wo,24,5,"div",5),i()()),e&2&&(r(7),u("disabled",s.webLoading),r(2),p(s.webLoading?9:-1),r(),p(s.webError?10:-1),r(),p(s.webResult?11:-1),r(4),u("disabled",s.taskLoading),r(2),p(s.taskLoading?17:-1),r(),p(s.taskError?18:-1),r(),p(s.taskResult?19:-1))},dependencies:[K],encapsulation:2})}};var Jo=[{path:"users",component:Ne},{path:"create-hosts-queue",component:Ye},{path:"speaker-status",component:qe},{path:"meetings",component:Ue},{path:"settings",component:et},{path:":showId",component:Oe,children:[{path:"schedule",component:Re},{path:"speakers",component:He},{path:"admins",component:Ke},{path:"attendee",component:Be},{path:"video",component:je},{path:"missing_video",component:Ge},{path:"past-video",component:Qe},{path:"recordings",component:$e},{path:"speaker-video",component:Xe},{path:"preconf",component:Le},{path:"speakers/:speakerId/zoom",component:We}]}],tt=class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=ye({type:o})}static{this.\u0275inj=be({imports:[it.forChild(Jo),it]})}};var Vt=class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=ye({type:o})}static{this.\u0275inj=be({providers:[I,se,Ce,De],imports:[pt,ft,tt]})}};export{Vt as VirtualShowModule};

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.