1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1529,6055],{1529:function(t,e,i){i.r(e),i.d(e,{dyte_participants_stage_list:function(){return d}});var a=i(3433),n=i(5671),s=i(3144),r=i(2304),p=i(5855),o=i(7622),c=i(2725),d=(i(4130),function(){function t(e){var i=this;(0,n.Z)(this,t),(0,r.r)(this,e),this.updateParticipants=function(){i.getParticipants(i.search)},this.shouldShowStageList=function(){var t,e,a;"LIVESTREAM"===(null===(t=i.meeting)||void 0===t?void 0:t.meta.viewType)?i.showStageList="ON_STAGE"===(null===(a=null===(e=i.meeting)||void 0===e?void 0:e.stage)||void 0===a?void 0:a.status):i.showStageList=!0},this.meeting=void 0,this.config=c.d,this.size=void 0,this.iconPack=p.d,this.view="sidebar",this.t=(0,o.u)(),this.search="",this.participants=[],this.showStageList=!1}return(0,s.Z)(t,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}},{key:"disconnectedCallback",value:function(){var t,e,i=this.meeting,a=i.participants,n=i.self;null!=this.meeting&&(this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),a.joined.removeListener("peerStartedPresenting",this.updateParticipants),a.joined.removeListener("peerStoppedPresenting",this.updateParticipants),n.removeListener("stageJoined",this.updateParticipants),n.removeListener("stageLeft",this.updateParticipants),n.removeListener("removedFromStage",this.updateParticipants),null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.shouldShowStageList))}},{key:"meetingChanged",value:function(t){var e,i=this;null!=t&&(this.participantJoinedListener=function(t){if("WEBINAR"!==i.meeting.meta.viewType||"ON_STAGE"===t.webinarStageStatus){var e=i.search.toLowerCase();t.name.toLowerCase().includes(e)&&t.id.toLowerCase().includes(e)&&(i.participants=[].concat((0,a.Z)(i.participants.filter((function(e){return e.id!==t.id}))),[t]))}},this.participantLeftListener=function(t){i.participants=i.participants.filter((function(e){return e.id!==t.id}))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.participants.joined.addListener("peerStartedPresenting",this.updateParticipants),t.participants.joined.addListener("peerStoppedPresenting",this.updateParticipants),t.self.addListener("stageJoined",this.updateParticipants),t.self.addListener("stageLeft",this.updateParticipants),t.self.addListener("removedFromStage",this.updateParticipants),this.shouldShowStageList(),null===(e=null===t||void 0===t?void 0:t.stage)||void 0===e||e.on("stageStatusUpdate",this.shouldShowStageList))}},{key:"searchChanged",value:function(t){this.getParticipants(t)}},{key:"getParticipants",value:function(t){var e=[this.meeting.self].concat((0,a.Z)(this.meeting.participants.joined.toArray()));"WEBINAR"===this.meeting.meta.viewType&&(e=e.filter((function(t){return"ON_STAGE"===t.webinarStageStatus}))),this.participants=""===t?e:e.filter((function(e){var i;return(null!==(i=e.name)&&void 0!==i?i:e.id).toLowerCase().includes(t.toLowerCase())}))}},{key:"render",value:function(){var t=this;if(this.showStageList)return(0,r.h)(r.H,null,(0,r.h)("div",{class:"participants-container"},(0,r.h)("div",{class:"heading-count",part:"heading-count"},this.t("participants")," (",this.participants.length,")"),(0,r.h)("ul",{class:"participants",part:"participants"},this.participants.map((function(e){return(0,r.h)("dyte-participant",{role:"listitem",key:e.id,meeting:t.meeting,participant:e,view:t.view,t:t.t,iconPack:t.iconPack})})),0===this.participants.length&&(0,r.h)("div",{class:"empty-message",part:"empty-message"},this.search.length>0?this.t("Couldn't find a participant with the specified name or ID."):this.t("It looks like nobody is here.")))))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"],search:["searchChanged"]}}}]),t}());d.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);display:flex;width:100%;flex-direction:column;font-size:14px}.participants-container{margin-bottom:var(--dyte-space-4, 16px);width:100%}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);margin-bottom:var(--dyte-space-0, 0px);padding:var(--dyte-space-0, 0px)}.empty-message{margin-top:var(--dyte-space-4, 16px);margin-bottom:var(--dyte-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--dyte-colors-text-700, 255 255 255 / 0.64))}dyte-participant{width:100%}"}}]); 2//# sourceMappingURL=1529.420b8b2e.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.