1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1231,1366],{41366:function(e,t,r){r.d(t,{S:function(){return s}});var i=r(41699),n=r(29831);function s(){return function(e,t){const{connectedCallback:r,disconnectedCallback:s}=e;e.connectedCallback=function(){const e=(0,i.g)(this),s=e[t];if(e[`_rtkStoreToCleanup-${t}`]=n.u,!s){const r=n.u.state[t];e[t]=r,(0,n.J)(t,e,n.u)}const o=r=>{const i=e._storeRequestId;if(r.detail.requestId===i){const i=r.detail.store.state[t];e.componentOnReady().then((()=>{e[t]=i})),(0,n.J)(t,e,r.detail.store),e[`_rtkStoreToCleanup-${t}`]=r.detail.store,(0,n.K)(t,e,n.u)}};e[`_rtkStoreResponseListener-${t}`]=o,document.addEventListener("rtkProvideStore",o);const a=`${e.tagName}-${Date.now()}-${Math.random()}`;e._storeRequestId=a;const c=new CustomEvent("rtkRequestStore",{detail:{element:e,propName:t,requestId:a},bubbles:!0,composed:!0});e.dispatchEvent(c);const d=()=>{const r=`${e.tagName}-${Date.now()}-${Math.random().toString(36)}`;e._storeRequestId=r;const i=new CustomEvent("rtkRequestStore",{detail:{element:e,propName:t,requestId:r},bubbles:!0,composed:!0});e.dispatchEvent(i)};return e[`_rtkStoreReadyListener-${t}`]=d,document.addEventListener("rtkPeerStoreReady",d),null===r||void 0===r?void 0:r.call(this)},e.disconnectedCallback=function(){const e=(0,i.g)(this);(0,n.K)(t,e,e[`_rtkStoreToCleanup-${t}`]);const r=e[`_rtkStoreResponseListener-${t}`];r&&(document.removeEventListener("rtkProvideStore",r),delete e[`_rtkStoreResponseListener-${t}`]);const o=e[`_rtkStoreReadyListener-${t}`];return o&&(document.removeEventListener("rtkPeerStoreReady",o),delete e[`_rtkStoreReadyListener-${t}`]),null===s||void 0===s?void 0:s.call(this)}}}},61231:function(e,t,r){r.r(t),r.d(t,{rtk_recording_toggle:function(){return a}});var i=r(41699),n=r(29831),s=r(41366);var o=function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};const a=class{constructor(e){(0,i.r)(this,e),this.apiError=(0,i.d)(this,"rtkApiError",7),this.variant="button",this.t=(0,n.i)(),this.iconPack=n.e,this.disabled=!1,this.canRecord=!1,this.permissionsUpdateListener=()=>{this.canRecord=!0===this.meeting.self.permissions.canRecord},this.toggleRecording=async()=>{var e,t,r;if(!this.isLoading()&&!this.disabled)switch(this.recordingState){case"IDLE":try{return void(await(null===(e=this.meeting)||void 0===e?void 0:e.recording.start()))}catch(i){this.apiError.emit({trace:this.t("recording.start"),message:this.t("recording.error.start")})}return;case"RECORDING":try{return void(await(null===(t=this.meeting)||void 0===t?void 0:t.recording.stop()))}catch(n){this.apiError.emit({trace:this.t("recording.stop"),message:this.t("recording.error.stop")})}return;case"PAUSED":try{return void(await(null===(r=this.meeting)||void 0===r?void 0:r.recording.resume()))}catch(s){this.apiError.emit({trace:this.t("recording.resume"),message:this.t("recording.error.resume")})}return;default:return}},this.isLoading=()=>!this.meeting||"STARTING"===this.recordingState||"STOPPING"===this.recordingState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var e,t;this.recordingStateUpdateListener&&(null===(e=this.meeting)||void 0===e||e.recording.removeListener("recordingUpdate",this.recordingStateUpdateListener)),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(e){null!=e&&(this.recordingState=e.recording.recordingState,this.permissionsUpdateListener(),this.recordingStateUpdateListener=e=>{this.recordingState=e},e.recording.addListener("recordingUpdate",this.recordingStateUpdateListener),e.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}getLabel(){switch(this.recordingState){case"IDLE":return"recording.idle";case"RECORDING":return"recording.stop";case"STARTING":return"recording.starting";case"STOPPING":return"recording.stopping";case"PAUSED":return"recording.resume";default:return"recording.loading"}}getIcon(){switch(this.recordingState){case"IDLE":case"STARTING":case"STOPPING":default:return this.iconPack.recording;case"RECORDING":return this.iconPack.stop_recording}}render(){return this.meeting?this.canRecord?(0,i.h)(i.a,{title:this.t("RECORDING"===this.recordingState?"recording.stop":"recording.idle")},(0,i.h)("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:this.toggleRecording,icon:this.getIcon(),isLoading:this.isLoading(),label:this.t(this.getLabel()),variant:this.variant,disabled:this.disabled})):void 0:null}static get watchers(){return{meeting:["meetingChanged"]}}};o([(0,s.S)()],a.prototype,"meeting",void 0),o([(0,s.S)()],a.prototype,"t",void 0),o([(0,s.S)()],a.prototype,"iconPack",void 0),a.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}"}}]);
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.