1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[5509],{5509:function(e,t,i){i.r(t),i.d(t,{dyte_participants_stage_queue:function(){return g}});var a=i(4165),n=i(5861),r=i(3433),s=i(5671),c=i(3144),o=i(2304),p=i(2725),d=i(5855),u=i(7622),g=(i(4130),function(){function e(t){var i=this;(0,s.Z)(this,e),(0,o.r)(this,t),this.peerPresentingUpdateListener=function(){i.stageRequestedParticipants=[i.meeting.self].concat((0,r.Z)(i.meeting.participants.joined.toArray())).filter((function(e){return"REQUESTED_TO_JOIN_STAGE"===e.webinarStageStatus}))},this.updateStageRequestedParticipants=function(){i.stageRequestedParticipants=i.meeting.participants.joined.toArray().filter((function(e){return"REQUESTED_TO_JOIN_STAGE"===e.webinarStageStatus}))},this.acceptStageRequest=function(){var e=(0,n.Z)((0,a.Z)().mark((function e(t){var n,r,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("WEBINAR"!==i.meeting.meta.viewType){e.next=9;break}if(n=t.id,void 0===(r=i.meeting.participants.joined.get(n))){e.next=6;break}return e.next=6,r.acceptJoinStageRequest();case 6:i.updateStageRequestedParticipants(),e.next=13;break;case 9:if("LIVESTREAM"!==i.meeting.meta.viewType){e.next=13;break}return s=t.userId,e.next=13,i.meeting.stage.grantAccess([s]);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.rejectStageRequest=function(){var e=(0,n.Z)((0,a.Z)().mark((function e(t){var n,r,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("WEBINAR"!==i.meeting.meta.viewType){e.next=9;break}if(n=t.id,void 0===(r=i.meeting.participants.joined.get(n))){e.next=6;break}return e.next=6,r.rejectRequestToJoinStage();case 6:i.updateStageRequestedParticipants(),e.next=13;break;case 9:if("LIVESTREAM"!==i.meeting.meta.viewType){e.next=13;break}return s=t.userId,e.next=13,i.meeting.stage.denyAccess([s]);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.acceptAllStageRequest=(0,n.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("WEBINAR"!==i.meeting.meta.viewType){e.next=7;break}return t=i.meeting.participants.joined.toArray().filter((function(e){return"REQUESTED_TO_JOIN_STAGE"===e.webinarStageStatus})).map((function(e){return{id:e.id,requestToJoinType:"REQUEST_TO_PRESENT"}})),e.next=4,i.meeting.participants.acceptAllRequestToJoinStageRequests(t);case 4:i.updateStageRequestedParticipants(),e.next=10;break;case 7:if("LIVESTREAM"!==i.meeting.meta.viewType){e.next=10;break}return e.next=10,i.meeting.stage.grantAccess(i.stageRequestedParticipants.map((function(e){return e.userId})));case 10:case"end":return e.stop()}}),e)}))),this.denyAllStageRequest=(0,n.Z)((0,a.Z)().mark((function e(){var t,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("WEBINAR"!==i.meeting.meta.viewType){e.next=7;break}return r=i.meeting.participants.joined.toArray().filter((function(e){return"REQUESTED_TO_JOIN_STAGE"===e.webinarStageStatus})),e.next=4,Promise.all(r.map(function(){var e=(0,n.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.rejectRequestToJoinStage();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:i.updateStageRequestedParticipants(),e.next=10;break;case 7:if("LIVESTREAM"!==i.meeting.meta.viewType){e.next=10;break}return e.next=10,null===(t=i.meeting.stage)||void 0===t?void 0:t.denyAccess(i.stageRequestedParticipants.map((function(e){return e.userId})));case 10:case"end":return e.stop()}}),e)}))),this.shouldShowStageRequests=function(){return i.meeting.self.permissions.acceptPresentRequests&&i.stageRequestedParticipants.length>0},this.updateRequestList=function(){var e=(0,n.Z)((0,a.Z)().mark((function e(t){var n,s,c,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("WEBINAR"!==i.meeting.meta.viewType){e.next=4;break}i.stageRequestedParticipants=null===(n=[i.meeting.self].concat((0,r.Z)(i.meeting.participants.joined.toArray())))||void 0===n?void 0:n.filter((function(e){return"REQUESTED_TO_JOIN_STAGE"===e.webinarStageStatus})),e.next=28;break;
1case 4:if("LIVESTREAM"!==i.meeting.meta.viewType){e.next=28;break}if(t){e.next=27;break}return e.next=8,null===(s=i.meeting.stage)||void 0===s?void 0:s.getAccessRequests();case 8:if(e.t2=c=e.sent,e.t1=null===e.t2,e.t1){e.next=12;break}e.t1=void 0===c;case 12:if(!e.t1){e.next=16;break}e.t3=void 0,e.next=17;break;case 16:e.t3=c.stageRequests;case 17:if(e.t4=o=e.t3,e.t0=null!==e.t4,!e.t0){e.next=21;break}e.t0=void 0!==o;case 21:if(!e.t0){e.next=25;break}e.t5=o,e.next=26;break;case 25:e.t5=[];case 26:t=e.t5;case 27:i.stageRequestedParticipants=t.map((function(e){return Object.assign(Object.assign({},e),{name:e.displayName})}));case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.meeting=void 0,this.config=p.d,this.size=void 0,this.iconPack=d.d,this.view="sidebar",this.t=(0,u.u)(),this.stageRequestedParticipants=[]}return(0,c.Z)(e,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"disconnectedCallback",value:function(){var e=this.meeting,t=e.participants,i=e.self;this.participantLeftListener&&t.joined.removeListener("participantLeft",this.participantLeftListener),this.peerRequestToJoinStageListener&&t.joined.removeListener("peerRequestToJoinStage",this.peerRequestToJoinStageListener),this.peerAcceptedToJoinStageListener&&t.joined.removeListener("peerAcceptedToJoinStage",this.peerAcceptedToJoinStageListener),this.peerRejectedToJoinStageListener&&t.joined.removeListener("peerRejectedToJoinStage",this.peerRejectedToJoinStageListener),t.joined.removeListener("peerStartedPresenting",this.peerPresentingUpdateListener),t.joined.removeListener("peerStoppedPresenting",this.peerPresentingUpdateListener),i.removeListener("stageJoined",this.peerPresentingUpdateListener),i.removeListener("stageLeft",this.peerPresentingUpdateListener),i.removeListener("removedFromStage",this.peerPresentingUpdateListener)}},{key:"meetingChanged",value:function(e){var t,i=this;null!=e&&(this.participantLeftListener=function(e){i.stageRequestedParticipants=i.stageRequestedParticipants.filter((function(t){return t.id!==e.id}))},this.peerRequestToJoinStageListener=function(t){var a=t.id;i.stageRequestedParticipants=i.stageRequestedParticipants.filter((function(e){return e.id!=a}));var n=e.participants.joined.get(a);void 0!==n&&(i.stageRequestedParticipants=[].concat((0,r.Z)(i.stageRequestedParticipants),[n]))},this.peerAcceptedToJoinStageListener=function(e){var t=e.id;i.stageRequestedParticipants=i.stageRequestedParticipants.filter((function(e){return e.id!=t}))},this.peerRejectedToJoinStageListener=function(e){var t=e.id;i.stageRequestedParticipants=i.stageRequestedParticipants.filter((function(e){return e.id!=t}))},this.updateRequestList(),e.participants.joined.addListener("peerRequestToJoinStage",this.peerRequestToJoinStageListener),e.participants.joined.addListener("peerAcceptedToJoinStage",this.peerAcceptedToJoinStageListener),e.participants.joined.addListener("peerRejectedToJoinStage",this.peerRejectedToJoinStageListener),e.participants.joined.addListener("peerStartedPresenting",this.peerPresentingUpdateListener),e.participants.joined.addListener("peerStoppedPresenting",this.peerPresentingUpdateListener),null===(t=e.stage)||void 0===t||t.on("stageAccessRequestUpdate",this.updateRequestList),e.participants.joined.addListener("participantLeft",this.participantLeftListener),e.self.addListener("stageJoined",this.peerPresentingUpdateListener),e.self.addListener("stageLeft",this.peerPresentingUpdateListener),e.self.addListener("removedFromStage",this.peerPresentingUpdateListener))}},{key:"render",value:function(){var e=this;if("sidebar"===this.view&&this.shouldShowStageRequests())return(0,o.h)("div",{class:"stage-requested-participants"},(0,o.h)("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),(0,o.h)("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((function(t){return(0,o.h)("li",{class:"waiting-participant",key:t.id},(0,o.h)("div",{class:"participant-details"},(0,o.h)("dyte-avatar",{participant:t,size:"sm",iconPack:e.iconPack,t:e.t}),(0,o.h)("p",{class:"name",title:t.name}
1,t.name)),(0,o.h)("div",{class:"waitlist-controls"},(0,o.h)("dyte-tooltip",{label:e.t("stage_request.deny_request"),variant:"secondary",iconPack:e.iconPack,t:e.t},(0,o.h)("dyte-button",{variant:"secondary",kind:"icon",onClick:function(){return e.rejectStageRequest(t)},iconPack:e.iconPack,t:e.t},(0,o.h)("dyte-icon",{class:"deny",icon:e.iconPack.dismiss,iconPack:e.iconPack,t:e.t}))),(0,o.h)("dyte-tooltip",{label:e.t("stage_request.accept_request"),variant:"secondary",iconPack:e.iconPack,t:e.t},(0,o.h)("dyte-button",{variant:"secondary",kind:"icon",iconPack:e.iconPack,t:e.t,onClick:function(){return e.acceptStageRequest(t)}},(0,o.h)("dyte-icon",{class:"accept",icon:e.iconPack.checkmark})))))}))),(0,o.h)("div",{class:"bulk-actions"},(0,o.h)("dyte-button",{class:"accept-all-button",variant:"secondary",iconPack:this.iconPack,t:this.t,onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),(0,o.h)("dyte-button",{class:"deny-all-button",variant:"danger",iconPack:this.iconPack,t:this.t,onClick:this.denyAllStageRequest},this.t("stage_request.deny_all"))))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"]}}}]),e}());g.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);margin-top:var(--dyte-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--dyte-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--dyte-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--dyte-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions dyte-button{flex:1 1 0%}h3,.heading-count{margin:var(--dyte-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--dyte-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--dyte-space-2, 8px);padding:var(--dyte-space-0, 0px)}.waiting-participant{margin-top:var(--dyte-space-2, 8px);margin-bottom:var(--dyte-space-2, 8px);display:flex;align-items:center;color:rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)))}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details dyte-avatar{margin-right:var(--dyte-space-2, 8px);height:var(--dyte-space-8, 32px);width:var(--dyte-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--dyte-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls dyte-button{margin-left:var(--dyte-space-2, 8px);cursor:pointer;border-radius:var(--dyte-border-radius-sm, 4px)}.waiting-participant .waitlist-controls dyte-icon.accept{--tw-text-opacity:1;color:rgba(var(--dyte-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls dyte-icon.deny{--tw-text-opacity:1;color:rgba(var(--dyte-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}}]); 2//# sourceMappingURL=5509.8e218b92.chunk.js.map
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.