1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8675],{8675:function(e,t,n){n.r(t),n.d(t,{dyte_chat_toggle:function(){return d}});var i=n(5671),a=n(3144),r=n(2304),o=n(5855),s=n(7622),u=n(2274),c=n(5542),l=n(6311),d=(n(5231),function(){function e(t){var n=this;(0,i.Z)(this,e),(0,r.r)(this,t),this.stateUpdate=(0,r.c)(this,"dyteStateUpdate",7),this.onChatUpdate=function(e){var t,i=e.action,a=e.message;n.chatActive||"add"===i&&a.userId!==(null===(t=n.meeting)||void 0===t?void 0:t.self.userId)&&(n.hasNewMessages=!0,n.unreadMessageCount+=1)},this.toggleChat=function(){var e=n.states||u.s;n.chatActive=!((null===e||void 0===e?void 0:e.activeSidebar)&&"chat"===(null===e||void 0===e?void 0:e.sidebar)),n.chatActive&&(n.unreadMessageCount=0,n.hasNewMessages=!1),u.s.activeSidebar=n.chatActive,u.s.activeMoreMenu=!1,u.s.sidebar=n.chatActive?"chat":"none",n.stateUpdate.emit({activeSidebar:n.chatActive,sidebar:n.chatActive?"chat":"none",activeMoreMenu:!1})},this.updateCanView=function(){n.canViewChat=(0,l.c)(n.meeting)},this.unreadMessageCount=0,this.variant="button",this.meeting=void 0,this.states=void 0,this.size=void 0,this.iconPack=o.d,this.t=(0,s.u)(),this.chatActive=!1,this.canViewChat=!1,this.hasNewMessages=!1}return(0,a.Z)(e,[{key:"connectedCallback",value:function(){var e=this;this.meetingChanged(this.meeting),this.statesChanged(this.states),(0,u.o)("sidebar",(function(){return e.statesChanged()}))}},{key:"disconnectedCallback",value:function(){var e,t,n,i;null===(t=null===(e=this.meeting)||void 0===e?void 0:e.chat)||void 0===t||t.removeListener("chatUpdate",this.onChatUpdate),null===(i=null===(n=this.meeting)||void 0===n?void 0:n.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView)}},{key:"meetingChanged",value:function(e){var t,n,i,a,r=this;null!=e&&((0,c.u)(e)&&(null===(t=e.chat)||void 0===t||t.getMessages((new Date).getTime(),1,!0).then((function(e){var t;(null===(t=null===e||void 0===e?void 0:e.messages)||void 0===t?void 0:t.length)&&(r.hasNewMessages=!0)}))),this.unreadMessageCount=(null===(n=e.chat)||void 0===n?void 0:n.messages.length)||0,null===(i=e.chat)||void 0===i||i.addListener("chatUpdate",this.onChatUpdate),this.canViewChat=(0,l.c)(e),null===(a=null===e||void 0===e?void 0:e.stage)||void 0===a||a.on("stageStatusUpdate",this.updateCanView))}},{key:"statesChanged",value:function(e){var t=e||u.s;null!=t&&(this.chatActive=!0===t.activeSidebar&&"chat"===t.sidebar)}},{key:"render",value:function(){if(this.canViewChat)return(0,r.h)(r.H,{title:this.t("chat")},(0,c.u)(this.meeting)?this.hasNewMessages&&(0,r.h)("div",{class:"unread-count-dot",part:"unread-count-dot"}):0!==this.unreadMessageCount&&!this.chatActive&&(0,r.h)("div",{class:"unread-count",part:"unread-count"},(0,r.h)("span",null,this.unreadMessageCount<=100?this.unreadMessageCount:"99+")),(0,r.h)("dyte-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,t:this.t,class:{active:this.chatActive},onClick:this.toggleChat,icon:this.iconPack.chat,label:this.t("chat"),variant:this.variant}))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"],states:["statesChanged"]}}}]),e}());d.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);position:relative;display:block}.unread-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}.unread-count-dot{position:absolute;right:var(--dyte-space-3, 12px);z-index:10;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));border-radius:50%;display:flex;height:var(--dyte-space-4, 16px);width:var(--dyte-space-4, 16px);align-items:center;justify-content:center}:host([variant='horizontal']){display:flex;flex-direction:row-reverse;align-items:center}:host([variant='horizontal']) .unread-count{right:var(--dyte-space-4, 16px);top:auto}"},5542:function(e,t,n){n.d(t,{F:function(){return a},i:function(){return r},u:function(){return o}});var i=n(5231),a={PLAY_PARTICIPANT_TILE_VIDEO_ON_PAUSE:"play_participant_tile_video_on_pause",DISABLE_EMOJI_PICKER:"disable_emoji_picker",FEAT_PAGINATED_CHAT:"feat_paginated_chat",LOG_PLAYING_FAILURES:"log_playing_failures"},r=function(e){return e.connectedMeetings.supportsConnectedMeetings},o=function(e){var t;return(0,i.s)(e)||(null===(t=null===e||void 0===e?void 0:e.__internals__)||void 0===t?void 0:t.features.hasFeature("feat_paginated_chat"))}},5231:function(e,t,n){n.d(t,{P:function(){return i},a:function(){return o},b:function(){return d},c:function(){return l},d:function(){return a},e:function(){return u},f:function(){return c},i:function(){return r},s:function(){return s}});var i,a,r=function(e){return!!s(e)&&("LIVESTREAM"===e.meta.viewT
1ype&&"ON_STAGE"!==e.stage.status)},o=function(e){var t;return!!s(e)&&("LIVESTREAM"===e.meta.viewType&&(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.canLivestream))},s=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"}(i||(i={})),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 u=[a.TIME_UPDATE,a.BUFFER_UPDATE,a.TEXT_METADATA_CUE,a.PLAYER_METADATA],c=[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],l=function(e){var t,n,i,a,r,o;return!!s(e)&&("ALLOWED"===(null===(n=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===n?void 0:n.canProduceAudio)||"ALLOWED"===(null===(a=null===(i=null===e||void 0===e?void 0:e.self)||void 0===i?void 0:i.permissions)||void 0===a?void 0:a.canProduceScreenshare)||"ALLOWED"===(null===(o=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===o?void 0:o.canProduceVideo))},d=function(e){var t,n,i,a,r,o,u,c;return!!s(e)&&("NOT_ALLOWED"!==(null===(n=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===n?void 0:n.canProduceAudio)||"NOT_ALLOWED"!==(null===(a=null===(i=null===e||void 0===e?void 0:e.self)||void 0===i?void 0:i.permissions)||void 0===a?void 0:a.canProduceScreenshare)||"NOT_ALLOWED"!==(null===(o=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===o?void 0:o.canProduceVideo)||(null===(c=null===(u=null===e||void 0===e?void 0:e.self)||void 0===u?void 0:u.permissions)||void 0===c?void 0:c.canLivestream))}},6311:function(e,t,n){n.d(t,{a:function(){return o},b:function(){return s},c:function(){return a},d:function(){return r}});var i=n(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 n=e.self.permissions,i=n.chatPublic,a=n.chatPrivate;return i.canSend||i.text||i.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 n=e.self.permissions.polls;return n.canCreate||n.canView||n.canVote},o=function(e){var t,n;if((0,i.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===(n=null===e||void 0===e?void 0:e.stage)||void 0===n?void 0:n.status);var a=null===e||void 0===e?void 0:e.self.config;return!(a&&!a.controlBar.elements.participants)},s=function(e){if((0,i.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 n=e.self.permissions.plugins;return n.canClose||n.canStart}},2274:function(e,t,n){n.d(t,{o:function(){return d},s:function(){return l}});var i=n(7762),a=n(2304),r=function(e){return!("isConnected"in e)||e.isConnected},o=function(e,t){var n;return function(){for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];n&&clearTimeout(n),n=setTimeout((function(){n=0,e.apply(void 0,a)}),t)}}((function(e){var t,n=(0,i.Z)(e.keys());try{for(n.s();!(t=n.n()).done;){var a=t.value;e.set(a,e.get(a).filter(r))}}catch(o){n.e(o)}finally{n.f()}}),2e3),s=function(e){return"function"===typeof e?e():e},u=function(e,t){var n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.length--)},c=function(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return e!==t},n=s(e),i=new Map(Object.entries(null!==n&&void 0!==n?n:{})),a={dispose:[],get:[],set:[],reset:[]},r=function(){var t;i=new Map(Object.entries(null!==(t=s(e))&&void 0!==t?t:{})),a.reset.forEach((function(e){return e()}))},o=function(e){return a.get.forEach((function(t){return t(e)})),i.get(e)},c=function(e,n){var r=i.get(e);t(n,r,e)&&(i.set(e,n),a.set.forEach((function(t){return t(e,n,r)})))},l="undefined"===typeof Proxy?{}:new Proxy(n,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(i.keys())},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}},has:function(e,t){return i.has(t)},set:function(e,t,n){return c(t,n),!0}}),d=function(e,t){return a[e].push(t),function(){u(a[e],t)}};return{state:l,get:o,set:c,on:d,onChange:function(t,n){var i=d("set",(function(e,i){e===t&&n(i)})),a=d("reset",(function(){return n(s(e)[t])}));return function(){i(),a()}},use:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.reduce((function(e,t){return t.set&&e.push(d("set",t.set)),t.get&&e.push(d("get",t.get)),t.reset&&e.push(d("reset",t.reset)),t.dispose&&e.push(d("dispose",t.dispose)),e}),[]);
1return function(){return i.forEach((function(e){return e()}))}},dispose:function(){a.dispose.forEach((function(e){return e()})),r()},reset:r,forceUpdate:function(e){var t=i.get(e);a.set.forEach((function(n){return n(e,t,t)}))}}}(e,t);return n.use(function(){if("function"!==typeof a.a)return{};var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var n=(0,a.a)();n&&function(e,t,n){var i=e.get(t);i?i.includes(n)||i.push(n):e.set(t,[n])}(e,t,n)},set:function(t){var n=e.get(t);n&&e.set(t,n.filter(a.f)),o(e)},reset:function(){e.forEach((function(e){return e.forEach(a.f)})),o(e)}}}()),n}({}),l=c.state,d=c.onChange}}]); 2//# sourceMappingURL=8675.5725a9a5.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.