1var W=Object.defineProperty,H=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var x=(e,r,t)=>r in e?W(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,m=(e,r)=>{for(var t in r||(r={}))Z.call(r,t)&&x(e,t,r[t]);if(E)for(var t of E(r))Y.call(r,t)&&x(e,t,r[t]);return e},k=(e,r)=>H(e,B(r));import{C as g,V as P,n as w,p as _,h as N,aO as v,a as G,W as j,U as J}from"./index.a83a0d04.js";import{E as K}from"./ElectronMovable.57500b99.js";import{S as Q,R as X,M as ee,A as te,L as re,a as se}from"./LiveUploader.e556851b.js";import{F as ne}from"./FileType.6d1211ee.js";import{R as z}from"./Uploader.b4029483.js";import{L as oe}from"./LocalFileDataStore.3a75b16c.js";import{C as ae,_ as ie}from"./RecorderStateWriter.5b5192c2.js";import{S as ce}from"./ScreenStreamer.de30c1da.js";import{E as le}from"./ElectronOptionsService.c33673d8.js";import{_ as de}from"./iconNotice.3c452d38.js";import{_ as A,b as ue,a as T}from"./IconRecordPause.f1fbbbde.js";import"./berrycast-sdk-web-ui.esm.6651bd41.js";import"./RecordCountDownOptions.ad021e9c.js";import"./RecordService.46238f6f.js";import"./datetime.520a7f7e.js";import"./UserService.90a66ab4.js";import"./ConversationService.f0bdeae5.js";var pe=Object.defineProperty,he=Object.getOwnPropertyDescriptor,me=(e,r,t,s)=>{for(var n=s>1?void 0:s?he(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(r,t,n):a(n))||n);return s&&n&&pe(r,t,n),n};let b=class extends P{};b=me([g],b);var ve=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("icon",{attrs:{width:"38",height:"43",viewBox:"0 0 38 43"}},[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37.2666 18.9829C37.2666 25.7058 33.8364 31.6111 28.6607 34.9836L31.91 38.9463C33.2304 40.561 32.1041 43 30.0408 43H7.22403C5.1608 43 4.03358 40.5619 5.35482 38.9463L8.60685 34.9827C3.43134 31.6111 0 25.7058 0 18.982C0 8.49867 8.34206 0 18.6333 0C28.9246 0 37.2666 8.49959 37.2666 18.9829ZM8.21334 18.982C8.21334 24.8441 12.8786 29.5964 18.6333 29.5964C24.3881 29.5964 29.0542 24.8432 29.0533 18.982C29.0533 13.1198 24.3881 8.36848 18.6333 8.36848C12.8786 8.36848 8.21334 13.1198 8.21334 18.982Z"}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.6328 10.2797C17.4928 10.2797 16.4077 10.5114 15.4112 10.9203C16.9041 13.4054 15.7841 17.5287 12.0313 17.5287C11.3479 17.5287 10.7529 17.3882 10.2428 17.1477C10.1156 17.7452 10.0445 18.3618 10.0445 18.9973C10.0445 23.8118 13.8897 27.7148 18.6315 27.7148C23.3734 27.7148 27.2185 23.8118 27.2185 18.9973C27.2185 14.1827 23.3759 10.2797 18.6328 10.2797Z"}})])},_e=[];const L={};var fe=w(b,ve,_e,!1,Ce,"5ad1bcda",null,null);function Ce(e){for(let r in L)this[r]=L[r]}var ge=function(){return fe.exports}(),we=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,be=(e,r,t,s)=>{for(var n=s>1?void 0:s?Se(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(r,t,n):a(n))||n);return s&&n&&we(r,t,n),n};let R=class extends P{};R=be([g],R);var Re=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("icon",{attrs:{width:"39",height:"48",viewBox:"0 0 39 48"}},[t("g",{attrs:{"clip-path":"url(#clip0)"}},[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.8214 32.7143C21.9334 32.7143 23.7408 31.8789 25.2445 30.2087C26.7479 28.5387 27.4997 26.5294 27.4997 24.183V10.5322C27.4997 8.18577 26.7485 6.17742 25.2445 4.50647C23.7408 2.8359 21.9334 2 19.8214 2C17.7097 2 15.9021 2.8359 14.3983 4.50647C12.8944 6.17714 12.1426 8.18577 12.1426 10.5322V24.183C12.1426 26.5294 12.8947 28.5387 14.3983 30.2087C15.9018 31.8789 17.7097 32.7143 19.8214 32.7143Z"}}),t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33.1861 17.8704C32.883 17.5285 32.5223 17.3574 32.1064 17.3574C31.6909 17.3574 31.331 17.5285 31.0267 17.8704C30.723 18.2124 30.5711 18.6172 30.5711 19.0849V22.5405C30.5711 25.87 29.519 28.7177 27.4154 31.0843C25.3125 33.4508 22.7808 34.6342 19.8212 34.6342C16.8617 34.6342 14.3303 33.4508 12.2266 31.0843C10.1232 28.7184 9.07155 25.8701 9.07155 22.5405V19.0849C9.07155 18.6172 8.91951 18.2124 8.61569 17.8704C8.3117 17.5285 7.95216 17.3574 7.53598 17.3574C7.1198 17.3574 6.75984 17.5285 6.45602 17.8704C6.15195 18.2124 6 18.6172 6 19.0849V22.5405C6 26.5177 7.17997 29.9777 9.53924 32.9197C11.8986 35.8622 14.814 37.549 18.2855 37.9808V41.5443H12.1428C11.7269 41.5443 11.367 41.7157 11.0631 42.0575C10.7591 42.3994 10.6071 42.8045 10.6071 43.2723C10.6071 43.7395 10.7591 44.1455 11.0631 44.487C11.367 44.8289 11.7269 45.0003 12.1428 45.0003H27.4992C27.915 45.0003 28.2754 44.8289 28.5789 44.487C28.8832 44.1455 29.0353 43.7398 29.0353 43.2723C29.0353 42.8045 28.8832 42.3994 28.5789 42.0575C28.2755 41.7157 27.9151 41.5443 27.4992 41.5443H21.3573V37.9808C24.8282 37.549 27.7433 35.8622 30.1029 32.9197C32.4625 29.9777 33.6429 26.5177 33.6429 22.5405V19.0849C33.6429 18.6173 33.4905 18.2127 33.1861 17.8704Z"}})]),t("defs",[t("clipPath",{attrs:{id:"clip0"}},[t("rect",{attrs:{width:"27.6429",height:"43",fill:"white",transform:"translate(6 2)"}})])])])},ye=[];const O={};var Me=w(R,Re,ye,!1,Pe,"5d14b736",null,null);function Pe(e){for(let r in O)this[r]=O[r]}var Ie=function(){return Me.exports}(),$e=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Ee=(e,r,t,s)=>{for(var n=s>1?void 0:s?De(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(r,t,n):a(n))||n);return s&&n&&$e(r,t,n),n};let y=class extends P{};y=Ee([g],y);var xe=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("icon",{attrs:{width:"36",height:"31",viewBox:"0 0 36 31"}},[t("path",{attrs:{d:"M0 8.85714H9L20.25 0V31L9 22.1429H0V8.85714ZM28.5525 3.41C28.845 3.52071 36 6.46571 36 15.5C36 24.5343 28.845 27.4793 28.5525 27.59C28.4169 27.6479 28.2709 27.
16784 28.1231 27.6795C27.9753 27.6807 27.8287 27.6525 27.6922 27.5967C27.5557 27.5409 27.432 27.4587 27.3286 27.3548C27.2251 27.2509 27.144 27.1276 27.09 26.9921C26.8425 26.4164 27.135 25.7743 27.6975 25.5529C27.945 25.4421 33.75 23.0064 33.75 15.5C33.75 7.94929 27.765 5.46929 27.6975 5.44714C27.5607 5.39303 27.4362 5.31261 27.3313 5.2106C27.2265 5.10858 27.1433 4.98701 27.0867 4.853C27.0302 4.71899 27.0013 4.57522 27.0019 4.43011C27.0025 4.28499 27.0324 4.14144 27.09 4.00786C27.315 3.45429 27.9675 3.16643 28.5525 3.41V3.41ZM31.5 15.5C31.5 21.1907 26.4825 23.095 26.28 23.1836C26.145 23.2279 26.01 23.25 25.875 23.25C25.425 23.25 24.9975 22.9843 24.8175 22.5414C24.5925 21.9657 24.9075 21.3236 25.47 21.1021C25.6275 21.0579 29.25 19.6186 29.25 15.5C29.25 11.3814 25.6275 9.94214 25.47 9.89786C25.1957 9.78455 24.9755 9.57266 24.8543 9.30529C24.7331 9.03792 24.7199 8.73515 24.8175 8.45857C25.0425 7.905 25.695 7.595 26.28 7.81643C26.4825 7.905 31.5 9.80929 31.5 15.5Z"}})])},ke=[];const F={};var ze=w(y,xe,ke,!1,Ae,"eb58823c",null,null);function Ae(e){for(let r in F)this[r]=F[r]}var Te=function(){return ze.exports}();class Le{constructor({recorder:r,uploader:t}){const s=window.require("electron");let n=[];t.getFileUploaders().forEach(c=>o(c)),t.on("fileUploader:added",c=>o(c.data.fileUploader));function o(c){c.dataStore.on("size:changed",u=>{const h=u.data.localFileData;n.some(C=>C.id===h.id)||n.push(h),a()})}t.on("fileUploader:deleteAll",()=>{n=[],a()});function a(){s.ipcRenderer.send("record:localFileDatas:updated",{localFileDatas:n,recordDurationInSeconds:Math.round(r.state.recordDurationInMilliseconds)/1e3})}r.on("cancel",()=>{setTimeout(async()=>{await t.cancel(),s.ipcRenderer.send("record:canceled")})}),r.on("stop",()=>{s.ipcRenderer.send("record:stopped")}),r.on("stop:interrupted",c=>{s.ipcRenderer.send("record:stop:interrupted",c.data)}),r.on("error:media-recorder",()=>{setTimeout(()=>{s.ipcRenderer.send("record:error")},1e3)}),t.on("conversation:created",c=>{s.ipcRenderer.send("record:conversation:created",c.data)}),t.on("medias:linked",()=>{s.ipcRenderer.send("record:medias:linked")}),t.on("uploaded",c=>{setTimeout(()=>{s.ipcRenderer.send("record:uploaded",c.data)})}),t.on("error:process",()=>{setTimeout(()=>{s.ipcRenderer.send("record:error:process")})}),t.on("error:upload",async()=>{setTimeout(()=>{s.ipcRenderer.send("record:error:upload")})})}}class Oe extends Q{constructor(r){super(r),this.state.isMute=r.unmute===!1}async initialize(){const r=await this.findSystemAudioStream();r&&(this.setStream(r),this.state.has=!0,this.fire("has:change"),this.fire("state:change"))}async findSystemAudioStream(){try{const r=await navigator.mediaDevices.getUserMedia({audio:{mandatory:{chromeMediaSource:"desktop",googAutoGainControl:"false"}},video:{mandatory:{chromeMediaSource:"desktop"}}});for(;r.getVideoTracks().length>0;)r.removeTrack(r.getVideoTracks()[0]);return r}catch(r){console.error(r);return}}}class Fe extends ae{constructor(r){super(r),this.electron=window.require("electron"),this.electron.ipcRenderer.on("record:askHideCamera",()=>this.hide()),this.electron.ipcRenderer.on("record:askShowCamera",()=>this.show()),this.on("device:change",()=>this.refreshEnableState()),this.on("has:change",()=>this.refreshEnableState())}async show(){this.state.isShowed||!this.state.has||(this.electron.ipcRenderer.send("record:showCamera"),this.state.isShowed=!0,this.fire("show"),this.fire("state:change"))}async hide(){!this.state.isShowed||(this.electron.ipcRenderer.send("record:hideCamera"),this.state.isShowed=!1,this.fire("hide"),this.fire("state:change"))}async stopStream(){this.electron.ipcRenderer.send("record:hideCamera")}async refreshEnableState(){this.state.isShowed&&(this.hide(),setTimeout(()=>{this.show()}))}}const M=class extends ce{constructor(e){super(),this.params=e,this.stream=null}async initialize(){this.stream=await this.buildScreenStream(),this.fire("stream:create"),this.stream.getVideoTracks()[0].addEventListener("ended",()=>{this.stream=null,this.fire("stream:end")})}async buildScreenStream(){const e=await this.getUserMediaScreenStream();if(this.params.isFullScreen)return e;const r=await this.createVideo(e),t=this.createCanvas(this.params.rectangle),s=t.getContext("2d"),n=this.getLoop(()=>{e.active?this.drawFrame(s,r):n()});return t.captureStream(M.PARTIAL_FRAME_RATE)}async getUserMediaScreenStream(){const e=m({minWidth:this.params.rectangle.width,minHeight:this.params.rectangle.height},this.params.frameRateOptions);return navigator.mediaDevices.getUserMedia({audio:!1,video:{mandatory:m({chromeMediaSource:"desktop",chromeMediaSourceId:this.params.displaySourceId},e)}})}createVideo(e){const r=document.createElement("video");return r.autoplay=!0,r.srcObject=e,new Promise(t=>{r.addEventListener("playing",()=>{this.adjustRectangle=this.calculAdjustRectangle(r),t(r)})})}createCanvas({height:e,width:r}){const t=document.createElement("canvas");return t.width=r,t.height=e,t}drawFrame(e,r){const{x:t,y:s,width:n,height:o}=this.adjustRectangle;e.drawImage(r,t,s,n,o,0,0,this.params.rectangle.width,this.params.rectangle.height)}getLoop(e){const r=setInterval(()=>e(),Math.ceil(1e3/M.PARTIAL_FRAME_RATE));return()=>clearInterval(r)}calculAdjustRectangle(e){let r=_.app.isMac&&this.params.screenSize&&e.videoWidth>0&&this.params.screenSize.width!==e.videoWidth?this.params.screenSize.width/e.videoWidth:1,t=_.app.isMac&&this.params.screenSize&&e.videoHeight>0&&this.params.screenSize.height!==e.videoHeight?this.params.screenSize.height/e.videoHeight:1;return r=r===0?1:r,t=t===0?1:t,{x:this.params.rectangle.x/r,y:this.params.rectangle.y/t,width:this.params.rectangle.width/r,height:this.params.rectangle.height/t}}};let U=M;U.PARTIAL_FRAME_RATE=20;class qe extends X{constructor(r){super(r),this.params=r,this.initializePromise=Promise.resolve(),this.hasInterruptionStopTriggered=!1,_.app.isMac||(this.initializePromise=this.speakerStreamer.initialize()),this.screenStreamer.on("stream:end",async()=>
1{if(!this.state.hasRecorded&&this.state.hasStartRecord){if(this.hasInterruptionStopTriggered)return;this.hasInterruptionStopTriggered=!0,this.fire("stop:interrupted",{cause:"display_lost",timestamp:new Date().toISOString(),autoStopped:!0});try{await this.stop()}catch{}}})}async start(){await this.initializePromise,this.hasInterruptionStopTriggered=!1,this.clearCountdown();const r=window.require("electron");r.ipcRenderer.once("record:countDownCleared",()=>super.start()),r.ipcRenderer.send("record:clearCountDown")}buildMicrophoneStreamer(){return new ee({deviceId:this.params.microphoneDeviceId,unmute:this.params.startRecordWithMicrophoneEnable})}buildCameraStreamer(){return new Fe({enable:this.params.startRecordWithCameraEnable,profilPictureUrl:this.params.profilPictureUrl,profilPictureDeviceLabel:this.params.profilPictureDeviceLabel})}buildScreenStreamer(){return new U({displaySourceId:this.params.displaySourceId,isFullScreen:this.params.isFullScreen,rectangle:this.params.rectangle,screenSize:this.params.screenSize,frameRateOptions:_.recorder.frameRateOptions})}buildSpeakerStreamer(){return _.app.isMac?void 0:new Oe({unmute:this.params.startRecordWithSpeakerEnable})}}var Ve=Object.defineProperty,je=Object.getOwnPropertyDescriptor,I=(e,r,t,s)=>{for(var n=s>1?void 0:s?je(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(r,t,n):a(n))||n);return s&&n&&Ve(r,t,n),n};let f=class extends N(se){constructor(){super(...arguments),this.options=null,this.version=null,this.platform="",this.userIsDrawing=!1,this.brushSizes=[4,8,16,32,64],this.brushIndex=1,this.paintColorSelected="",this.showCancelConfirmation=!1,this.showRestartConfirmation=!1,this.interruptionMessage=null}onCountDownSecondsRemaining(){this.updateCountDown()}onScreenStreamChange(){var e;if((e=this.recorder)!=null&&e.screenStreamer.stream){const r=window.require("electron");r.ipcRenderer.on("record:layout:loaded",()=>this.startCountdown()),r.ipcRenderer.send("record:layout:isLoaded")}}get isMac(){return this.platform==="darwin"}get isWindows(){return this.platform==="win32"}get restartLabel(){return this.isWindows?"Start over":"Restart"}updateCountDown(){var r;const e=window.require("electron");this.recorder.state.countDownSecondsRemaining>0?e.ipcRenderer.send("record:setCountDown",{countDownSecondsRemaining:(r=this.recorder)==null?void 0:r.state.countDownSecondsRemaining}):e.ipcRenderer.send("record:clearCountDown")}async initializeData(){var r,t,s;const e=window.require("electron");try{const n=window.require("process");this.platform=n.platform}catch{this.platform=""}try{e.ipcRenderer.on("version:update",(n,o)=>{this.version=o.version}),e.ipcRenderer.send("version:update"),this.options=await le.getAll(),this.recordCountDownDurationInSeconds=this.options.recordCountDownDurationInSeconds,this.paintColorSelected=((s=(t=(r=this.$modules.session.user)==null?void 0:r.brand)==null?void 0:t.colors)==null?void 0:s.mousePointer)||v.brandDefaultColors.secondary,e.ipcRenderer.on("initialize",async(n,o)=>{try{await this.intializeRecord(o),e.ipcRenderer.send("scale-factor:askValue")}catch(a){e.ipcRenderer.send("record:error:initialize",a)}}),e.ipcRenderer.on("record:controls:isLoaded",()=>{e.ipcRenderer.send("record:controls:loaded")}),e.ipcRenderer.send("record:controls:loaded")}catch(n){e.ipcRenderer.send("record:error:initialize",n)}}async intializeRecord(e){var h,C,$;const r=this.getRecordId(),t=new qe({desktopApplicationVersion:this.version,recordId:r,displaySourceId:e.displaySourceId,isFullScreen:e.isFullscreen,rectangle:e.rectangle,screenSize:e.screenSize,microphoneDeviceId:await this.findMicrophoneDeviceId(),startRecordWithSpeakerEnable:this.options.startRecordWithSpeakerEnable,startRecordWithMicrophoneEnable:this.options.startRecordWithMicrophoneEnable,startRecordWithCameraEnable:this.options.startRecordWithCameraEnable,profilPictureUrl:(h=this.$modules.session.user)==null?void 0:h.imageUrl,profilPictureDeviceLabel:this.$i18n.t("RecordBrowserCommon.profilPictureDeviceLabel")});this.mediaModule.registerRecorder(t);const s=this.$route.query["conversation-uuid"],n=s?z.MESSAGE:z.CONVERSATION;this.$AnalyticsTracker.track({eventName:"Record Electron Started",properties:{source:this.getSource(),recordId:r}});const o=await G.servers.fetchClosestActive(),a=window.require("path");let c;this.$config.recorder.speechToText.enabled&&(c=new te({recorder:this.recorder,language:(C=this.$modules.session.user)==null?void 0:C.language})),this.uploader=new re({recorder:this.recorder,recordId:r,recordType:n,conversationUuid:s,server:o,recorderSpeechToText:c,dataStoreFactory:l=>{const i=l.fileInfo.type===ne.VIDEO?"mp4":"mp3",d=`${r}.${l.fileId}.${i}`,p=a.join(this.options.unUploadedVideosPath,d);return new oe({localFileData:{id:l.fileId,localFileFullPath:p,fileInfo:l.fileInfo,size:0}})}}),this.addCommonObservers(),($=this.recorder)==null||$.on("stop:interrupted",()=>{this.interruptionMessage="Recording stopped because screen capture was interrupted."}),new Le({recorder:this.recorder,uploader:this.uploader});const u=window.require("electron");u.ipcRenderer.send("record:server:selected",{server:o}),u.ipcRenderer.on("record:toggleRecordState",()=>{var l,i,d,p,D;(l=this.recorder)!=null&&l.state.canStart?this.start():(i=this.recorder)!=null&&i.state.canPause?(d=this.recorder)==null||d.pause():(p=this.recorder)!=null&&p.state.canResume&&((D=this.recorder)==null||D.resume())}),u.ipcRenderer.on("record:askStop",()=>{var l,i;(l=this.recorder)!=null&&l.state.canStop&&((i=this.recorder)==null||i.stop())}),u.ipcRenderer.on("record:canva:stop",()=>{var l,i,d;this.userIsDrawing=!1,this.paintColorSelected=((d=(i=(l=this.$modules.session.user)==null?void 0:l.brand)==null?void 0:i.colors)==null?void 0:d.mousePointer)||v.brandDefaultColors.secondary,this.brushIndex=1}),u.ipcRenderer.on("record:canva:start",(l,i)=>{var p;const d=i?this.brushSizes.indexOf(i.lineWidth):-1;this.brushIndex=d===-1?this.brushIndex:d,this.paintColorSelected=(p=i==null?void 0:i.strokeStyle)!=null?p:this.paintColorSelected,this.userIsDrawing=!0,this.$AnalyticsTracker.track({eventName:"Record Annotation Clicked",properties:{source:this.getSource(),recordId:this.getRecordId()}})}),await this.recorder.initialize()}get brandColor(){var r,t;const e=((t=(r=this.$modules.session.user)==null?void 0:r.brand)==null?void 0:t.colors)||m({},v.brandDefaultColors);return k(m({},e),{error:v.brandDefaultColors.error,white:v.brandDefaultColors.white})}eraseCanvas(){window.require("electron").ipcRenderer.send("record:canva:erase")}changePencilStyle(e,r){window.require("electron").ipcRenderer.send("record:canva:actions",{[`${e}`]:r})}disableDrawingMode(){window.require("electron").ipcRenderer.send("record:canva:stop")}enableDrawingMode(){window.require("electron").ipcRenderer.send("record:canva:start")}async findMicrophoneDeviceId(){if(this.options.devices.audioInput
1Label==="default")return;const r=(await navigator.mediaDevices.enumerateDevices()).find(t=>t.label===this.options.devices.audioInputLabel);return r==null?void 0:r.deviceId}confirmCancel(){this.showCancelConfirmation=!0}confirmRestart(){this.showRestartConfirmation=!0}onMoved(e){window.require("electron").ipcRenderer.send("recorder:controlBarMoved",e)}};I([j("recorder.state.countDownSecondsRemaining")],f.prototype,"onCountDownSecondsRemaining",1);I([j("recorder.screenStreamer.stream")],f.prototype,"onScreenStreamChange",1);f=I([g({components:{IconRecordCamera:ge,IconRecordMicrophone:Ie,IconRecordSpeaker:Te,UiButton:J,ElectronMovable:K}})],f);var q="/assets/handleLeft.10bd3d55.svg",S="/assets/IconRecordBack.95cd789a.svg",Ue="/assets/IconRecordPencil.ca9969e7.svg",We="/assets/IconRecordCamera.91e428d2.svg",He="/assets/IconRecordMicrophone.acbd52cd.svg",Be="/assets/IconRecordSpeaker.a31e599b.svg",Ze="/assets/IconRecordErase.70162267.svg",Ye=function(){var e=this,r=e.$createElement,t=e._self._c||r;return e.pageReady?t("ElectronMovable",{staticClass:"bg-white select-none overflow-hidden",class:{"has-message":e.isUploading||e.hasError}},[t("div",{staticClass:"controls"},[t("inline-svg",{staticClass:"handle -left",attrs:{src:q}}),e.interruptionMessage||e.showMicrophoneAlertSignal||e.showCancelConfirmation||e.showRestartConfirmation||e.isCanceling?[e.interruptionMessage?t("div",{staticClass:"controls-alert"},[t("p",[t("b",[e._v("Recording stopped.")]),e._v(" Because screen capture was interrupted. ")])]):e._e(),e.isCanceling?t("div",{staticClass:"controls-alert"},[t("p",[t("b",[e._v("Deleting...")])])]):e._e(),e.showCancelConfirmation?t("div",{staticClass:"controls-alert"},[t("button",{staticClass:"c-round-btn -white",on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.showCancelConfirmation=!1}}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:S}})],1),t("p",[t("b",[e._v("Beware!")]),e._v(" You are about to delete this video. Are you sure? ")]),t("ul",[t("li",[t("button",{staticClass:"c-btn -sm -danger",on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.showCancelConfirmation=!1,e.cancel()}}},[e._v("Delete")])])])]):e._e(),e.showRestartConfirmation?t("div",{staticClass:"controls-alert"},[t("button",{staticClass:"c-round-btn -white",on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.showRestartConfirmation=!1}}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:S}})],1),t("p",[t("b",[e._v("Beware!")]),e._v(" You are about to lose what you already recorded. Are you sure? ")]),t("ul",[t("li",[t("button",{staticClass:"c-btn -sm -danger",on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.showRestartConfirmation=!1,e.restart()}}},[e._v("Restart")])])])]):e._e(),e.showMicrophoneAlertSignal?t("div",{staticClass:"controls-alert"},[t("span",[t("inline-svg",{staticClass:"fill-current",attrs:{src:de}})],1),t("p",[t("b",[e._v("Hey! Your mic volume is low!")]),e._v(" Make sure your microphone is working. ")]),t("ul",[t("li",[t("button",{staticClass:"c-btn -sm -danger",on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.showMicrophoneAlertSignal=!1,e.restart()}}},[t("inline-svg",{attrs:{src:A}}),e._v(e._s(e.restartLabel))],1)]),t("li",[t("button",{staticClass:"c-btn -sm -danger",on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.showMicrophoneAlertSignal=!1}}},[e._v("Continue")])])])]):e._e()]:[e.recorder?t("div",{staticClass:"controls-bar"},[e.userIsDrawing?e._e():[t("nav",{staticClass:"controls-nav"},[t("ul",[t("li",[e.recorder.state.canCancel?t("button",{staticClass:"c-link -sm -danger px-1",on:{mousedown:function(s){s.stopPropagation()},click:e.confirmCancel}},[t("span",[t("inline-svg",{attrs:{src:ie}})],1)]):e._e()]),t("li",[e.recorder.state.canCancel?t("button",{staticClass:"c-btn -sm -secondary",on:{mousedown:function(s){s.stopPropagation()},click:e.confirmRestart}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:A}}),e._v(e._s(e.restartLabel))],1):e._e()]),t("li",[e.recorder.state.canPause?t("button",{staticClass:"c-btn -primary -sm relative",on:{mousedown:function(s){s.stopPropagation()},click:e.pause}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:ue}}),e._v("Pause")],1):e.recorder.state.canStart?t("button",{staticClass:"c-btn -sm -primary",on:{mousedown:function(s){s.stopPropagation()},click:e.start}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:T}}),e._v("Start")],1):e.recorder.state.canResume?t("button",{staticClass:"c-btn -sm -primary",on:{mousedown:function(s){s.stopPropagation()},click:e.resume}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:T}}
1),e._v("Resume")],1):e._e()])])]),t("nav",{staticClass:"mx-auto"},[t("ul",{staticClass:"flex-grow justify-center"},[t("li",[e.recorder.state.canCancel?t("button",{staticClass:"c-round-btn",on:{mousedown:function(s){s.stopPropagation()},click:e.enableDrawingMode}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:Ue}})],1):e._e()]),t("li",[t("div",{staticClass:"controls-device",class:{"opacity-50":!e.recorder.state.canHideCamera},on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.recorder.state.canHideCamera?e.hideCamera():e.showCamera()}}},[t("div",{staticClass:"controls-device__ico"},[t("inline-svg",{staticClass:"fill-current",attrs:{src:We}})],1),t("div",{staticClass:"controls-device__bar"},[t("span",[e._v(e._s(e.recorder.state.canHideCamera?"on":"off"))])])])]),t("li",[t("div",{staticClass:"controls-device",class:{"opacity-50":!e.recorder.state.canMuteMicrophone},on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.recorder.state.canMuteMicrophone?e.muteMicrophone():e.unmuteMicrophone()}}},[t("div",{staticClass:"controls-device__ico"},[t("inline-svg",{staticClass:"fill-current",attrs:{src:He}})],1),t("div",{staticClass:"controls-device__bar"},[e.recorder.state.canMuteMicrophone?t("div",{staticClass:"controls-device__sound"},[t("div",{staticClass:"bg-layout-secondary-400",style:{height:e.recorder.state.microphone.signalPercent+"%"}})]):e._e(),t("span",[e._v(e._s(e.recorder.state.canMuteMicrophone?"on":"off"))])])])]),e.recorder.state.speaker.has?t("li",[t("div",{staticClass:"controls-device",class:{"opacity-50":!e.recorder.state.canMuteSpeaker},on:{mousedown:function(s){s.stopPropagation()},click:function(s){e.recorder.state.canMuteSpeaker?e.muteSpeaker():e.unmuteSpeaker()}}},[t("div",{staticClass:"controls-device__ico"},[t("inline-svg",{attrs:{src:Be}})],1),t("div",{staticClass:"controls-device__bar"},[e.recorder.state.canMuteSpeaker?t("div",{staticClass:"controls-device__sound"},[t("div",{staticClass:"bg-layout-secondary-400",style:{height:e.recorder.state.speaker.signalPercent+"%"}})]):e._e(),t("span",[e._v(e._s(e.recorder.state.canMuteSpeaker?"on":"off"))])])])]):e._e()])])],e.userIsDrawing?[t("nav",[t("ul",[t("li",[t("button",{staticClass:"c-round-btn",on:{mousedown:function(s){s.stopPropagation()},click:e.disableDrawingMode}},[t("inline-svg",{staticClass:"fill-current mr-2",attrs:{src:S}})],1)]),e._l(e.brandColor,function(s,n){return t("li",[t("button",{staticClass:"c-swatch",class:{"is-selected":e.paintColorSelected===s},style:{backgroundColor:s},on:{mousedown:function(o){o.stopPropagation()},click:function(o){e.changePencilStyle("strokeStyle",s),e.paintColorSelected=s}}})])})],2)]),t("nav",{staticClass:"brush-control"},[t("ul",[t("li",[t("span",{staticClass:"c-heading -h6"},[e._v("Sizes")]),t("button",{staticClass:"c-swatch -is-brush",style:{"--size":e.brushIndex%e.brushSizes.length},on:{mousedown:function(s){s.stopPropagation()},click:function(s){++e.brushIndex,e.changePencilStyle("lineWidth",e.brushSizes[e.brushIndex%e.brushSizes.length])}}},[t("span")])])])]),t("nav",{staticClass:"canva-control"},[t("ul",[t("li",[t("button",{staticClass:"c-link -svg -primary",on:{mousedown:function(s){s.stopPropagation()},click:e.eraseCanvas}},[t("inline-svg",{staticClass:"fill-current",attrs:{src:Ze}})],1)])])])]:e._e(),t("div",{staticClass:"bg-layout-shade bg-opacity-10 pl-4 rounded-l-md",class:{"ml-auto":e.userIsDrawing}},[t("ul",{staticClass:"h-full"},[t("li",[t("span",{staticClass:"text-layout-primary text-2xl font-bold duration"},[t("i"),e._v(" "+e._s(e.recorder.state.recordDurationDisplayFormat))])]),t("li",[t("button",{staticClass:"done c-btn -primary",attrs:{disabled:!e.recorder.state.canStop},on:{mousedown:function(s){s.stopPropagation()},click:e.stop}},[e._v("Done")])])])])],2):e._e()],t("inline-svg",{staticClass:"handle -right",attrs:{src:q}})],2)]):e._e()},Ne=[];const V={};var Ge=w(f,Ye,Ne,!1,Je,"198869de",null,null);function Je(e){for(let r in V)this[r]=V[r]}var vt=function(){return Ge.exports}();export{vt as default};
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.