1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[5796,2742],{2742:function(e,i,n){n.r(i),n.d(i,{dyte_viewer_count:function(){return s}});var t=n(5671),r=n(3144),o=n(2304),a=n(5855),l=n(7622),d=n(5231),s=function(){function e(i){var n=this;(0,t.Z)(this,e),(0,o.r)(this,i),this.disconnectMeeting=function(e){var i;null!=e&&null!=n.countListener&&(null===(i=e.livestream)||void 0===i||i.removeListener("viewerCountUpdate",n.countListener))},this.meeting=void 0,this.iconPack=a.d,this.t=(0,l.u)(),this.viewerCount=0}return(0,r.Z)(e,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"disconnectedCallback",value:function(){this.disconnectMeeting(this.meeting)}},{key:"meetingChanged",value:function(e,i){var n,t=this;this.disconnectMeeting(i),null!=e&&(this.countListener=function(){var i;t.viewerCount=null===(i=e.livestream)||void 0===i?void 0:i.viewerCount},this.countListener(),null===(n=e.livestream)||void 0===n||n.addListener("viewerCountUpdate",this.countListener))}},{key:"render",value:function(){return(0,d.s)(this.meeting)?(0,o.h)(o.H,{tabIndex:0,role:"log","aria-label":"".concat(this.viewerCount," ").concat(this.t("viewers"))},(0,o.h)("dyte-icon",{icon:this.iconPack.viewers,tabIndex:-1,"aria-hidden":!0,part:"icon",iconPack:this.iconPack,t:this.t}),this.viewerCount," ",this.t("viewers")):null}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"]}}}]),e}();s.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);margin-left:var(--dyte-space-2, 8px);margin-right:var(--dyte-space-2, 8px);display:inline-flex;height:var(--dyte-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}:host([size='sm']){margin-left:var(--dyte-space-1, 4px);margin-right:var(--dyte-space-1, 4px);font-size:12px}dyte-icon{margin-right:var(--dyte-space-1, 4px);height:var(--dyte-space-5, 20px);width:var(--dyte-space-5, 20px)}:host([size='sm']) dyte-icon{height:var(--dyte-space-4, 16px);width:var(--dyte-space-4, 16px)}"},5231:function(e,i,n){n.d(i,{P:function(){return t},a:function(){return a},b:function(){return c},c:function(){return u},d:function(){return r},e:function(){return d},f:function(){return s},i:function(){return o},s:function(){return l}});var t,r,o=function(e){return!!l(e)&&("LIVESTREAM"===e.meta.viewType&&"ON_STAGE"!==e.stage.status)},a=function(e){var i;return!!l(e)&&("LIVESTREAM"===e.meta.viewType&&(null===(i=null===e||void 0===e?void 0:e.self)||void 0===i?void 0:i.permissions.canLivestream))},l=function(e){var i;return(null===(i=null===e||void 0===e?void 0:e.self)||void 0===i?void 0:i.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"}(t||(t={})),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"}(r||(r={}));var d=[r.TIME_UPDATE,r.BUFFER_UPDATE,r.TEXT_METADATA_CUE,r.PLAYER_METADATA],s=[r.REBUFFERING,r.AUDIO_BLOCKED,r.PLAYBACK_BLOCKED,r.ERROR,r.RECOVERABLE_ERROR,r.WORKER_ERROR,r.NETWORK_UNAVAILABLE,r.ANALYTICS_EVENT,r.PLAYBACK_RATE_CHANGED,r.QUALITY_CHANGED,r.INITIALIZED],u=function(e){var i,n,t,r,o,a;return!!l(e)&&("ALLOWED"===(null===(n=null===(i=null===e||void 0===e?void 0:e.self)||void 0===i?void 0:i.permissions)||void 0===n?void 0:n.canProduceAudio)||"ALLOWED"===(null===(r=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===r?void 0:r.canProduceScreenshare)||"ALLOWED"===(null===(a=null===(o=null===e||void 0===e?void 0:e.self)||void 0===o?void 0:o.permissions)||void 0===a?void 0:a.canProduceVideo))},c=function(e){var i,n,t,r,o,a,d,s;return!!l(e)&&("NOT_ALLOWED"!==(null===(n=null===(i=null===e||void 0===e?void 0:e.self)||void 0===i?void 0:i.permissions)||void 0===n?void 0:n.canProduceAudio)||"NOT_ALLOWED"!==(null===(r=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===r?void 0:r.canProduceScreenshare)||"
1NOT_ALLOWED"!==(null===(a=null===(o=null===e||void 0===e?void 0:e.self)||void 0===o?void 0:o.permissions)||void 0===a?void 0:a.canProduceVideo)||(null===(s=null===(d=null===e||void 0===e?void 0:e.self)||void 0===d?void 0:d.permissions)||void 0===s?void 0:s.canLivestream))}}}]); 2//# sourceMappingURL=5796.437b8346.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.