1import{d as be}from"./chunk-NM2YCYMW.js";import{B as Ce,Ec as ge,Nc as k,Pc as Se,Qc as H,Uc as E,c as le,d as pe,e as me,kc as U,ld as xe,q as he,r as _e,s as ue,sa as $,t as ve,u as fe,zc as ne}from"./chunk-OTSSTHG4.js";import{$ as l,B as A,Ba as X,C as j,Ca as s,Da as b,E as z,Ea as I,Fa as ce,G as f,H as C,L as re,La as N,N as K,R as ae,Ta as ee,Ua as te,V as Q,W as D,X as r,_ as se,aa as u,ba as V,ja as m,jb as de,ka as h,la as g,ma as S,na as x,oa as _,ob as R,p as T,pa as a,qa as o,ra as p,sa as w,ta as v,tb as B,ua as d,ub as ye,vb as we,yb as ie}from"./chunk-LSXE27IB.js";var Z=class n{constructor(t,e){this.showService=t;this.route=e}ngOnInit(){this.route.params.subscribe(t=>{let e=+t.id;this.fetchData(e)})}fetchData(t){this.showService.fetchShow(t).subscribe(e=>this.show=e)}static{this.\u0275fac=function(e){return new(e||n)(l(E),l(B))}}static{this.\u0275cmp=u({type:n,selectors:[["app-show-view"]],standalone:!1,decls:1,vars:0,template:function(e,i){e&1&&p(0,"router-outlet")},dependencies:[ye],styles:["div.container[_ngcontent-%COMP%]{padding-top:25px}"]})}};var O=class n{constructor(t){this.http=t}itinerary(t){let e=`/n/data/user/${t}/itinerary`;return this.http.get(e)}add(t,e){let i="/n/data/user/itinerary/create",c={presentationId:t,userId:e,sourceId:1};return this.http.post(i,c)}remove(t,e){let i="/n/data/user/itinerary/delete",c={presentationId:t,userId:e};return this.http.post(i,c)}static{this.\u0275fac=function(e){return new(e||n)(z(R))}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac})}};var M=class n{constructor(t){this.http=t}getSpeaker(t){let e=`/n/data/spkr/${t}`;return this.http.get(e)}getSpeakers(t){return T(t.map(e=>this.getSpeaker(e)))}getPresentation(t){let e=`/n/data/presentation/${t}`;return this.http.get(e)}getRoom(t){let e=`/n/data/virtual-show/presentation/${t}/room`;return this.http.get(e)}static{this.\u0275fac=function(e){return new(e||n)(z(R))}}static{this.\u0275prov=A({token:n,factory:n.\u0275fac})}};function ke(n,t){n&1&&p(0,"div",0)}function Ee(n,t){if(n&1&&(a(0,"div",6)(1,"div",13),p(2,"img",14),o(),a(3,"h3"),s(4),o()()),n&2){let e=t.$implicit;r(2),_("src",e.mediumImageSqURL,D)("alt",e.name),r(2),b(e.name)}}function De(n,t){if(n&1){let e=w();a(0,"button",16),v("click",function(){f(e);let c=d(3);return C(c.toggleItinerary())}),p(1,"i",17),s(2," Add to Itinerary "),o()}}function Ne(n,t){if(n&1){let e=w();a(0,"button",16),v("click",function(){f(e);let c=d(3);return C(c.toggleItinerary())}),p(1,"i",17),s(2," Remove from Itinerary "),o()}}function Fe(n,t){if(n&1&&(a(0,"div",7),m(1,De,3,0,"button",15),m(2,Ne,3,0,"button",15),o()),n&2){let e=d(2);r(),h(e.isItinerarySelection()==!1?1:-1),r(),h(e.isItinerarySelection()?2:-1)}}function Ae(n,t){if(n&1){let e=w();a(0,"div",1)(1,"h3")(2,"button",2),v("click",function(){f(e);let c=d();return C(c.doneTouched())}),p(3,"i",3),o(),s(4),o(),a(5,"div",4)(6,"div",5),S(7,Ee,5,3,"div",6,g),m(9,Fe,3,2,"div",7),a(10,"a",8),p(11,"i",9),s(12," Join"),o()(),a(13,"div",10),p(14,"app-info-message",11)(15,"div",12),ee(16,"markdown"),p(17,"div",12),ee(18,"markdown"),o()()()}if(n&2){let e=d();r(4),I(" \xA0 ",e.presentation.title),r(3),x(e.speakers),r(2),h(e.user?9:-1),r(),_("href",e.presentation.webinarJoinUrl,D),r(4),_("error",e.error),r(),_("innerHTML",te(16,6,e.presentation.summary),Q),r(2),_("innerHTML",te(18,8,e.presentation.detail),Q)}}var G=class n{constructor(t,e,i){this.virtualShowService=t;this.itineraryService=e;this.authService=i;this.done=new K;this.update=new K;this.authService.user.subscribe(c=>this.user=c)}ngOnChanges(t){this.presentation&&this.fetchData()}fetchData(){this.virtualShowService.getSpeakers(this.presentation.speakerIds).subscribe(t=>this.speakers=t)}isItinerarySelection(){return $(this.itinerary,{presentationId:this.presentation.id})!=null}toggleItinerary(){let t;this.isItinerarySelection()?t=this.itineraryService.remove(this.presentation.id,this.user.id):t=this.itineraryService.add(this.presentation.id,this.user.id),t.subscribe(e=>{this.message="Update complete",this.update.emit(!0)},e=>{this.error=U(e)})}doneTouched(){this.done.emit(!0)}static{this.\u0275fac=function(e){return new(e||n)(l(M),l(O),l(k))}}static{this.\u0275cmp=u({type:n,selectors:[["app-presentation-detail"]],inputs:{show:"show",presentation:"presentation",itinerary:"itinerary"},outputs:{done:"done",update:"update"},standalone:!1,features:[ae],decls:2,vars:2,consts:[[1,"spinner"],[1,"presentation-detail"],[1,"btn","btn-secondary",3,"click"],[1,"fas","fa-arrow-left"],[1,"row"],[1,"col-12","col-sm-3"],[1,"speaker","mb-3"],[1,"actions","mb-5"],["target","_blank",1,"join",3,"href"],[1,"fas","fa-tv"],[1,"col-12","col-sm-7"],[3,"error"],[3,"innerHTML"],[1,"speaker-circle-md"],[3,"src","alt"],[1,"btn","btn-primary"],[1,"btn","btn-primary",3,"click"],[1,"fas","fa-star"]],template:function(e,i){e&1&&(m(0,ke,1,0,"div",0),m(1,Ae,19,10,"div",1)),e&2&&(h(i.speakers==null?0:-1),r(),h(i.speakers?1:-1))},dependencies:[H,Se],styles:["div.presentation-detail[_ngcontent-%COMP%]{padding:15px;margin-bottom:20px;min-height:400px}div.presentation-detail[_ngcontent-%COMP%] div.speaker[_ngcontent-%COMP%]{text-align:center}div.presentation-detail[_ngcontent-%COMP%] div.speaker[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400}div.presentation-detail[_ngcontent-%COMP%] a.join[_ngcontent-%COMP%]{display:inline-block;background:#c00;color:#fff;padding:5px 20px;border-radius:4px}div.presentation-detail[_ngcontent-%COMP%] a.join[_ngcontent-%COMP%]:hover{border:1px solid #CC0000;background:#fff;color:#c00}"]})}};function ze(n,t){n&1&&p(0,"div",1)}function Ve(n,t){if(n&1&&(a(0,"span"),s(1),o()),n&2){let e=d(3);r(),I("You are not logged in as: ",e.user.email,". However, this account does not have access to the event.")}}function Re(n,t){if(n&1&&(a(0,"div",4),m(1,Ve,2,1,"span"),s(2," To access event content; please "),a(3,"a",13),s(4,"login"),o(),s(5," with the email address provided during "),a(6,"a",14),s(7,"registration"),o(),s(8,". Your event ticket email includes a link to log you into the site. "),o()),n&2){let e=d(2);r(),h(e.user?1:-1),r(5),_("href",N("/app/ticket/event/",e.show.id),D)}}function $e(n,t){if(n&1&&(a(0,"option",10),s(1),o()),n&2){let e=t.$implicit;_("value",e),r(),b(e)}}function Ue(n,t){if(n&1&&(a(0,"option",10),s(1),o()),n&2){let e=t.$implicit;_("value",e),r(),b(e)}}function He(n,t){if(n&1){let e=w();a(0,"a",15),v("click",function(){let c=f(e).$index,P=d(2);return C(P.dayTabTouched(c))}),s(1),o()}if(n&2){let e=t.$implicit,i=t.$index,c=d(2);X(N("tab ",c.indexOfDayToDisplay==i?"current":"")),_("id",N("tab-",i)),r(),I(" ",c.time(e.startTime,"EEEE")," ")}}function Be(n,t){if(n&1&&(a(0,"h3",18),s(1),o()),n&2){let e=d().$implicit,i=d(4);r(),ce("",i.time(e.startTime,"h:mm a")," - ",e.label)}}function Ze(n,t){n&1&&p(0,"i",22)}function Ge(n,t){if(n&1){let e=w();a(0,"div",21),v("click",function(){let c=f(e).$implicit,P=d(6);return C(P.selectPresentation(c))}),a(1,"h4"),s(2),o(),a(3,"h5"),s(4),o(),m(5,Ze,1,0,"i",22),o()}if(n&2){let e=t.$implicit,i=d(6);r(2),b(e.title),r(2),b(e.speakerNames),r(),h(i.isItinerarySelection(e)?5:-1)}}function Le(n,t){if(n&1&&(a(0,"div",19)(1,"h3",18),s(2),o(),S(3,Ge,6,3,"div",20,g),o()),n&2){let e=d().$implicit,i=d(4);r(2),I("",i.time(e.startTime,"h:mm a")," - SESSIONS"),r(),x(e.presentations)}}function We(n,t){if(n&1){let e=w();
1a(0,"div")(1,"h3",18),s(2),o(),a(3,"app-presentation-detail",23),v("update",function(){f(e);let c=d(5);return C(c.fetchData())})("done",function(){f(e);let c=d(5);return C(c.selectPresentation(null))}),o()()}if(n&2){let e=d().$implicit,i=d(4);r(2),I("",i.time(e.startTime,"h:mm a")," - SESSIONS"),r(),_("show",i.show)("presentation",i.presentation)("itinerary",i.itinerary)}}function Ye(n,t){if(n&1&&(a(0,"div",18),m(1,Be,2,2,"h3",18),m(2,Le,5,1,"div",19),m(3,We,4,4,"div"),o()),n&2){let e=t.$implicit,i=d(4);r(),h(e.presentations.length==0?1:-1),r(),h(i.presentation==null&&e.presentations.length?2:-1),r(),h(i.presentation&&i.presentation.slotId==e.id?3:-1)}}function Je(n,t){if(n&1&&(a(0,"div",16)(1,"h3",17),s(2),o(),S(3,Ye,4,3,"div",18,g),o()),n&2){let e=d().$implicit,i=d(2);r(2),b(i.time(e.startTime,"EEEE - MMMM d")),r(),x(e.slots)}}function qe(n,t){if(n&1&&(a(0,"div",12),m(1,Je,5,1,"div",16),o()),n&2){let e=t.$implicit,i=d(2);r(),h(e.dayNumber==i.indexOfDayToDisplay?1:-1)}}function Ke(n,t){if(n&1&&(a(0,"div",2)(1,"header",3)(2,"h1"),s(3,"SCHEDULE"),o()(),m(4,Re,9,3,"div",4),a(5,"div",5)(6,"div",6)(7,"div",7)(8,"label",8),s(9,"Time Zone:"),o(),s(10," \xA0 "),a(11,"select",9),S(12,$e,2,2,"option",10,g),a(14,"option"),s(15," --- "),o(),S(16,Ue,2,2,"option",10,g),o()()(),a(18,"div"),S(19,He,2,6,"a",11,g),o()(),S(21,qe,2,1,"div",12,g),o()),n&2){let e=d();r(4),h(e.memberAccess==!1?4:-1),r(3),_("formGroup",e.zoneForm),r(5),x(e.usZoneNames),r(4),x(e.worldZoneNames),r(2),X(N("day-tabs day-tabs-",e.schedule.length," clearfix")),r(),x(e.schedule),r(2),x(e.schedule)}}var L=class n{constructor(t,e,i,c){this.showService=t;this.authService=e;this.itineraryService=i;this.SHOW_ROOMS_ASSIGNED_ONLY=!0;this.indexOfDayToDisplay=0;this.memberAccess=!1;this.authService.user.subscribe(P=>{this.user=P,this.memberAccess=ne(P,this?.show?.id)}),this.zoneForm=c.group({zoneName:["",le.required]})}ngOnInit(){this.observeZoneSelection(),this.fetchData()}observeZoneSelection(){this.usZoneNames=["America/New_York","America/Chicago","America/Denver","America/Los_Angeles"],this.worldZoneNames=Intl.supportedValuesOf("timeZone"),this.zoneForm.get("zoneName").valueChanges.subscribe(e=>{this.zoneName=e,localStorage.setItem("zone",e)});let t=localStorage.getItem("zone");t?this.zoneName=t:this.zoneName=Intl.DateTimeFormat().resolvedOptions().timeZone,this.zoneForm.patchValue({zoneName:this.zoneName})}fetchData(){this.showService.show.subscribe(t=>{this.show=t,this.memberAccess=ne(this.user,this?.show?.id),this.zoneName==null&&(this.zoneName=t.location.zoneName,this.zoneForm.patchValue({zoneName:this.zoneName})),this.showService.showSchedule(t.id).subscribe(e=>this.schedule=e),T(this.showService.showSchedule(t.id),this.itineraryService.itinerary(t.id)).subscribe(e=>{this.schedule=this.filterSessions(e[0]),this.itinerary=e[1]})})}filterSessions(t){return this.SHOW_ROOMS_ASSIGNED_ONLY==!1,t}time(t,e){return ge(t,e,this.zoneName)}dayTabTouched(t){this.indexOfDayToDisplay=t,this.presentation=null}selectPresentation(t){this.presentation=t}isItinerarySelection(t){return $(this.itinerary,{presentationId:t.id})!=null}static{this.\u0275fac=function(e){return new(e||n)(l(E),l(k),l(O),l(Ce))}}static{this.\u0275cmp=u({type:n,selectors:[["app-show-schedule"]],standalone:!1,decls:3,vars:2,consts:[[1,"container","mb-5"],[1,"spinner"],[1,"schedule-page"],[1,"mb-3"],[1,"alert","alert-warning"],[1,"header-wrapper","clearfix"],[1,"clearfix","mb-1"],[1,"float-right","zone-selector","form-group",3,"formGroup"],["for","zoneName"],["formControlName","zoneName","name","zoneName","id","zoneName",1,"form-control-inline"],[3,"value"],[3,"id","class"],[1,"day"],["href","/n/login"],[3,"href"],[3,"click","id"],[1,"day-wrapper"],[1,"day","mb-2"],[1,"slot"],[1,"presentation-wrapper","clearfix"],[1,"presentation"],[1,"presentation",3,"click"],[1,"fas","fa-star"],[3,"update","done","show","presentation","itinerary"]],template:function(e,i){e&1&&(a(0,"div",0),m(1,ze,1,0,"div",1),m(2,Ke,23,5,"div",2),o()),e&2&&(r(),h(i.schedule==null?1:-1),r(),h(i.schedule?2:-1))},dependencies:[ve,fe,ue,pe,me,_e,he,G],styles:["div.schedule-page[_ngcontent-%COMP%] div.zone-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:700}div.header-wrapper[_ngcontent-%COMP%]{margin-bottom:20px}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs[_ngcontent-%COMP%]{float:right;width:100%;max-width:315px;border:1px solid #999;border-radius:4px}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs[_ngcontent-%COMP%] a.tab[_ngcontent-%COMP%]{border-right:1px solid #999;padding:5px;float:left;text-align:center;text-decoration:none}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs[_ngcontent-%COMP%] a.tab[_ngcontent-%COMP%]:last-child{border-right:0}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs[_ngcontent-%COMP%] a.tab.current[_ngcontent-%COMP%]{background:#ffff004d}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs[_ngcontent-%COMP%] a.tab[_ngcontent-%COMP%]:hover{text-decoration:none;cursor:pointer}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs-2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:50%}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs-3[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:33.3333333%}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs-4[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:25%;font-size:12px}div.header-wrapper[_ngcontent-%COMP%] div.day-tabs-5[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20%}div.day[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] h3.slot[_ngcontent-%COMP%]{background:#f1f1f1;padding:5px;margin-bottom:10px;border:1px solid #999}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%]{width:328px;height:100px;margin:1px;float:left;padding:5px;border:1px solid #999}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{color:#333;margin:0 0 5px;font-size:16px}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#999;margin:0 0 5px 10px;font-size:13px}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] i.itinerary[_ngcontent-%COMP%]{display:none}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span.continued[_ngcontent-%COMP%]{display:block;color:#999;font-size:12px}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%] em.subevent[_ngcontent-%COMP%]{font-size:14px;margin:0 0 5px 10px;color:#333;float:right}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%]{overflow:hidden}div.day[_ngcontent-%COMP%] div.slot[_ngcontent-%COMP%] div.presentation-wrapper[_ngcontent-%COMP%] div.presentation[_ngcontent-%COMP%]:hover{cursor:pointer;background:#ffff004d}"]})}};function Qe(n,t){n&1&&p(0,"div",0)}var W=class n{constructor(t,e,i,c,P,et,tt){this.showService=t;this.authService=e;this.virtualShowService=i;this.route=c;this.renderer2=P;this._document=et;this.router=tt}ngOnInit(){this.authService.user.subscribe(t=>this.user=t),this.showService.show.subscribe(t=>{this.show=t,this.zoneName=t.location.zoneName,this.route.params.subscribe(e=>{let i=+e.presentationId;this.fetchData(i)})})}fetchData(t){T(this.virtualShowService.getPresentation(t),this.virtualShowService.getRoom(t)).subscribe(e=>{let i=e[0];this.room=e[1],this.speakers=i.speakers,this.presentation=i.presentation,this.setUpEmbed(this.room)},e=>{this.error=U(e)})}setUpEmbed(t){let e=document.getElementById("embed"),i=this.renderer2.createElement("script");i.type="text/javascript",i.src=t.embed_room_url,i.text="",this.renderer2.appendChild(e,i),console.log("do embed: "+t.embed_room_url)}static{this.\u0275fac=function(e){return new(e||n)(l(E),l(k),l(M),l(B),l(se),l(re),l(we))}}static{this.\u0275cmp=u({type:n,selectors:[["app-watch-presentation"]],standalone:!1,decls:3,vars:3,consts:[[1,"spinner"],[3,"error","message"],["id","embed"]],template:function(e,i){e&1&&(m(0,Qe,1,0,"div",0),p(1,"app-info-message",1)(2,"div",2)),e&2&&(h(i.presentation==null?0:-1),r(),_("error",i.error)("message",i.message))},dependencies:[H],styles:["div.watch[_ngcontent-%COMP%]{border:1px solid #999;width:100%;min-width:1000px;min-height:600px}#embed[_ngcontent-%COMP%]{width:100%;height:100vh}"]})}};var Y=class n{constructor(){}ngOnInit(){this.video=document.getElementById("video"),navigator.mediaDevices.getUserMedia&&navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.video.srcObject=t,this.video.play()}).catch(t=>{console.log(t),console.log("Something went wrong!")})}play(){this.video.play()}stop(){this.video.pause()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=u({type:n,selectors:[["app-stream-test"]],standalone:!1,decls:8,vars:0,consts:[[1,"container"],["id","video","width","400","height","300"],[1,"btn","btn-secondary",3,"click"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"p"),s(2,"stream-test works!"),o(),p(3,"video",1),a(4,"button",2),v("click",function(){return i.stop()}),s(5,"Stop"),o(),a(6,"button",2),v("click",function(){return i.play()}),s(7,"Play"),o()())},styles:["video[_ngcontent-%COMP%]{border:1px solid #999}"]})}};var J=class n{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=u({type:n,selectors:[["app-vs-access-denied"]],standalone:!1,decls:13,vars:0,consts:[[1,"container"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"h3"),s(2,"Access Denied"),o(),a(3,"p"),s(4," Your account does not have access to the requested session. "),o(),a(5,"p"),s(6," To access session, you must be logged in with the email address used to register for the event. "),o(),a(7,"p"),s(8," If you are trying to access a pre-conference full-day workshop, be sure that your event ticket includes the pre-conference full-day workshop ticket. "),o(),a(9,"p"),s(10," Be sure that the event ticket is assigned to the correct email address. "),o(),a(11,"p"),s(12," For assistance, please contact: [email protected] "),o()())},styles:["div.container[_ngcontent-%COMP%]{padding:30px}"]})}};var Xe=[{path:":id",component:Z,children:[{path:"",redirectTo:"schedule",pathMatch:"full"},{path:"schedule",component:L},{path:"watch/:presentationId",component:W},{path:"stream",component:Y},{path:"access-denied",component:J}]}],q=class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=V({type:n})}static{this.\u0275inj=j({imports:[ie.forChild(Xe),ie]})}};var Pe=class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=V({type:n})}static{this.\u0275inj=j({providers:[M,xe,O],imports:[de,q,be]})}};export{Pe 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.