PageSourceSearch

https://dyte-audio.netlify.app/static/js/1817.09211330.chunk.js

js dyte-audio.netlify.app collected 2026-10-03 10:41:38 UTC 12,888 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1817],{1817:function(e,t,i){i.r(t),i.d(t,{dyte_chat:function(){return p}});var n=i(3433),a=i(4942),s=i(5671),r=i(3144),o=i(2304),d=i(5855),c=i(7622),l=i(9666),u=i(4153),h=i(2725),v=i(5542),p=(i(4130),i(5231),function(){function e(t){var i=this;(0,s.Z)(this,e),(0,o.r)(this,t),this.disconnectMeeting=function(e){var t;i.isPrivateChatSupported()&&(null===e||void 0===e||e.participants.joined.removeListener("participantsUpdate",i.onParticipantUpdate),null===e||void 0===e||e.participants.joined.removeListener("participantLeft",i.onParticipantUpdate)),null===(t=null===e||void 0===e?void 0:e.chat)||void 0===t||t.removeListener("chatUpdate",i.chatUpdateListener)},this.onParticipantUpdate=function(){i.participants=i.meeting.participants.joined.toArray().filter((function(e){return 0===i.privatePresetFilter.length||i.privatePresetFilter.includes(e.presetName)})),i.selectedParticipant&&!i.participants.includes(i.selectedParticipant)&&(i.selectedParticipant=null,i.chatRecipientId=i.selectedGroup="everyone")},this.usePaginatedChat=function(){return(0,v.u)(i.meeting)},this.updateUnreadCountGroups=function(e){i.unreadCountGroups=Object.assign(Object.assign({},i.unreadCountGroups),e)},this.isPrivateChatSupported=function(){var e,t,n;return i.canPrivateMessage&&!i.disablePrivateChat&&"socket-service"===(null===(n=null===(t=null===(e=i.meeting)||void 0===e?void 0:e.__internals__)||void 0===t?void 0:t.features)||void 0===n?void 0:n.getFeatureValue("chat_socket_server"))},this.updateRecipients=function(e){if("string"===typeof e.detail)i.chatRecipientId="everyone",i.selectedParticipant=null;else{var t=e.detail.userId;i.chatRecipientId=t,i.selectedParticipant=i.participants.find((function(e){return e.userId===t}))}if("everyone"!==i.chatRecipientId){var n=[i.chatRecipientId,i.meeting.self.userId],s=(0,l.g)(n);i.selectedGroup=s}else i.selectedGroup="everyone";i.updateUnreadCountGroups((0,a.Z)({},i.selectedGroup,0))},this.isTextMessagingAllowed=function(){return"everyone"===i.chatRecipientId?i.canSend&&i.canSendTextMessage:i.canPrivateMessage&&i.canSendPrivateTexts},this.isFileMessagingAllowed=function(){return"everyone"===i.chatRecipientId?i.canSend&&i.canSendFiles:i.canPrivateMessage&&i.canSendPrivateFiles},this.meeting=void 0,this.config=h.d,this.size=void 0,this.iconPack=d.d,this.t=(0,c.u)(),this.disablePrivateChat=!1,this.privatePresetFilter=[],this.unreadCountGroups={},this.chatGroups={everyone:[]},this.selectedGroup="everyone",this.now=new Date,this.dropzoneActivated=!1,this.showLatestMessageButton=!1,this.canSend=!1,this.canSendTextMessage=!1,this.canSendFiles=!1,this.canPrivateMessage=!1,this.canSendPrivateTexts=!1,this.canSendPrivateFiles=!1,this.emojiPickerEnabled=!1,this.chatRecipientId="everyone",this.participants=[],this.selectedParticipant=void 0}return(0,r.Z)(e,[{key:"connectedCallback",value:function(){var e=this;this.meetingChanged(this.meeting),this.meeting&&!this.meeting.chat||this.isFileMessagingAllowed()&&(this.host.addEventListener("dragover",(function(t){t.preventDefault(),e.dropzoneActivated=!0})),this.host.addEventListener("dragleave",(function(){e.dropzoneActivated=!1})),this.host.addEventListener("drop",(function(t){t.preventDefault(),e.dropzoneActivated=!1,(0,l.h)(t.dataTransfer.items,(function(t,i){var n,a,s,r;switch(t){case"image":e.isFileMessagingAllowed()&&(null===(a=null===(n=e.meeting)||void 0===n?void 0:n.chat)||void 0===a||a.sendImageMessage(i,e.getRecipientPeerIds()));break;case"file":e.isFileMessagingAllowed()&&(null===(r=null===(s=e.meeting)||void 0===s?void 0:s.chat)||void 0===r||r.sendFileMessage(i,e.getRecipientPeerIds()))}}))})))}},{key:"disconnectedCallback",value:function(){this.disconnectMeeting(this.meeting)}},{key:"meetingChanged",value:function(e,t){var i,n,a,s,r,o=this;void 0!=t&&this.disconnectMeeting(t),e&&!e.chat||null!=e&&(this.canSend=e.self.permissions.chatPublic.canSend,this.canSendTextMessage=e.self.permissions.chatPublic.text,this.canSendFiles=e.self.permissions.chatPublic.files,this.canPrivateMessage=(null===(i=e.self.permissions.chatPrivate)||void 0===i?void 0:i.canSend)||(null===(n=e.self.permissions.chatPrivate)||void 0===n?void 0:n.canReceive),this.canSendPrivateTexts=null===(a=e.self.permissions.chatPrivate)||void 0===a?void 0:a.text,this.canSendPrivateFiles=null===(s=e.self.permissions.chatPrivate)||void 0===s?void 0:s.files,this.initializeChatGroups(),this.chatGroups=Object.assign({},this.chatGroups),this.chatUpdateListener=function(e){var t=e.message;o.addToChatGroup(t),o.chatGroups=Object.assign({},o.chatGroups)},this.onParticipantUpdate(),this.usePaginatedChat()||null===(r=e.chat)||void 0===r||r.addListener("chatUpdate",this.chatUpdateListener),this.isPrivateChatSupported()&&(e.participants.joined.addListener("participantJoined",this.onParticipantUpdate),e.participants.joined.addListener("participantLeft",this.onParticipantUpdate)))}},{key:"chatGroupsChanged",value:function(e){var t,i,n=this;if(this.isPrivateChatSupported()){var a={},s=function(){var s=null!==(t=u.c[r])&&void 0!==t?t:0;a[r]=e[r].filter((function(e){return"chat"==e.type&&e.message.time>s&&e.message.userId!==n.meeting.self.userId})).length,(r===(0,l.g)([n.meeting.self.userId,null===(i=n.selectedParticipant)||void 0===i?void 0:i.userId])||"everyone"===r&&null===n.selectedParticipant)&&(a[r]=0,u.c[r]=new Date)};for(var r in e)s();this.updateUnreadCountGroups(a)}}},{key:"initializeChatGroups",value:function(){var e,t=this;
1null===(e=this.meeting.chat)||void 0===e||e.messages.forEach((function(e){t.addToChatGroup(e)}))}},{key:"addToChatGroup",value:function(e){var t,i=(0,l.p)(e),a="everyone";if((null===(t=i.targetUserIds)||void 0===t?void 0:t.length)>0){var s=new Set([i.userId].concat((0,n.Z)(i.targetUserIds)));a=(0,l.g)(Array.from(s))}void 0===this.chatGroups[a]&&(this.chatGroups[a]=[]),this.chatGroups[a]=[].concat((0,n.Z)(this.chatGroups[a]),[{type:"chat",message:i}])}},{key:"getRecipientPeerIds",value:function(){var e=[];return"everyone"!==this.chatRecipientId&&(e=[this.selectedParticipant.id]),e}},{key:"render",value:function(){var e,t,i,n,a=this,s={iconPack:this.iconPack,t:this.t,size:this.size},r=null===(e=this.meeting)||void 0===e?void 0:e.self.userId,d=this.chatGroups[this.selectedGroup]||[];return(0,o.h)(o.H,null,this.isFileMessagingAllowed()&&(0,o.h)("div",{id:"dropzone",class:{active:this.dropzoneActivated},part:"dropzone"},(0,o.h)("dyte-icon",{icon:this.iconPack.attach,iconPack:this.iconPack,t:this.t}),(0,o.h)("p",null,this.t("Drop files/images to send"))),this.isPrivateChatSupported()&&(0,o.h)("dyte-chat-selector-ui",Object.assign({selfUserId:r,groups:this.participants,selectedGroupId:null===(t=this.selectedParticipant)||void 0===t?void 0:t.userId,unreadCounts:this.unreadCountGroups,onDyteChatGroupChanged:this.updateRecipients},s)),this.usePaginatedChat()?(0,o.h)("dyte-chat-messages-ui-paginated",{meeting:this.meeting,size:this.size,iconPack:this.iconPack,t:this.t}):(0,o.h)("dyte-chat-messages-ui",Object.assign({messages:d,selfUserId:r,selectedGroup:this.selectedGroup},s)),(0,o.h)("dyte-chat-composer-ui",Object.assign({canSendTextMessage:this.isTextMessagingAllowed(),canSendFiles:this.isFileMessagingAllowed(),disableEmojiPicker:!!(null===(n=null===(i=this.meeting)||void 0===i?void 0:i.__internals__)||void 0===n?void 0:n.features.hasFeature(v.F.DISABLE_EMOJI_PICKER)),onDyteNewMessage:function(e){var t,i,n,s,r,o,d=e.detail;switch(d.type){case"text":null===(i=null===(t=a.meeting)||void 0===t?void 0:t.chat)||void 0===i||i.sendTextMessage(d.message,a.getRecipientPeerIds());break;case"image":null===(s=null===(n=a.meeting)||void 0===n?void 0:n.chat)||void 0===s||s.sendImageMessage(d.file,a.getRecipientPeerIds());break;case"file":null===(o=null===(r=a.meeting)||void 0===r?void 0:r.chat)||void 0===o||o.sendFileMessage(d.file,a.getRecipientPeerIds())}}},s),(0,o.h)("slot",{name:"chat-addon",slot:"chat-addon"})))}},{key:"host",get:function(){return(0,o.g)(this)}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"],chatGroups:["chatGroupsChanged"]}}}]),e}());p.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);display:flex;height:100%;width:100%;flex-direction:column;font-size:14px;color:rgb(var(--dyte-colors-text-1000, 255 255 255))}h3{margin:var(--dyte-space-0, 0px);display:flex;height:var(--dyte-space-12, 48px);align-items:center;justify-content:center;font-size:16px;font-weight:400;color:rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));text-align:center}#dropzone{position:absolute;top:var(--dyte-space-0, 0px);right:var(--dyte-space-0, 0px);bottom:var(--dyte-space-0, 0px);left:var(--dyte-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--dyte-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;-webkit-animation:0.2s slide-up ease-in;animation:0.2s slide-up ease-in}dyte-chat-messages-ui{flex:1 0 0}"},5542:function(e,t,i){i.d(t,{F:function(){return a},i:function(){return s},u:function(){return r}});var n=i(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"},s=function(e){return e.connectedMeetings.supportsConnectedMeetings},r=function(e){var t;return(0,n.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,i){i.d(t,{P:function(){return n},a:function(){return r},b:function(){return u},c:function(){return l},d:function(){return a},e:function(){return d},f:function(){return c},i:function(){return s},s:function(){return o}});var n,a,s=function(e){return!!o(e)&&("LIVESTREAM"===e.meta.viewT
1ype&&"ON_STAGE"!==e.stage.status)},r=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 d=[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,i,n,a,s,r;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===(r=null===(s=null===e||void 0===e?void 0:e.self)||void 0===s?void 0:s.permissions)||void 0===r?void 0:r.canProduceVideo))},u=function(e){var t,i,n,a,s,r,d,c;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)||"NOT_ALLOWED"!==(null===(r=null===(s=null===e||void 0===e?void 0:e.self)||void 0===s?void 0:s.permissions)||void 0===r?void 0:r.canProduceVideo)||(null===(c=null===(d=null===e||void 0===e?void 0:e.self)||void 0===d?void 0:d.permissions)||void 0===c?void 0:c.canLivestream))}}}]);
2//# sourceMappingURL=1817.09211330.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.