1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[3459,6769],{6769:function(t,e,r){r.r(e),r.d(e,{dyte_recording_toggle:function(){return u}});var i=r(4165),n=r(5861),a=r(5671),s=r(3144),c=r(2304),o=r(5855),d=r(7622),u=function(){function t(e){var r=this;(0,a.Z)(this,t),(0,c.r)(this,e),this.dyteAPIError=(0,c.c)(this,"dyteAPIError",7),this.toggleRecording=(0,n.Z)((0,i.Z)().mark((function t(){var e,n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.isLoading()&&!r.disabled){t.next=2;break}return t.abrupt("return");case 2:t.t0=r.recordingState,t.next="IDLE"===t.t0?5:"RECORDING"===t.t0?15:("STARTING"===t.t0||t.t0,25);break;case 5:return t.prev=5,t.next=8,null===(e=r.meeting)||void 0===e?void 0:e.recording.start();case 8:return t.abrupt("return");case 11:t.prev=11,t.t1=t.catch(5),r.dyteAPIError.emit({trace:r.t("recording.start"),message:r.t("Error while starting recording.")});case 14:return t.abrupt("return");case 15:return t.prev=15,t.next=18,null===(n=r.meeting)||void 0===n?void 0:n.recording.stop();case 18:return t.abrupt("return");case 21:t.prev=21,t.t2=t.catch(15),r.dyteAPIError.emit({trace:r.t("recording.stop"),message:r.t("Error while stopping recording.")});case 24:case 25:return t.abrupt("return");case 26:case"end":return t.stop()}}),t,null,[[5,11],[15,21]])}))),this.isLoading=function(){return null==r.meeting||"STARTING"===r.recordingState||"STOPPING"===r.recordingState},this.variant="button",this.meeting=void 0,this.t=(0,d.u)(),this.iconPack=o.d,this.size=void 0,this.disabled=!1,this.recordingState=void 0,this.canRecord=!1}return(0,s.Z)(t,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"disconnectedCallback",value:function(){var t;this.recordingStateUpdateListener&&(null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.recordingStateUpdateListener))}},{key:"meetingChanged",value:function(t){var e=this;null!=t&&(this.recordingState=t.recording.recordingState,this.canRecord=!0===t.self.permissions.canRecord,this.recordingStateUpdateListener=function(t){e.recordingState=t},t.recording.addListener("recordingUpdate",this.recordingStateUpdateListener))}},{key:"getLabel",value:function(){switch(this.recordingState){case"IDLE":return this.t("Record");case"RECORDING":return this.t("Stop Recording");case"STARTING":return this.t("Starting");case"STOPPING":return this.t("Stopping");default:return this.t("Loading")}}},{key:"getIcon",value:function(){switch(this.recordingState){case"IDLE":case"STARTING":case"STOPPING":default:return this.iconPack.recording;case"RECORDING":return this.iconPack.stop_recording}}},{key:"render",value:function(){if(this.canRecord)return(0,c.h)(c.H,{title:this.t("Record")},(0,c.h)("dyte-controlbar-button",{size:this.size,iconPack:this.iconPack,t:this.t,onClick:this.toggleRecording,icon:this.getIcon(),isLoading:this.isLoading(),label:this.t(this.getLabel()),variant:this.variant,disabled:this.disabled}))}}],[{key:"watchers",get:function(){return{meeting:["meetingChanged"]}}}]),t}();u.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);display:block}"}}]); 2//# sourceMappingURL=3459.7c24fafa.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.