1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[5181],{5181:function(e,t,i){i.r(t),i.d(t,{dyte_participants_toggle:function(){return f}});var n=i(3433),a=i(4165),r=i(5861),s=i(5671),o=i(3144),c=i(2304),u=i(5855),d=i(7622),l=i(2274),p=i(6311),f=(i(5231),function(){function e(t){var i=this;(0,s.Z)(this,e),(0,c.r)(this,t),this.stateUpdate=(0,c.c)(this,"dyteStateUpdate",7),this.updateStageRequests=function(){var e=(0,r.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(t){e.next=22;break}return e.next=3,null===(n=i.meeting.stage)||void 0===n?void 0:n.getAccessRequests();case 3:if(e.t2=r=e.sent,e.t1=null===e.t2,e.t1){e.next=7;break}e.t1=void 0===r;case 7:if(!e.t1){e.next=11;break}e.t3=void 0,e.next=12;break;case 11:e.t3=r.stageRequests;case 12:if(e.t4=s=e.t3,e.t0=null!==e.t4,!e.t0){e.next=16;break}e.t0=void 0!==s;case 16:if(!e.t0){e.next=20;break}e.t5=s,e.next=21;break;case 20:e.t5=[];case 21:t=e.t5;case 22:i.stageRequestedParticipants=t;case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.updateCanView=function(){i.canViewParticipants=(0,p.a)(i.meeting)},this.variant="button",this.meeting=void 0,this.states=void 0,this.size=void 0,this.iconPack=u.d,this.t=(0,d.u)(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.canViewParticipants=!1}return(0,o.Z)(e,[{key:"connectedCallback",value:function(){var e=this;this.meetingChanged(this.meeting),this.statesChanged(this.states),(0,l.o)("sidebar",(function(){return e.statesChanged()}))}},{key:"disconnectedCallback",value:function(){var e,t,i;null!=this.meeting&&(null===(t=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.peerRequestToJoinStateListener&&this.meeting.participants.joined.removeListener("peerRequestToJoinStage",this.peerRequestToJoinStateListener),this.peerAcceptedToJoinStageListener&&this.meeting.participants.joined.removeListener("peerAcceptedToJoinStage",this.peerAcceptedToJoinStageListener),this.peerRejectedToJoinStageListener&&this.meeting.participants.joined.removeListener("peerRejectedToJoinStage",this.peerRejectedToJoinStageListener),this.peerRejectedToJoinStageListener&&this.meeting.participants.joined.addListener("peerStoppedPresenting",this.peerRejectedToJoinStageListener),null===(i=this.meeting.stage)||void 0===i||i.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}},{key:"meetingChanged",value:function(e){var t,i=this;null!=e&&(this.canViewParticipants=(0,p.a)(e),null===(t=null===e||void 0===e?void 0:e.stage)||void 0===t||t.on("stageStatusUpdate",this.updateCanView),e.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=e.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=function(e){i.waitlistedParticipants.some((function(t){return t.id===e.id}))||(i.waitlistedParticipants=[].concat((0,n.Z)(i.waitlistedParticipants),[e]))},this.waitlistedParticipantLeftListener=function(e){i.waitlistedParticipants=i.waitlistedParticipants.filter((function(t){return t.id!==e.id}))},e.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),e.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.acceptPresentRequests&&("WEBINAR"===this.meeting.meta.viewType&&(this.peerRequestToJoinStateListener=function(t){var n=t.id;i.stageRequestedParticipants=i.stageRequestedParticipants.filter((function(e){return e.id!=n}));var a=e.participants.joined.get(n);void 0!==a&&i.stageRequestedParticipants.push(a)},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.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((function(e){return"REQUESTED_TO_JOIN_STAGE"===e.webinarStageStatus})),e.participants.joined.addListener("peerRequestToJoinStage",this.peerRequestToJoinStateListener),e.participants.joined.addListener("peerAcceptedToJoinStage",this.peerAcceptedToJoinStageListener),e.participants.joined.addListener("peerRejectedToJoinStage",this.peerRejectedToJoinStageListener),e.participants.joined.addListener("peerStoppedPresenting",this.peerRejectedToJoinStageListener)),"LIVESTREAM"===this.meeting.meta.viewT
1ype&&(this.updateStageRequests(),null===e||void 0===e||e.stage.on("stageAccessRequestUpdate",this.updateStageRequests))))}},{key:"statesChanged",value:function(e){var t=e||l.s;null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}},{key:"toggleParticipantsTab",value:function(){var e=this.states||l.s;this.participantsActive=!((null===e||void 0===e?void 0:e.activeSidebar)&&"participants"===(null===e||void 0===e?void 0:e.sidebar)),l.s.activeSidebar=this.participantsActive,l.s.sidebar=this.participantsActive?"participants":"none",this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":"none",activeMoreMenu:!1}),l.s.activeMoreMenu=!1}},{key:"render",value:function(){var e=this;if(this.canViewParticipants){var t=this.t("participants"),i=this.waitlistedParticipants.length+this.stageRequestedParticipants.length;return(0,c.h)(c.H,{title:t},0!==i&&!this.participantsActive&&(0,c.h)("div",{class:"waiting-participants-count",part:"waiting-participants-count"},(0,c.h)("span",null,i<=100?i:"99+")),(0,c.h)("dyte-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,t:this.t,class:{active:this.participantsActive},onClick:function(){return e.toggleParticipantsTab()},icon:this.iconPack.participants,label:t,variant:this.variant}))}}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"],states:["statesChanged"]}}}]),e}());f.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);position:relative;display:block}.waiting-participants-count{position:absolute;right:var(--dyte-space-3, 12px);box-sizing:border-box;padding:var(--dyte-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--dyte-space-5, 20px);min-width:var(--dyte-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']){display:flex;flex-direction:row-reverse;align-items:center}:host([variant='horizontal']) .waiting-participants-count{right:var(--dyte-space-4, 16px);top:auto}"},5231:function(e,t,i){i.d(t,{P:function(){return n},a:function(){return s},b:function(){return l},c:function(){return d},d:function(){return a},e:function(){return c},f:function(){return u},i:function(){return r},s:function(){return o}});var n,a,r=function(e){return!!o(e)&&("LIVESTREAM"===e.meta.viewType&&"ON_STAGE"!==e.stage.status)},s=function(e){var t;return!!o(e)&&("LIVESTREAM"===e.meta.viewType&&(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.canLivestream))},o=function(e){var t;return(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.isV2)&&(null===e||void 0===e?void 0:e.livestream)};!function(e){e.BUFFERING="Buffering",e.ENDED="Ended",e.IDLE="Idle",e.PLAYING="Playing",e.READY="Ready"}(n||(n={})),function(e){e.INITIALIZED="PlayerInitialized",e.QUALITY_CHANGED="PlayerQualityChanged",e.DURATION_CHANGED="PlayerDurationChanged",e.VOLUME_CHANGED="PlayerVolumeChanged",e.MUTED_CHANGED="PlayerMutedChanged",e.PLAYBACK_RATE_CHANGED="PlayerPlaybackRateChanged",e.REBUFFERING="PlayerRebuffering",e.AUDIO_BLOCKED="PlayerAudioBlocked",e.PLAYBACK_BLOCKED="PlayerPlaybackBlocked",e.ERROR="PlayerError",e.RECOVERABLE_ERROR="PlayerRecoverableError",e.ANALYTICS_EVENT="PlayerAnalyticsEvent",e.TIME_UPDATE="PlayerTimeUpdate",e.BUFFER_UPDATE="PlayerBufferUpdate",e.SEEK_COMPLETED="PlayerSeekCompleted",e.SESSION_DATA="PlayerSessionData",e.STATE_CHANGED="PlayerStateChanged",e.WORKER_ERROR="PlayerWorkerError",e.METADATA="PlayerMetadata",e.TEXT_CUE="PlayerTextCue",e.TEXT_METADATA_CUE="PlayerTextMetadataCue",e.AD_CUE="PlayerAdCue",e.STREAM_SOURCE_CUE="PlayerStreamSourceCue",e.NETWORK_UNAVAILABLE="PlayerNetworkUnavailable",e.SEGMENT_DISCONTINUITY="PlayerSegmentDiscontinuity",e.SEGMENT_METADATA="PlayerSegmentMetadata",e.PLAYER_METADATA="PlayerMetadata"}(a||(a={}));var c=[a.TIME_UPDATE,a.BUFFER_UPDATE,a.TEXT_METADATA_CUE,a.PLAYER_METADATA],u=[a.REBUFFERING,a.AUDIO_BLOCKED,a.PLAYBACK_BLOCKED,a.ERROR,a.RECOVERABLE_ERROR,a.WORKER_ERROR,a.NETWORK_UNAVAILABLE,a.ANALYTICS_EVENT,a.PLAYBACK_RATE_CHANGED,a.QUALITY_CHANGED,a.INITIALIZED],d=function(e){var t,i,n,a,r,s;return!!o(e)&&("ALLOWED"===(null===(i=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===i?void 0:i.canProduceAudio)||"ALLOWED"===(null===(a=null===(n=null===e||void 0===e?void 0:e.self)||void 0===n?void 0:n.permissions)||void 0===a?void 0:a.canProduceScreenshare)||"ALLOWED"===(null===(s=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceVideo))},l=function(e){var t,i,n,a,r,s,c,u;return!!o(e)&&("NOT_ALLOWED"!==(null===(i=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===i?void 0:i.canProduceAudio)||"NOT_ALLOWED"!==(null===(a=null===(n=null===e||void 0===e?void 0:e.self)||void 0===n?void 0:n.permissions)||void 0===a?void 0:a.canProduceScreenshare)||"
1NOT_ALLOWED"!==(null===(s=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceVideo)||(null===(u=null===(c=null===e||void 0===e?void 0:e.self)||void 0===c?void 0:c.permissions)||void 0===u?void 0:u.canLivestream))}},6311:function(e,t,i){i.d(t,{a:function(){return s},b:function(){return o},c:function(){return a},d:function(){return r}});var n=i(5231),a=function(e){if(e&&!e.chat)return!1;var t=null===e||void 0===e?void 0:e.self.config;if(t&&!t.controlBar.elements.chat)return!1;var i=e.self.permissions,n=i.chatPublic,a=i.chatPrivate;return n.canSend||n.text||n.files||a.canSend||a.canReceive||a.files||a.text},r=function(e){if(e&&!e.polls)return!1;var t=null===e||void 0===e?void 0:e.self.config;if(t&&!t.controlBar.elements.polls)return!1;var i=e.self.permissions.polls;return i.canCreate||i.canView||i.canVote},s=function(e){var t,i;if((0,n.s)(e)&&!(null===(t=e.self.permissions)||void 0===t?void 0:t.acceptPresentRequests))return!1;if(e&&!e.participants)return!1;if("LIVESTREAM"===e.meta.viewType)return e.self.permissions.acceptPresentRequests||"ON_STAGE"===(null===(i=null===e||void 0===e?void 0:e.stage)||void 0===i?void 0:i.status);var a=null===e||void 0===e?void 0:e.self.config;return!(a&&!a.controlBar.elements.participants)},o=function(e){if((0,n.i)(e))return!1;if(e&&!e.plugins)return!1;if("LIVESTREAM"===e.meta.viewType)return"ON_STAGE"===e.stage.status;var t=null===e||void 0===e?void 0:e.self.config;if(t&&!t.controlBar.elements.plugins)return!1;var i=e.self.permissions.plugins;return i.canClose||i.canStart}},2274:function(e,t,i){i.d(t,{o:function(){return l},s:function(){return d}});var n=i(7762),a=i(2304),r=function(e){return!("isConnected"in e)||e.isConnected},s=function(e,t){var i;return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];i&&clearTimeout(i),i=setTimeout((function(){i=0,e.apply(void 0,a)}),t)}}((function(e){var t,i=(0,n.Z)(e.keys());try{for(i.s();!(t=i.n()).done;){var a=t.value;e.set(a,e.get(a).filter(r))}}catch(s){i.e(s)}finally{i.f()}}),2e3),o=function(e){return"function"===typeof e?e():e},c=function(e,t){var i=e.indexOf(t);i>=0&&(e[i]=e[e.length-1],e.length--)},u=function(e,t){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return e!==t},i=o(e),n=new Map(Object.entries(null!==i&&void 0!==i?i:{})),a={dispose:[],get:[],set:[],reset:[]},r=function(){var t;n=new Map(Object.entries(null!==(t=o(e))&&void 0!==t?t:{})),a.reset.forEach((function(e){return e()}))},s=function(e){return a.get.forEach((function(t){return t(e)})),n.get(e)},u=function(e,i){var r=n.get(e);t(i,r,e)&&(n.set(e,i),a.set.forEach((function(t){return t(e,i,r)})))},d="undefined"===typeof Proxy?{}:new Proxy(i,{get:function(e,t){return s(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}},has:function(e,t){return n.has(t)},set:function(e,t,i){return u(t,i),!0}}),l=function(e,t){return a[e].push(t),function(){c(a[e],t)}};return{state:d,get:s,set:u,on:l,onChange:function(t,i){var n=l("set",(function(e,n){e===t&&i(n)})),a=l("reset",(function(){return i(o(e)[t])}));return function(){n(),a()}},use:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e}),[]);return function(){return n.forEach((function(e){return e()}))}},dispose:function(){a.dispose.forEach((function(e){return e()})),r()},reset:r,forceUpdate:function(e){var t=n.get(e);a.set.forEach((function(i){return i(e,t,t)}))}}}(e,t);return i.use(function(){if("function"!==typeof a.a)return{};var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var i=(0,a.a)();i&&function(e,t,i){var n=e.get(t);n?n.includes(i)||n.push(i):e.set(t,[i])}(e,t,i)},set:function(t){var i=e.get(t);i&&e.set(t,i.filter(a.f)),s(e)},reset:function(){e.forEach((function(e){return e.forEach(a.f)})),s(e)}}}()),i}({}),d=u.state,l=u.onChange}}]); 2//# sourceMappingURL=5181.852953b8.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.