PageSourceSearch

https://dyte-proc.netlify.app/static/js/1678.1e3ab9e9.chunk.js

js dyte-proc.netlify.app collected 2026-10-03 10:40:34 UTC 8,202 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1678,4880],{1678:function(e,t,i){i.r(t),i.d(t,{dyte_camera_toggle:function(){return u}});var n=i(5671),s=i(3144),o=i(2304),r=i(5855),a=i(7622),d=i(2274),u=function(){function e(t){var i=this;(0,n.Z)(this,e),(0,o.r)(this,t),this.stateUpdate=(0,o.c)(this,"dyteStateUpdate",7),this.videoUpdateListener=function(e){var t=e.videoEnabled;i.videoEnabled=t},this.selfJoinStateListener=function(){i.updateCanProduce(i.meeting)},this.selfStateLeftListener=function(){i.canProduceVideo=!1},this.mediaPermissionUpdateListener=function(e){var t=e.kind,n=e.message;"video"===t&&(i.cameraPermission=n)},this.toggleCamera=function(){var e,t,n,s,o,r,a,u,l,c,f,h;if(null===(e=i.meeting)||void 0===e||e.__internals__.logger.info("dyteCameraToggle::toggleCamera",{media:{video:{enabled:Boolean(null===(n=null===(t=i.meeting)||void 0===t?void 0:t.self)||void 0===n?void 0:n.videoEnabled),permission:i.cameraPermission,canProduce:null===(r=null===(o=null===(s=i.meeting)||void 0===s?void 0:s.self)||void 0===o?void 0:o.permissions)||void 0===r?void 0:r.canProduceVideo}},webinar:{stageStatus:null===(u=null===(a=i.meeting)||void 0===a?void 0:a.self)||void 0===u?void 0:u.webinarStageStatus},livestream:{stageStatus:null===(c=null===(l=i.meeting)||void 0===l?void 0:l.stage)||void 0===c?void 0:c.status},moduleExists:{self:Boolean(null===(f=i.meeting)||void 0===f?void 0:f.self)}}),i.hasPermissionError()){var v={enabled:!0,kind:"video"};return i.stateUpdate.emit({activePermissionsMessage:v}),d.s.activePermissionsMessage=v,!1}var m=null===(h=i.meeting)||void 0===h?void 0:h.self;null!=m&&i.canProduceVideo&&(m.videoEnabled?m.disableVideo():m.enableVideo())},this.variant="button",this.meeting=void 0,this.size=void 0,this.iconPack=r.d,this.t=(0,a.u)(),this.videoEnabled=!1,this.canProduceVideo=!1,this.cameraPermission="NOT_REQUESTED"}return(0,s.Z)(e,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"disconnectedCallback",value:function(){var e,t,i,n,s,o,r,a,d;null===(e=this.meeting)||void 0===e||e.self.removeListener("videoUpdate",this.videoUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("joinStageRequestAccepted",this.selfJoinStateListener),null===(n=this.meeting)||void 0===n||n.self.removeListener("joinStageRequestRejected",this.selfJoinStateListener),null===(s=this.meeting)||void 0===s||s.self.removeListener("stageJoined",this.selfJoinStateListener),null===(o=this.meeting)||void 0===o||o.self.removeListener("stageLeft",this.selfStateLeftListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("removedFromStage",this.selfJoinStateListener),null===(d=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===d||d.removeListener("stageStatusUpdate",this.selfJoinStateListener)}},{key:"meetingChanged",value:function(e){if(null!=e){var t=e.self,i=e.stage;this.updateCanProduce(e),this.cameraPermission=t.mediaPermissions.video||"NOT_REQUESTED",this.videoEnabled=t.videoEnabled,t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.addListener("joinStageRequestAccepted",this.selfJoinStateListener),t.addListener("joinStageRequestRejected",this.selfJoinStateListener),t.addListener("stageJoined",this.selfJoinStateListener),t.addListener("stageLeft",this.selfStateLeftListener),t.addListener("removedFromStage",this.selfJoinStateListener),null===i||void 0===i||i.addListener("stageStatusUpdate",this.selfJoinStateListener)}}},{key:"updateCanProduce",value:function(e){var t=e.self,i=e.meta,n=e.stage,s="ALLOWED"===t.permissions.canProduceVideo,o="WEBINAR"===i.viewType,r="LIVESTREAM"===i.viewType;if(this.canProduceVideo=!1,s&&!r)this.canProduceVideo=!0;else if(o||r){s&&"OFF_STAGE"!==n.status&&"REQUESTED_TO_JOIN_STAGE"!==n.status&&(this.canProduceVideo=!0),"CAN_REQUEST"===t.permissions.canProduceVideo&&(o&&("ON_STAGE"===t.webinarStageStatus||"ACCEPTED_TO_JOIN_STAGE"===t.webinarStageStatus)||r&&("ON_STAGE"===n.status||"ACCEPTED_TO_JOIN_STAGE"===n.status))&&(this.canProduceVideo=!0)}}},{key:"hasPermissionError",value:function(){return"DENIED"===this.cameraPermission||"SYSTEM_DENIED"===this.cameraPermission}},{key:"getState",value:function(){var e="",t="",i={},n=this.hasPermissionError(),s="COULD_NOT_START"===this.cameraPermission;return this.videoEnabled&&!n?(e=this.t("video_on"),t=this.iconPack.video_on):(e=this.t("video_off"),t=this.iconPack.video_off,i["red-icon"]=!0),{tooltipLabel:s?this.t("Unable to capture video"):"SYSTEM_DENIED"===this.cameraPermission?this.t("perm_sys_denied"):"DENIED"===this.cameraPermission?this.t("perm_browser_denied"):this.videoEnabled?this.t("Disable Camera"):this.t("Enable Camera"),label:e,icon:t,classList:i,showWarning:n||s,disable:n}}},{key:"render",value:function(){if(!this.canProduceVideo)return null;var e=this.getState(),t=e.tooltipLabel,i=e.label,n=e.icon,s=e.classList,r=e.showWarning,a=e.disable;return(0,o.h)(o.H,{title:i},(0,o.h)("dyte-tooltip",{kind:"block",label:t,part:"tooltip",iconPack:this.iconPack,t:this.t},(0,o.h)("dyte-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,t:this.t,class:s,variant:this.variant,label:i,icon:n,onClick:this.toggleCamera,showWarning:r,disabled:a})))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"]}}}]),e}();u.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);display:block}"},2274:function(e,t,i){i.d(t,{o:function(){return c},s:function(){return l}});var n=i(7762),s=i(2304),o=function(e){return!("isConnected"in e)||e.isConnected},r=function(e,t){var i;return function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];i&&clearTimeout(i),i=setTimeout((function(){i=0,e.apply(void 0,s)}),t)}}((function(e){var t,i=(0,n.Z)(e.keys());try{for(i.s();!(t=i.n()).done;){var s=t.value;e.set(s,e.get(s).filter(o))}}catch(r){i.e(r)}finally{i.f()}}),2e3),a=function(e){return"function"===typeof e?e():e},d=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=a(e),n=new Map(Object.entries(null!==i&&void 0!==i?i:{})),s={dispose:[],get:[],set:[],reset:[]},o=function(){var t;n=new Map(Object.entries(null!==(t=a(e))&&void 0!==t?t:{})),s.reset.forEach((function(e){return e()}))},r=function(e){return s.get.forEach((function(t){return t(e)})),n.get(e)},u=function(e,i){var o=n.get(e);t(i,o,e)&&(n.set(e,i),s.set.forEach((function(t){return t(e,i,o)})))},l="undefined"===typeof Proxy?{}:new Proxy(i,{get:function(e,t){return r(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}}),c=function(e,t){return s[e].push(t),function(){d(s[e],t)}};return{state:l,get:r,set:u,on:c,onChange:function(t,i){var n=c("set",(function(e,n){e===t&&i(n)})),s=c("reset",(function(){return i(a(e)[t])}));return function(){n(),s()}},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(c("set",t.set)),t.get&&e.push(c("get",t.get)),t.reset&&e.push(c("reset",t.reset)),t.dispose&&e.push(c("dispose",t.dispose)),e}),[]);
1return function(){return n.forEach((function(e){return e()}))}},dispose:function(){s.dispose.forEach((function(e){return e()})),o()},reset:o,forceUpdate:function(e){var t=n.get(e);s.set.forEach((function(i){return i(e,t,t)}))}}}(e,t);return i.use(function(){if("function"!==typeof s.a)return{};var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var i=(0,s.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(s.f)),r(e)},reset:function(){e.forEach((function(e){return e.forEach(s.f)})),r(e)}}}()),i}({}),l=u.state,c=u.onChange}}]);
2//# sourceMappingURL=1678.1e3ab9e9.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.