1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8068,5633],{8068:function(t,i,a){a.r(i),a.d(i,{dyte_participants_waiting_list:function(){return u}});var e=a(3433),n=a(4165),c=a(5861),s=a(5671),r=a(3144),o=a(2304),p=a(2725),d=a(5855),l=a(7622),u=(a(4130),function(){function t(i){var a=this;(0,s.Z)(this,t),(0,o.r)(this,i),this.acceptWaitingRoomRequest=function(){var t=(0,c.Z)((0,n.Z)().mark((function t(i){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.meeting.participants.acceptWaitingRoomRequest(i);case 2:case"end":return t.stop()}}),t)})));return function(i){return t.apply(this,arguments)}}(),this.acceptAllWaitingRoomRequests=(0,c.Z)((0,n.Z)().mark((function t(){var i;return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=a.waitlistedParticipants.map((function(t){return a.meeting.participants.acceptWaitingRoomRequest(t.id)})),t.next=3,Promise.all(i);case 3:case"end":return t.stop()}}),t)}))),this.rejectWaitingRoomRequest=function(){var t=(0,c.Z)((0,n.Z)().mark((function t(i){return(0,n.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.meeting.participants.rejectWaitingRoomRequest(i);case 2:case"end":return t.stop()}}),t)})));return function(i){return t.apply(this,arguments)}}(),this.shouldShowWaitlist=function(){return"LIVESTREAM"!==a.meeting.meta.viewType&&(a.meeting.self.permissions.acceptWaitingRequests&&0!==a.waitlistedParticipants.length)},this.meeting=void 0,this.config=p.d,this.size=void 0,this.iconPack=d.d,this.view="sidebar",this.t=(0,l.u)(),this.waitlistedParticipants=[]}return(0,r.Z)(t,[{key:"disconnectedCallback",value:function(){var t=this.meeting.participants;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener)}},{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"meetingChanged",value:function(t){var i=this;null!=t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=function(t){i.waitlistedParticipants.some((function(i){return i.id===t.id}))||(i.waitlistedParticipants=[].concat((0,e.Z)(i.waitlistedParticipants),[t]))},this.waitlistedParticipantLeftListener=function(t){i.waitlistedParticipants=i.waitlistedParticipants.filter((function(i){return i.id!==t.id}))},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener))}},{key:"render",value:function(){var t=this;if("sidebar"===this.view&&this.shouldShowWaitlist())return(0,o.h)("div",{class:"waiting-participants"},(0,o.h)("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),(0,o.h)("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((function(i){return(0,o.h)("li",{class:"waiting-participant",key:i.id},(0,o.h)("div",{class:"participant-details"},(0,o.h)("dyte-avatar",{participant:i,size:"sm",iconPack:t.iconPack,t:t.t}),(0,o.h)("p",{class:"name",title:i.name},i.name)),(0,o.h)("div",{class:"waitlist-controls"},(0,o.h)("dyte-tooltip",{label:t.t("waitlist.deny_request"),variant:"secondary",iconPack:t.iconPack,t:t.t},(0,o.h)("dyte-button",{variant:"secondary",kind:"icon",iconPack:t.iconPack,t:t.t,onClick:function(){return t.rejectWaitingRoomRequest(i.id)}},(0,o.h)("dyte-icon",{class:"deny",icon:t.iconPack.dismiss,iconPack:t.iconPack,t:t.t}))),(0,o.h)("dyte-tooltip",{label:t.t("waitlist.accept_request"),variant:"secondary",iconPack:t.iconPack,t:t.t},(0,o.h)("dyte-button",{variant:"secondary",kind:"icon",iconPack:t.iconPack,t:t.t,onClick:function(){return t.acceptWaitingRoomRequest(i.id)}},(0,o.h)("dyte-icon",{class:"accept",icon:t.iconPack.checkmark,iconPack:t.iconPack,t:t.t})))))}))),(0,o.h)("dyte-button",{class:"accept-all-button",variant:"secondary",kind:"wide",iconPack:this.iconPack,t:this.t,onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"]}}}]),t}());u.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);margin-top:var(--dyte-space-4, 16px);margin-bottom:calc(var(--dyte-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--dyte-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--dyte-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--dyte-space-0, 0px);
1display: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=8068.79a31e52.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.