1var ae=Object.defineProperty,ie=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var T=(e,a,t)=>a in e?ae(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,L=(e,a)=>{for(var t in a||(a={}))re.call(a,t)&&T(e,t,a[t]);if(R)for(var t of R(a))ne.call(a,t)&&T(e,t,a[t]);return e},j=(e,a)=>ie(e,oe(a));import{C as l,V as M,n as c,h as u,a as p,P as h,U,g as w,I as E,j as le,m as G,W as N,aV as ce,a0 as de,u as ue}from"./index.8c7e38b2.js";import{W as pe,b as ve}from"./WebappLayout.40d47ac6.js";import{a as me}from"./UserDropMenu.62dbac67.js";import{U as m}from"./UiField.579482ad.js";import{R as v}from"./RecordCountDownOptions.ad021e9c.js";import{T as fe}from"./TheUserAvatar.d244fd5a.js";import{M as he,I as we}from"./ico-back.bae3509e.js";import{U as ge}from"./UserSettingGeneralMfa.849b425b.js";import{L as _e}from"./LanguagesSelect.02d6646d.js";import"./PendingInvitationsService.827f22b9.js";import"./datetime.520a7f7e.js";import"./ModalContainerMixin.0ac92752.js";import"./ConversationHelper.0f695325.js";import"./ConversationService.d4157193.js";import"./TimeHelper.9422cdcd.js";import"./ClipboardService.de5b04f5.js";import"./IconClose.460ddfa9.js";import"./InfiniteScroller.bedd6de6.js";import"./ico-bell.ac5832c0.js";import"./ProviderOauth2Service.0960a4c9.js";import"./berrycast-tag.cccf157f.js";import"./ico-download.da4a7294.js";import"./SmartImage.afe9662f.js";import"./ImageService.126d86d7.js";import"./default_thumbnail.6f7d6858.js";import"./UiDivider.968a26bb.js";import"./ico-videos.7227efc9.js";var Ce=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,xe=(e,a,t,s)=>{for(var i=s>1?void 0:s?Pe(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Ce(a,t,i),i};let P=class extends M{};P=xe([l],P);var ye=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z",fill:"currentColor"}})])},be=[];const W={};var $e=c(P,ye,be,!1,Se,null,null,null);function Se(e){for(let a in W)this[a]=W[a]}var ee=function(){return $e.exports}(),Oe=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,De=(e,a,t,s)=>{for(var i=s>1?void 0:s?Ae(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Oe(a,t,i),i};let x=class extends M{};x=De([l],x);var ke=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("svg",{attrs:{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M12 6.5C15.79 6.5 19.17 8.63 20.82 12C20.23 13.27 19.4 14.36 18.41 15.21L20.12 16.92C21.62 15.69 22.84 14.06 23.64 12C21.91 7.61 17.64 4.5 12.64 4.5C11.06 4.5 9.58 4.83 8.23 5.39L10.17 7.33C10.74 6.82 11.35 6.5 12 6.5ZM2 3.27L4.28 5.55L4.74 6C3.08 7.3 1.78 9.02 1 11C2.73 15.39 7 18.5 12 18.5C13.55 18.5 15.03 18.2 16.38 17.66L16.8 18.08L19.73 21L21 19.73L3.27 2L2 3.27ZM7.53 8.8L9.08 10.35C9.03 10.56 9 10.78 9 11C9 12.66 10.34 14 12 14C12.22 14 12.44 13.97 12.65 13.92L14.2 15.47C13.53 15.8 12.79 16 12 16C9.24 16 7 13.76 7 11C7 10.21 7.2 9.47 7.53 8.8ZM11.84 9.02L14.99 12.17L15.01 12.01C15.01 10.35 13.67 9.01 12.01 9.01L11.84 9.02Z",fill:"currentColor"}})])},Ie=[];const q={};var Me=c(x,ke,Ie,!1,Ue,null,null,null);function Ue(e){for(let a in q)this[a]=q[a]}var te=function(){return Me.exports}();class g{static saveAppConfig(a,t){window.require("electron").ipcRenderer.send("options:set",{name:a,value:t})}}var Ee=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Re=(e,a,t,s)=>{for(var i=s>1?void 0:s?Ne(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Ee(a,t,i),i};let y=class extends u(){constructor(){super(...arguments),this.useOwnOpenAIProvider=!1,this.openAIKey="",this.saveSuccess=!1,this.showPassword=!1}async mounted(){var a,t,s;const e=(a=this.$modules.session.user)==null?void 0:a.settings;((t=e==null?void 0:e.transcriptionProvider)==null?void 0:t.enabled)&&((s=e==null?void 0:e.transcriptionProvider)==null?void 0:s.key)&&(this.useOwnOpenAIProvider=!0,this.openAIKey=e.transcriptionProvider.key)}togglePasswordVisibility(){this.showPassword=!this.showPassword}toggleOwnOpenAIProvider(){this.useOwnOpenAIProvider=!this.useOwnOpenAIProvider,this.useOwnOpenAIProvider||(this.openAIKey="",this.clearAISettings())}async clearAISettings(){try{const e={enabled:!1,key:"",name:"",model:""};await p.user.settings.update({name:"transcriptionProvider",value:e}),await p.user.settings.update({name:"summarizationProvider",value:e}),this.$modules.session.setSetting({name:"transcriptionProvider",value:e}),this.$modules.session.setSetting({name:"summarizationProvider",value:e})}catch(e){console.error("Failed to clear AI settings:",e)}}async onSubmit(){if(this.useOwnOpenAIProvider&&this.openAIKey)try{const e={enabled:this.useOwnOpenAIProvider,key:this.openAIKey,name:"openai",model:"whisper-1"};await p.user.settings.update({name:"transcriptionProvider",value:e});const a={enabled:this.useOwnOpenAIProvider,key:this.openAIKey,name:"openai",model:"gpt-3.5-turbo"};await p.user.settings.update({name:"summarizationProvider",value:a}),this.$modules.session.setSetting({name:"transcriptionProvider",value:e}),this.$modules.session.setSetting({name:"summarizationProvider",value:a}),this.$AnalyticsTracker.track({eventName:"User OpenAI Key Updated",properties:{enabled:this.useOwnOpenAIProvider}}),this.saveSuccess=!0,setTimeout(()=>{this.saveSuccess=!1},3e3)}catch(e){console.error("Failed to update OpenAI key:",e)}}};y=Re([l({components:{UiField:m,IconEye:ee,IconEyeOff:te}})],y);var Te=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"notification"},[e._m(0),t("form",{staticClass:"pb-4",attrs:{novalidate:"true"},on:{submit:function(s){return s.preventDefault(),e.onSubmit(s)}}},[t("div",{staticClass:"form-group"},[t("div",{staticClass:"form-field"},[t("div",{staticClass:"flex items-center mb-4"},[t("span",[e._v(e._s(e.$i18n.t("options.useOwnOpenAIProvider")))]),t("div",{staticClass:"flex toggle ml-auto"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.useOwnOpenAIProvider},on:{"update:active":function(s){e.useOwnOpenAIProvider=s},click:e.toggleOwnOpenAIProvider}})],1)])]),e.useOwnOpenAIProvider?t("div",{staticClass:"form-field"},[t("div",{staticClass:"relative flex items-center"},[(e.showPassword?"text":"password")=="checkbox"?t("input",{directives:[{name:"model",rawName:"v-model",value:e.openAIKey,expression:"openAIKey"}],staticClass:"w-full px-3 pr-10 py-2 border border-gray-300 rounded-md",attrs:{placeholder:e.$i18n.t("options.enterOpenAIKey"),type:"checkbox"},domProps:{checked:Array.isArray(e.openAIKey)?e._i(e.openAIKey,null)>-1:e.openAIKey},on:{change:function(s){var i=e.openAIKey,o=s.target,r=!!o.checked;if(Array.isArray(i)){var d=null,n=e._i(i,d);o.checked?n<0&&(e.openAIKey=i.concat([d])):n>-1&&(e.openAIKey=i.slice(0,n).concat(i.slice(n+1)))}else e.openAIKey=r}}}):(e.showPassword?"text":"password")=="radio"?t("input",{directives:[{name:"model",rawName:"v-model",value:e.openAIKey,expression:"openAIKey"}],staticClass:"w-full px-3 pr-10 py-2 border border-gray-300 rounded-md",attrs:{placeholder:e.$i18n.t("options.enterOpenAIKey"),type:"radio"},domProps:{checked:e._q(e.openAIKey,null)},on:{change:function(s){e.openAIKey=null}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:e.openAIKey,expression:"openAIKey"}],staticClass:"w-full px-3 pr-10 py-2 border border-gray-300 rounded-md",attrs:{placeholder:e.$i18n.t("options.enterOpenAIKey"),type:e.showPassword?"text":"password"},domProps:{value:e.openAIKey},on:{input:function(s){s.target.composing||(e.openAIKey=s.target.value)}}}),t("button",{staticClass:"absolute right-2 flex items-center justify-center text-gray-500 hover_text-gray-700 w-6 h-6",attrs:{type:"button"},on:{click:e.togglePasswordVisibility}},[e.showPassword?e._e():t("icon-eye"),e.showPassword?t("icon-eye-off"):e._e()],1)])]):e._e(
1)])]),e.useOwnOpenAIProvider?t("div",{staticClass:"form-group submit flex justify-end"},[t("transition",{attrs:{name:"fade"}},[e.saveSuccess?t("p",{key:"saveSuccess",staticClass:"text-green-400"},[e._v("Settings saved successfully!")]):e._e()]),t("button",{staticClass:"font-bold bg-blue-500 text-white rounded-lg px-4 py-3 leading-none outline-none tracking-wide"},[e._v("Save Settings")])],1):e._e()])])},Le=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("AI Provider")])])}];const V={};var je=c(y,Te,Le,!1,Ge,"a8742bec",null,null);function Ge(e){for(let a in V)this[a]=V[a]}var We=function(){return je.exports}(),qe=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Fe=(e,a,t,s)=>{for(var i=s>1?void 0:s?Ve(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&qe(a,t,i),i};let b=class extends u(h){constructor(){super(...arguments),this.conversationSettingsData={}}get conversationSettingsBooleanFields(){var a,t,s;const e={allowComments:this.conversationSettingsData.allowComments,allowViewersDownload:this.conversationSettingsData.allowViewersDownload,showAnalyticsToViewers:this.conversationSettingsData.showAnalyticsToViewers};return(s=(t=(a=this.$modules.session.user)==null?void 0:a.package)==null?void 0:t.features)!=null&&s.canSeeTranscript&&(e.showTranscriptToViewers=this.conversationSettingsData.showTranscriptToViewers),e}async mounted(){this.conversationSettingsData=await p.user.settings.conversations.fetch()}async updateConversationSetting(e,a){await p.user.settings.conversations.update(j(L({},this.conversationSettingsData),{[e]:!a})),this.conversationSettingsData[e]=!a,this.$AnalyticsTracker.track({eventName:"User Conversatiosn Settings Setted",properties:{name:e,value:!a}})}};b=Fe([l({components:{UiField:m}})],b);var Be=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"flex flex-col border border-layout-shade border-opacity-50 rounded-lg mb-8 p-6"},[t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide mb-2"},[e._v("Conversation settings")]),t("p",{staticClass:"mb-5"},[e._v("The following settings are applied as your default to all new conversations.")]),e._l(e.conversationSettingsBooleanFields,function(s,i){return[t("div",{staticClass:"flex rounded-sm justify-between items-center py-2 px-3 hover:bg-opacity-10 hover:bg-layout-shade "},[e._v(e._s(e.$t("conversations.settings."+i))),t("UiField",{attrs:{type:"toggle",active:s},on:{"update:active":function(o){s=o},click:function(o){return e.updateConversationSetting(i,s)}}})],1)]})],2)])},Ke=[];const F={};var He=c(b,Be,Ke,!1,ze,"05ba16c9",null,null);function ze(e){for(let a in F)this[a]=F[a]}var Ze=function(){return He.exports}(),Ye=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Qe=(e,a,t,s)=>{for(var i=s>1?void 0:s?Je(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Ye(a,t,i),i};let $=class extends u(h){constructor(){super(...arguments),this.showPermissionSuccessModal=!1,this.showPermissionErrorModal=!1,this.showDiagnosticsModal=!1,this.showDiagnosticsUnsupportedModal=!1,this.diagnosticsFileName="",this.diagnosticsAckTimeout=null}resetPermission(){window.require("electron").ipcRenderer.send("permission:reset")}hideModal(){this.showPermissionSuccessModal=!1,this.showPermissionErrorModal=!1}sendDiagnostics(){window.require("electron").ipcRenderer.send("diagnostics:sendByEmail"),this.diagnosticsAckTimeout&&clearTimeout(this.diagnosticsAckTimeout),this.diagnosticsAckTimeout=setTimeout(()=>{this.showDiagnosticsUnsupportedModal=!0},3e3)}mounted(){if(this.$config.app.isDesktop){const e=window.require("electron");e.ipcRenderer.on("permission:error",()=>{this.showPermissionErrorModal=!0}),e.ipcRenderer.on("permission:updated",()=>{this.showPermissionSuccessModal=!0}),e.ipcRenderer.on("diagnostics:started",()=>{this.diagnosticsAckTimeout&&(clearTimeout(this.diagnosticsAckTimeout),this.diagnosticsAckTimeout=null)}),e.ipcRenderer.on("diagnostics:emailPrepared",(a,t)=>{this.diagnosticsFileName=t.fileName,this.showDiagnosticsModal=!0})}}};$=Qe([l({components:{UiButton:U,UiField:m}})],$);var Xe=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e.$config.app.isDesktop?t("section",{staticClass:"flex flex-col"},[e._m(0),t("ul",[t("li",{staticClass:"flex items-start -mx-6"},[e._m(1),t("div",{staticClass:"ml-auto px-6"},[t("ul",{staticClass:"flex -m-1 flex-col"},[t("li",{staticClass:"p-1"},[t("ui-button",{staticClass:"whitespace-nowrap w-full",attrs:{size:"sm",variant:"secondary"},on:{click:e.sendDiagnostics}},[e._v("Send diagnostics")])],1)])])]),t("modal",{attrs:{width:"480px",title:"One last step!"}
1,on:{close:function(s){e.showDiagnosticsModal=!1}},model:{value:e.showDiagnosticsModal,callback:function(s){e.showDiagnosticsModal=s},expression:"showDiagnosticsModal"}},[t("p",[t("b",[e._v('Attach the highlighted file "'+e._s(e.diagnosticsFileName)+'"')]),e._v(" to the email that just opened, then send it. If no email window appeared, you can send the file to "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(" manually. ")])]),t("modal",{attrs:{width:"480px",title:"Update Berrycast to send diagnostics"},on:{close:function(s){e.showDiagnosticsUnsupportedModal=!1}},model:{value:e.showDiagnosticsUnsupportedModal,callback:function(s){e.showDiagnosticsUnsupportedModal=s},expression:"showDiagnosticsUnsupportedModal"}},[t("p",[t("b",[e._v("This feature needs a newer version of the Berrycast desktop app.")]),e._v(" Please update Berrycast and try again, or contact us at "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")]),e._v(". ")])]),e.$config.app.isMac?t("li",{staticClass:"flex items-start -mx-6"},[e._m(2),t("div",{staticClass:"ml-auto px-6"},[t("ul",{staticClass:"flex -m-1 flex-col"},[t("li",{staticClass:"p-1"},[t("ui-button",{staticClass:"whitespace-nowrap w-full",attrs:{size:"sm",variant:"secondary"},on:{click:function(s){return e.resetPermission()}}},[e._v("Reset permissions")])],1)])])]):e._e(),t("modal",{attrs:{width:"480px",title:"Your permissions have been reset"},on:{close:e.hideModal},model:{value:e.showPermissionSuccessModal,callback:function(s){e.showPermissionSuccessModal=s},expression:"showPermissionSuccessModal"}},[t("p",[t("b",[e._v("Be sure to authorize the required permissions that will be requested.")]),e._v(" Afterwards, we suggest that you do a restart of Berrycast. If you still have problems, please "),t("router-link",{attrs:{to:{name:"UserSettingsFeedback"}}},[e._v("contact our team")]),e._v(". ")],1)]),t("modal",{attrs:{width:"480px",title:"Houston, we have a problem!"},on:{close:e.hideModal},model:{value:e.showPermissionErrorModal,callback:function(s){e.showPermissionErrorModal=s},expression:"showPermissionErrorModal"}},[t("p",[t("b",[e._v("It seems there's still a problem with resetting your permission.")]),e._v(" Please "),t("router-link",{attrs:{to:{name:"UserSettingsFeedback"}}},[e._v("contact us")]),e._v(" for more support.")],1)])],1)]):e._e()},et=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",{staticClass:"mb-4"},[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Debugging Tools")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"px-6"},[t("span",{staticClass:"block font-semibold"},[e._v("Send diagnostics to our support team")]),t("p",{staticClass:"text-sm text-gray-500 leading-normal mb-4"},[e._v("Creates a diagnostics file (logs, settings and system info \u2014 never your recordings) and opens an email to our team. Attach the highlighted file to the email before sending it. ")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"px-6"},[t("span",{staticClass:"block font-semibold"},[e._v("Reset MacOs Berrycast's permissions")]),t("p",{staticClass:"text-sm text-gray-500 leading-normal mb-4"},[e._v("If you experience problems with the use of your camera or microphone, you can try resetting the permissions. ")])])}];const B={};var tt=c($,Xe,et,!1,st,"58aaa15a",null,null);function st(e){for(let a in B)this[a]=B[a]}var at=function(){return tt.exports}(),S=(e=>(e.AUDIO_INPUT="audioinput",e.AUDIO_OUTPUT="audiooutput",e.VIDEO_INPUT="videoinput",e))(S||{});class K{static getAudioInputList(){return this.getMediaDevicesByKind(S.AUDIO_INPUT)}static getVideoInputList(){return this.getMediaDevicesByKind(S.VIDEO_INPUT)}static async getMediaDevicesByKind(a){return(await this.getDeviceList()).filter(s=>s.kind===a&&s.deviceId!=="default"&&s.deviceId!=="communications")}static async getDeviceList(){return!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices?Promise.reject("enumerateDevices not supported."):await navigator.mediaDevices.enumerateDevices()}}var it=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,rt=(e,a,t,s)=>{for(var i=s>1?void 0:s?ot(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&it(a,t,i),i};let O=class extends u(h){constructor(){super(...arguments),this.cameras=null,this.microphones=null,this.options={devices:{audio
1InputLabel:"",videoInputLabel:""}}}updateDevices(){g.saveAppConfig("devices",this.options.devices)}async mounted(){var e;if(this.$config.app.isDesktop){const a=window.require("electron");a.ipcRenderer.on("options:getAll",(t,s)=>{this.options=s}),a.ipcRenderer.send("options:getAll"),this.cameras=await K.getVideoInputList(),this.microphones=await K.getAudioInputList(),(e=this.$modules.session.user)!=null&&e.imageUrl&&this.cameras.unshift({deviceId:"profil",label:"Profile Picture",groupId:"profil",kind:"videoinput"})}}};O=rt([l({components:{UiButton:U,UiField:m}})],O);var nt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"flex flex-col"},[e._m(0),t("ul",[t("li",{staticClass:"flex items-center"},[t("span",[e._v("Camera")]),t("div",{staticClass:"flex ml-auto"},[e.cameras?t("ui-field",{attrs:{value:e.options.devices.videoInputLabel,name:"videoInputLabel",type:"select",placeholder:"Select video input...",options:e.cameras},on:{change:e.updateDevices},scopedSlots:e._u([{key:"default",fn:function(s){var i=s.option;return[t("option",{domProps:{value:i.label,selected:e.options.devices.videoInputLabel===i.label}},[e._v(e._s(e._f("truncate")(i.label,65)))])]}}],null,!1,3870392802),model:{value:e.options.devices.videoInputLabel,callback:function(s){e.$set(e.options.devices,"videoInputLabel",s)},expression:"options.devices.videoInputLabel"}}):t("alert-box",{attrs:{variant:"error"}},[e._v("No camera detected.")])],1)]),t("li",{staticClass:"flex items-center"},[t("span",[e._v("Microphone")]),t("div",{staticClass:"flex ml-auto"},[e.microphones?t("ui-field",{attrs:{value:e.options.devices.audioInputLabel,name:"audioInputLabel",type:"select",placeholder:"Select audio input...",options:e.microphones},on:{change:e.updateDevices},scopedSlots:e._u([{key:"default",fn:function(s){var i=s.option;return[t("option",{domProps:{value:i.label,selected:e.options.devices.audioInputLabel===i.label}},[e._v(e._s(e._f("truncate")(i.label,65)))])]}}],null,!1,3344174821),model:{value:e.options.devices.audioInputLabel,callback:function(s){e.$set(e.options.devices,"audioInputLabel",s)},expression:"options.devices.audioInputLabel"}}):t("alert-box",{attrs:{variant:"error"}},[e._v("No microphone detected.")])],1)])])])},lt=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Devices")])])}];const H={};var ct=c(O,nt,lt,!1,dt,"10d80c78",null,null);function dt(e){for(let a in H)this[a]=H[a]}var ut=function(){return ct.exports}(),pt=Object.defineProperty,vt=Object.getOwnPropertyDescriptor,mt=(e,a,t,s)=>{for(var i=s>1?void 0:s?vt(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&pt(a,t,i),i};let A=class extends u(E){constructor(){super(...arguments),this.isInvalidEmail=!1,this.emailChangeSuccess=!1,this.email=""}mounted(){this.email=this.$modules.session.user.email}async onSubmitChangeEmail(){if(this.isInvalidEmail=!1,this.emailChangeSuccess=!1,!!await this.$validator.validateAll("changeEmail"))try{await w.put({url:"/user/email",data:{email:this.email},options:{showBadRequestMessage:!1}}),this.emailChangeSuccess=!0,this.$modules.session.setEmail(this.email)}catch{this.isInvalidEmail=!0}}};A=mt([l({})],A);var ft=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",[e._m(0),t("form",{staticClass:"pb-4",attrs:{novalidate:"true","data-vv-scope":"changeEmail"},on:{submit:function(s){return s.preventDefault(),e.onSubmitChangeEmail(s)}}},[t("div",{staticClass:"form-group"},[t("div",{staticClass:"form-field",class:{"has-error":e.errors.has("changeEmail.email")}},[t("input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,email:!0},expression:"{required: true, email: true}"},{name:"model",rawName:"v-model",value:e.email,expression:"email"}],ref:"email",attrs:{type:"email",name:"email",placeholder:"New Email"},domProps:{value:e.email},on:{input:function(s){s.target.composing||(e.email=s.target.value)}}}),e.errors.has("changeEmail.email")?t("div",{staticClass:"error"},[e._v(e._s(e.errors.first("changeEmail.email")))]):e.isInvalidEmail?t("div",{staticClass:"error"}
1,[e._v("An account already exists with this email")]):e._e()])]),t("div",{staticClass:"form-group submit flex justify-end"},[t("transition",{attrs:{name:"fade"}},[e.emailChangeSuccess===!0?t("p",{key:"passwordSuccess",staticClass:"text-green-400"},[e._v("Please verify your new email address to update it in our system.")]):e._e()]),t("button",{staticClass:"font-bold bg-blue-500 text-white rounded-lg px-4 py-3 leading-none outline-none tracking-wide"},[e._v("Save Email")])],1)])])},ht=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Email")])])}];const z={};var wt=c(A,ft,ht,!1,gt,"6ecabccb",null,null);function gt(e){for(let a in z)this[a]=z[a]}var _t=function(){return wt.exports}(),Ct=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,se=(e,a,t,s)=>{for(var i=s>1?void 0:s?Pt(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Ct(a,t,i),i};let _=class extends u(h){get showExperimentalesFeatures(){return!0}toggleOption(e){!this.options||(this.options[e]=!this.options[e],g.saveAppConfig(e,this.options[e]),this.$AnalyticsTracker.track({eventName:`Option ${e} Changed`,properties:{name:e,newValue:this.options[e]}}))}};se([le()],_.prototype,"options",2);_=se([l({components:{UiButton:U,UiField:m}})],_);var xt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return e.showExperimentalesFeatures&&e.$config.app.isDesktop?t("section",{staticClass:"flex flex-col"},[e._m(0),t("ul",[e.$config.app.isDesktop?t("li",{staticClass:"flex items-center"},[e._m(1),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.enableHardwareAcceleration},on:{"update:active":function(s){return e.$set(e.options,"enableHardwareAcceleration",s)},click:function(s){return e.toggleOption("enableHardwareAcceleration")}}})],1)])]):e._e()])]):e._e()},yt=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Experimental features")]),t("span",{staticClass:"text-layout-error text-sm italic text-left"},[e._v("In a case of failure, you may lose videos.")])])},function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("span",[e._v("Enable hardware acceleration "),t("span",{staticClass:"italic"},[e._v("(Application restart needed)")])])}];const Z={};var bt=c(_,xt,yt,!1,$t,"81891b36",null,null);function $t(e){for(let a in Z)this[a]=Z[a]}var St=function(){return bt.exports}(),Ot=Object.defineProperty,At=Object.getOwnPropertyDescriptor,Dt=(e,a,t,s)=>{for(var i=s>1?void 0:s?At(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Ot(a,t,i),i};let D=class extends M{constructor(){super(...arguments),this.hasFileSizeError=!1,this.hasSuccess=!1}openSelector(){var e;(e=this.$refs.fileInput)==null||e.click()}async selectFile(e){const a=e.target.files[0].size;if(this.hasFileSizeError=a>5242880,this.hasFileSizeError)return;const t=await he.uploadImage(e.target.files[0],we.USER_IMAGE);await w.put({url:"/user/image",data:{imageUuid:t.uuid}}),this.$modules.session.setImageUrl(t.url),this.hasSuccess=!0}};D=Dt([l({components:{TheUserAvatar:fe}})],D);var kt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",[e._m(0),t("form",{staticClass:"pb-4"},[t("div",{staticClass:"form-group"},[t("div",{staticClass:"form-field flex-grow"},[t("div",{staticClass:"inline-flex"},[t("TheUserAvatar",{staticClass:"user-avatar mr-4 px-2 cursor-pointer",nativeOn:{click:function(s){return s.preventDefault(),e.openSelector(s)}}}),t("button",{staticClass:"font-bold bg-blue-500 text-white rounded-lg px-4 py-3 leading-none outline-none tracking-wide",on:{click:function(s){return s.preventDefault(),e.openSelector(s)}}},[e._v("Upload an image")])],1),e.hasFileSizeError?t("div",{staticClass:"error"},[e._v("The specified file could not be uploaded. The file is exceeding the maximum file size of 5mb.")]):e._e(
1),t("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:e.selectFile}})])]),t("div",{staticClass:"form-group submit flex justify-end"},[t("transition",{attrs:{name:"fade"}},[e.hasSuccess===!0?t("p",{staticClass:"text-green-400"},[e._v("Profile image changed successfully!")]):e._e()])],1)])])},It=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Profile image")])])}];const Y={};var Mt=c(D,kt,It,!1,Ut,"5316f66f",null,null);function Ut(e){for(let a in Y)this[a]=Y[a]}var Et=function(){return Mt.exports}(),Nt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Tt=(e,a,t,s)=>{for(var i=s>1?void 0:s?Rt(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Nt(a,t,i),i};let k=class extends u(E){constructor(){super(...arguments),this.hasSuccess=!1,this.firstname="",this.lastname="",this.title="",this.language=null}mounted(){var e,a,t;this.firstname=(e=this.$modules.session.user.firstname)!=null?e:"",this.lastname=(a=this.$modules.session.user.lastname)!=null?a:"",this.title=(t=this.$modules.session.user.title)!=null?t:""}async onSubmitChange(){var t;if(this.hasSuccess=!1,!await this.$validator.validateAll("changeProfile"))return;const a={firstname:this.firstname,lastname:this.lastname===""?void 0:this.lastname,title:this.title===""?void 0:this.title,language:(t=this.language)!=null?t:void 0};await p.user.updateProfile(a),this.$modules.session.setProfile(a),this.hasSuccess=!0}};k=Tt([l({components:{LanguagesSelect:_e,UiField:m}})],k);var Lt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",[e._m(0),t("form",{staticClass:"pb-4",attrs:{novalidate:"true","data-vv-scope":"changeProfile"},on:{submit:function(s){return s.preventDefault(),e.onSubmitChange(s)}}},[t("div",{staticClass:"form-group"},[t("div",{staticClass:"form-field flex-grow",class:{"has-error":e.errors.has("changeProfile.firstname")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.firstname,expression:"firstname"},{name:"validate",rawName:"v-validate",value:"required|min:2|max:255|noUrl",expression:"'required|min:2|max:255|noUrl'"}],ref:"firstname",attrs:{placeholder:"First name*",name:"firstname",type:"text","data-vv-as":"first name","data-vv-validate-on":"input"},domProps:{value:e.firstname},on:{input:function(s){s.target.composing||(e.firstname=s.target.value)}}}),e.errors.has("changeProfile.firstname")?t("div",{staticClass:"error"},[e._v(e._s(e.errors.first("changeProfile.firstname")))]):e._e()]),t("div",{staticClass:"form-field flex-grow",class:{"has-error":e.errors.has("changeProfile.lastname")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.lastname,expression:"lastname"},{name:"validate",rawName:"v-validate",value:"min:2|max:255|noUrl",expression:"'min:2|max:255|noUrl'"}],ref:"lastname",attrs:{placeholder:"Last name*",name:"lastname",type:"text","data-vv-as":"last name","data-vv-validate-on":"input"},domProps:{value:e.lastname},on:{input:function(s){s.target.composing||(e.lastname=s.target.value)}}}),e.errors.has("changeProfile.lastname")?t("div",{staticClass:"error"},[e._v(e._s(e.errors.first("changeProfile.lastname")))]):e._e()]),t("div",{staticClass:"form-field flex-grow",class:{"has-error":e.errors.has("changeProfile.title")}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"title"},{name:"validate",rawName:"v-validate",value:"min:2|max:42",expression:"'min:2|max:42'"}],ref:"title",attrs:{placeholder:"Title",name:"title",type:"text","data-vv-as":"title","data-vv-validate-on":"input"},domProps:{value:e.title},on:{input:function(s){s.target.composing||(e.title=s.target.value)}}}),e.errors.has("changeProfile.title")?t("div",{staticClass:"error"},[e._v(e._s(e.errors.first("changeProfile.title")))]):e._e()]),t("div",{staticClass:"form-field flex-grow",class:{"has-error":e.errors.has("changeProfile.title")}},[t("LanguagesSelect",{model:{value:e.language,callback:function(s){e.language=s},expression:"language"}})],1)]),t("div",{staticClass:"form-group submit flex justify-end"},[t("transition",{attrs:{name:"fade"}},[e.hasSuccess===!0?t("p",{key:"passwordSuccess",staticClass:"text-green-400 mr-2"}
1,[e._v("Profile changed successfully!")]):e._e()]),t("button",{staticClass:"font-bold bg-blue-500 text-white rounded-lg px-4 py-3 leading-none outline-none tracking-wide"},[e._v("Save Profile")])],1)])])},jt=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Profile")])])}];const J={};var Gt=c(k,Lt,jt,!1,Wt,"0aa847d9",null,null);function Wt(e){for(let a in J)this[a]=J[a]}var qt=function(){return Gt.exports}(),Vt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Bt=(e,a,t,s)=>{for(var i=s>1?void 0:s?Ft(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Vt(a,t,i),i};let I=class extends u(h){constructor(){super(...arguments),this.platform=navigator.platform.indexOf("Mac")!==-1?"mac":"windows",this.shortcuts=[{label:"Start recording",commands:{windows:"CTRL+ALT+R",mac:"OPT+CMD+R"}},{label:"Pause or resume the current recording",commands:{windows:"CTRL+ALT+P",mac:"OPT+CMD+P"}},{label:"Complete the current recording",commands:{windows:"CTRL+ALT+D",mac:"OPT+CMD+D"}},{label:"Hide or show the control bar while recording",commands:{windows:"CTRL+ALT+C",mac:"OPT+CMD+C"}},{label:"Switch your camera to fullscreen while recording",commands:{windows:"CTRL+ALT+F",mac:"OPT+CMD+F"}},{label:"Switch annotations drawing",commands:{windows:"CTRL+ALT+A",mac:"OPT+CMD+A"}}]}formatShortcutCommandToHtml(e){const a=e.split("+");let t="";return a.forEach((s,i)=>{t+=`<span>${s.trim()}</span>`,i!==a.length-1&&(t+=" + ")}),t}};I=Bt([l],I);var Kt=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"flex flex-col"},[e._m(0),t("ul",e._l(e.shortcuts,function(s){return t("li",{staticClass:"flex items-center"},[t("span",[e._v(e._s(s.label))]),t("p",{staticClass:"shortcut tracking-wide",domProps:{innerHTML:e._s(e.formatShortcutCommandToHtml(s.commands[e.platform]))}})])}),0)])},Ht=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Hotkeys")])])}];const Q={};var zt=c(I,Kt,Ht,!1,Zt,"42c16e41",null,null);function Zt(e){for(let a in Q)this[a]=Q[a]}var Yt=function(){return zt.exports}(),Jt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,C=(e,a,t,s)=>{for(var i=s>1?void 0:s?Qt(a,t):a,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(s?r(a,t,i):r(i))||i);return s&&i&&Jt(a,t,i),i};let f=class extends u(h,E){constructor(){super(...arguments),this.notifications=null,this.oldPassword="",this.newPassword="",this.confirmPassword="",this.passwordChangeSuccess=null,this.passwordAddedSuccess=null,this.passwordSubmittedOnce=!1,this.options=null,this.showDeleteAccountModal=!1,this.showCancellationModal=!1,this.showOldPassword=!1,this.showNewPassword=!1,this.showConfirmPassword=!1,this.deleteAccountReasons=[{text:"It takes too long to record and send a video.",isCustom:!1,isSelected:!1},{text:"It's hard to find my way around the platform. I'm lost.",isCustom:!1,isSelected:!1},{text:"The video conversations and comments are hard to follow.",isCustom:!1,isSelected:!1},{text:"The app is slowing down my computer.",isCustom:!1,isSelected:!1},{text:"I use another screencasting app.",isCustom:!1,isSelected:!1},{text:"Something else.",isCustom:!0,isSelected:!1}],this.recordCountDownDurationOptions=[{value:v.SECONDS_10,label:"10 seconds"},{value:v.SECONDS_5,label:"5 seconds"},{value:v.SECONDS_3,label:"3 seconds"},{value:v.SECONDS_2,label:"2 seconds"},{value:v.SECONDS_1,label:"1 second"},{value:v.NONE,label:"none"},{value:v.MANUAL,label:"manual"}],this.deleteAccountOtherReason="",this.isVisibleDropdown=!1,this.isVisibleMustSelect=!1,this.deleteAccountStep=1}get isOtherReasonSelected(){return this.deleteAccountReasons.find(a=>a.isCustom).isSelected}async logout(){await this.$AuthenticateService.logout()}get selectedReasons(){return this.deleteAccountReasons.filter(e=>e.isSelected).map(e=>e.isCustom&&this.deleteAccountOtherReason.trim().length>0?this.deleteAccountOtherReason.trim():e.text)}get canUseByokTranscription(){var e;return(e=this.$modules.session.user)==null?void 0:e.package.features.canUseByokTranscription}get canUseByokSummarization(){var e;return(e=this.$modules.session.user)==null?void 0:e.package.features.canUseByokSummarization}get canUseOwnOpenAIProvider(){return this.canUseByokTranscription||this.canUseByokSummarization}get canHideWatermark(){var e;return(e=this.$modules.session.user)==null?void 0:e.package.features.canHideWatermark}get showWatermark(){return this.canHideWatermark?this.options.hasWatermark:!0}created(){if(this.$config.app.isDesktop){const e=window.require("electron");e.ipcRenderer.on("options:getAll",(a,t)=>this.options=t),e.ipcRenderer.send("options:getAll")}}async saveNotification(e,a){a.isAllowed=!a.isAllowed,await w.post({url:"/user/settings/notifications",data:{notificationChannelId:a.notificationChannelId,isAllowed:a.isAllowed}})}async initializeData(){this.notifications=await w.get({url:"/user/settings/notifications"})}setClassName(e){return`${e.name}${e.isAllowed?" selected":""}`}updateOption(e){!this.$config.app.isDesktop||!this.options||g.saveAppConfig(e,this.options[e])}async toggleSetting(e){var s;const a=!((s=G.session.user)!=null&&s.settings[e]),t={name:e,value:a};await p.user.settings.update(t),G.session.setSetting(t)}toggleOption(e){!this.$config.app.isDesktop||!this.options||(this.options[e]=!this.options[e],g.saveAppConfig(e,this.options[e]))}toggleWatermark(){!this.$config.app.isDesktop||!this.options||this.canHideWatermark&&this.toggleOption("hasWatermark")}resetPasswordData(){this.oldPassword="",this.newPassword="",this.confirmPassword="",this.removePasswordMessage(),this.passwordSubmittedOnce=!1,this.$validator.reset()}removePasswordMessage(){this.passwordChangeSuccess=null,this.passwordAddedSuccess=null}async onSubmitChangePassword(){if(this.passwordSubmittedOnce=!0,this.removePasswordMessage(),!!await this.$validator.validateAll("changePassword"))try{await w.put({url:"/user/password",data:{oldPassword:this.oldPassword,newPassword:this.newPassword},options:{showBadRequestMessage:!1}}),this.resetPasswordData(),this.$modules.session.user.hasPassword?this.passwordChangeSuccess=!0:(this.$modules.session.setHasPassword(),this.passwordAddedSuccess=!0)}catch{this.passwordChangeSuccess=!1}}onClickDeleteAccount(){if(this.selectedReasons.length<=0){this.isVisibleMustSelect=!0;return}this.isVisibleMustSelect=!1,this.deleteAccountStep=2}async onDeleteModalHide(){this.deleteAccountStep===3&&window.location.reload()}async confirmDeleteAccount(){this.$AuthenticateService.deleteUser(this.selectedReasons),this.deleteAccountStep=3}async hideDeleteModal(){this.showDeleteAccountModal=!1,setTimeout(()=>{this.deleteAccountStep=1},2e3)}toggleDeleteAccountReason(e){e.isSelected=!e.isSelected,e.isSelected&&(this.isVisibleDropdown=!1)}onOldPasswordChange(){this.passwordSubmittedOnce&&this.$validator.validate("changePassword.oldPassword")}onNewPasswordChange(){this.passwordSubmittedOnce&&this.$validator.validate("changePassword.newPassword")}onConfirmPasswordChange(){this.passwordSubmittedOnce&&this.$validator.validate("changePassword.confirmPassword")}};C([N("oldPassword")],f.prototype,"onOldPasswordChange",1);C([N("newPassword")],f.prototype,"onNewPasswordChange",1);C([N("confirmPassword")],f.prototype,"onConfirmPasswordChange",1);f=C([l({components:{IconCheckCircle:ce,WebappLayout:pe,UiField:m,UiHeading:de,UserUpgradeBadge:ve,UiColumnsLayoutLinkElement:me,UserSettingGeneralDebug:at,UserSettingGeneralDevices:ut,UserSettingGeneralEmail:_t,UserSettingGeneralExperiments:St,UserSettingGeneralProfile:qt,UserSettingGeneralImage:Et,UserSettingGeneralMfa:ge,UserSettingGeneralShortcuts:Yt,UserSettingGeneralConversation:Ze,UserSettingGeneralAIProvider:We,PackagesCancellationModal:()=>ue(()=>import("./PackagesCancellationModal.b09fe350.js"),["assets/PackagesCancellationModal.b09fe350.js","assets/PackagesCancellationModal.493599f4.css","assets/index.8c7e38b2.js","assets/index.55499072.css","assets/UiField.579482ad.js","assets/UiField.eada6676.css","assets/ModalContainerMixin.0ac92752.js"]),IconEye:ee,IconEyeOff:te}})],f);var Xt="/assets/delete-account.83136990.png",es="/assets/delete-account-alone.8cae35b8.png",ts=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("WebappLayout",[t("template",{slot:"header"},[t("UiHeading",{attrs:{size:"3"}},[e._v("Settings")])],1),e.pageReady?t("div",[t("section",{staticClass:"notification"},[t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Notifications")])]),t("ul",[e._l(this.notifications,function(s,i){return t("li",{key:i},[t("span",[e._v(e._s(e.$i18n.t("notifications.opts."+s.name)))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},e._l(s.channels,function(o){return o.name==="mail"||o.name==="app"?t("ui-field",{key:o.notificationChannelId,staticClass:"mr-4",attrs:{type:"toggle",active:o.isAllowed,label:o.name==="mail"?"Email":"In App"},on:{"update:active":function(r){return e.$set(o,"isAllowed",r)},click:function(r){return e.saveNotification(i,o)}}}
1):e._e()}),1)])])}),e.$config.app.isDesktop?t("li",[t("span",[e._v(e._s(e.$i18n.t("options.allowNotifications")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.allowNotifications},on:{"update:active":function(s){return e.$set(e.options,"allowNotifications",s)},click:function(s){return e.toggleOption("allowNotifications")}}})],1)])]):e._e()],2)]),t("section",{staticClass:"notification"},[t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Options")])]),t("ul",[e.$config.app.isDesktop?[t("li",[t("span",[e._v(e._s(e.$i18n.t("options.autoStartOnStartup")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.autoStart},on:{"update:active":function(s){return e.$set(e.options,"autoStart",s)},click:function(s){return e.toggleOption("autoStart")}}})],1)])]),t("li",{class:{disabled:!e.canHideWatermark}},[e.canHideWatermark?t("span",[e._v(e._s(e.$i18n.t("options.hasWatermark")))]):t("UserUpgradeBadge",{attrs:{from:"User Settings Watermark"}},[e._v(e._s(e.$i18n.t("options.hasWatermark")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.showWatermark,title:e.canHideWatermark?"":"Business/Enterprise only"},on:{"update:active":function(s){e.showWatermark=s},click:function(s){return e.toggleWatermark()}}})],1)])],1),e.$config.app.isMac?e._e():t("li",[t("span",[e._v(e._s(e.$i18n.t("options.startRecordWithSpeakerEnable")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.startRecordWithSpeakerEnable},on:{"update:active":function(s){return e.$set(e.options,"startRecordWithSpeakerEnable",s)},click:function(s){return e.toggleOption("startRecordWithSpeakerEnable")}}})],1)])]),t("li",[t("span",[e._v(e._s(e.$i18n.t("options.startRecordWithMicrophoneEnable")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.startRecordWithMicrophoneEnable},on:{"update:active":function(s){return e.$set(e.options,"startRecordWithMicrophoneEnable",s)},click:function(s){return e.toggleOption("startRecordWithMicrophoneEnable")}}})],1)])]),t("li",[t("span",[e._v(e._s(e.$i18n.t("options.startRecordWithCameraEnable")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.startRecordWithCameraEnable},on:{"update:active":function(s){return e.$set(e.options,"startRecordWithCameraEnable",s)},click:function(s){return e.toggleOption("startRecordWithCameraEnable")}}})],1)])]),t("li",[t("span",[e._v(e._s(e.$i18n.t("options.mousetrail")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.mousetrail},on:{"update:active":function(s){return e.$set(e.options,"mousetrail",s)},click:function(s){return e.toggleOption("mousetrail")}}})],1)])]),t("li",[t("span",[e._v(e._s(e.$i18n.t("options.countDownDurationInSeconds")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{name:"recordCountDownDurationInSeconds",type:"select",options:e.recordCountDownDurationOptions},on:{change:function(s){return e.updateOption("recordCountDownDurationInSeconds")}},scopedSlots:e._u([{key:"default",fn:function(s){var i=s.option;return[t("option",{domProps:{value:i.value,selected:i.value==e.options.recordCountDownDurationInSeconds}},[e._v(e._s(i.label))])]}}],null,!1,1111714373),model:{value:e.options.recordCountDownDurationInSeconds,callback:function(s){e.$set(e.options,"recordCountDownDurationInSeconds",s)},expression:"options.recordCountDownDurationInSeconds"}})],1)])]),e.$config.app.isDesktop?t("li",{staticClass:"flex items-center"},[t("span",[e._v("Auto copy link into clipboard")]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.autoCopyLink},on:{"update:active":function(s){return e.$set(e.options,"autoCopyLink",s)},click:function(s){return e.toggleOption("autoCopyLink")}}}
1)],1)])]):e._e(),t("li",[t("span",[e._v(e._s(e.$i18n.t("options.showLaunchPad")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.showLaunchPad},on:{"update:active":function(s){return e.$set(e.options,"showLaunchPad",s)},click:function(s){return e.toggleOption("showLaunchPad")}}})],1)])]),t("li",[t("span",[e._v(e._s(e.$i18n.t("options.showTray")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.showTray},on:{"update:active":function(s){return e.$set(e.options,"showTray",s)},click:function(s){return e.toggleOption("showTray")}}})],1)])]),e.$config.app.isMac?t("li",[t("span",[e._v(e._s(e.$i18n.t("options.showMacOsDock")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.showMacOsDock},on:{"update:active":function(s){return e.$set(e.options,"showMacOsDock",s)},click:function(s){return e.toggleOption("showMacOsDock")}}})],1)])]):e._e(),e.$config.app.isDesktop?t("li",[t("span",[e._v(e._s(e.$i18n.t("options.enableRecordingShortcut")))]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.options.enableRecordingShortcut},on:{"update:active":function(s){return e.$set(e.options,"enableRecordingShortcut",s)},click:function(s){return e.toggleOption("enableRecordingShortcut")}}})],1)])]):e._e()]:e._e(),t("li",{staticClass:"flex items-center"},[t("span",[e._v("Generate auto-title by AI (need transcript)")]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.$modules.session.user.settings.allowGenerateConversationName},on:{"update:active":function(s){return e.$set(e.$modules.session.user.settings,"allowGenerateConversationName",s)},click:function(s){return e.toggleSetting("allowGenerateConversationName")}}})],1)])]),t("li",{staticClass:"flex items-center"},[t("span",[e._v("Generate auto-description by AI (need transcript)")]),t("div",{staticClass:"flex toggle"},[t("div",{staticClass:"flex items-center"},[t("ui-field",{attrs:{type:"toggle",active:e.$modules.session.user.settings.allowGenerateConversationDescription},on:{"update:active":function(s){return e.$set(e.$modules.session.user.settings,"allowGenerateConversationDescription",s)},click:function(s){return e.toggleSetting("allowGenerateConversationDescription")}}})],1)])])],2)]),e.canUseOwnOpenAIProvider?t("UserSettingGeneralAIProvider"):e._e(),t("UserSettingGeneralConversation"),e.$config.app.isDesktop?t("UserSettingGeneralDevices",{staticClass:"notification"}):e._e(),e.$config.app.isDesktop?t("UserSettingGeneralShortcuts",{staticClass:"notification"}):e._e(),t("UserSettingGeneralExperiments",{staticClass:"notification",attrs:{options:e.options}}),e.$config.app.isDesktop?t("user-setting-general-debug",{staticClass:"notification"}):e._e(),t("UserSettingGeneralEmail"),t("UserSettingGeneralProfile"),t("UserSettingGeneralImage",{attrs:{id:"UserAvatar"}}),t("section",{staticClass:"notification"},[t("header",[t("h3",{staticClass:"text-blue-500 tracking-wide"},[e._v("Password")])]),t("form",{staticClass:"pb-4",attrs:{novalidate:"true","data-vv-scope":"changePassword"},on:{submit:function(s){return s.preventDefault(),e.onSubmitChangePassword(s)}}},[t("div",{staticClass:"form-group"},[e.$modules.session.user.hasPassword?t("div",{staticClass:"form-field",class:{"has-error":e.errors.has("changePassword.oldPassword")||e.passwordChangeSuccess===!1}},[t("div",{staticClass:"relative flex items-center"},[(e.showOldPassword?"text":"password")=="checkbox"?t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},e.$config.password.length),expression:"{ required: true, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.oldPassword,expression:"oldPassword"}],ref:"oldPassword",staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"oldPassword",placeholder:"Old Password","data-vv-as":"old password",type:"checkbox"},domProps:{checked:Array.isArray(e.oldPassword)?e._i(e.oldPassword,null)>-1:e.oldPassword},on:{change:function(s){var i=e.oldPassword,o=s.target,r=!!o.checked;if(Array.isArray(i)){var d=null,n=e._i(i,d);o.checked?n<0&&(e.oldPassword=i.concat([d])):n>-1&&(e.oldPassword=i.slice(0,n).concat(i.slice(n+1)))}else e.oldPassword=r}}}):(e.showOldPassword?"text":"password")=="radio"?t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},e.$config.password.length),expression:"{ required: true, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.oldPassword,expression:"oldPassword"}],ref:"oldPassword",staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"oldPassword",placeholder:"Old Password","data-vv-as":"old password",type:"radio"},domProps:{checked:e._q(e.oldPassword,null)},on:{change:function(s){e.oldPassword=null}}}):t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},e.$config.password.length),expression:"{ required: true, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.oldPassword,expression:"oldPassword"}],ref:"oldPassword",staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"oldPassword",placeholder:"Old Password","data-vv-as":"old password",type:e.showOldPassword?"text":"password"},domProps:{value:e.oldPassword},on:{input:function(s){s.target.composing||(e.oldPassword=s.target.value)}}}),t("button",{staticClass:"absolute right-2 flex items-center justify-center text-gray-500 hover_text-gray-700 w-6 h-6",attrs:{type:"button"}
1,on:{click:function(s){e.showOldPassword=!e.showOldPassword}}},[e.showOldPassword?e._e():t("icon-eye"),e.showOldPassword?t("icon-eye-off"):e._e()],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.errors.first("changePassword.oldPassword"),expression:'errors.first("changePassword.oldPassword")'}],staticClass:"error"},[e._v(e._s(e.errors.first("changePassword.oldPassword")))])]):e._e(),t("div",{staticClass:"form-field",class:{"has-error":e.errors.has("changePassword.newPassword")}},[t("div",{staticClass:"relative flex items-center"},[(e.showNewPassword?"text":"password")=="checkbox"?t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},e.$config.password.length),expression:"{ required: true, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.newPassword,expression:"newPassword"}],ref:"newPassword",staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"newPassword",placeholder:"New Password","data-vv-as":"new password",type:"checkbox"},domProps:{checked:Array.isArray(e.newPassword)?e._i(e.newPassword,null)>-1:e.newPassword},on:{change:function(s){var i=e.newPassword,o=s.target,r=!!o.checked;if(Array.isArray(i)){var d=null,n=e._i(i,d);o.checked?n<0&&(e.newPassword=i.concat([d])):n>-1&&(e.newPassword=i.slice(0,n).concat(i.slice(n+1)))}else e.newPassword=r}}}):(e.showNewPassword?"text":"password")=="radio"?t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},e.$config.password.length),expression:"{ required: true, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.newPassword,expression:"newPassword"}],ref:"newPassword",staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"newPassword",placeholder:"New Password","data-vv-as":"new password",type:"radio"},domProps:{checked:e._q(e.newPassword,null)},on:{change:function(s){e.newPassword=null}}}):t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},e.$config.password.length),expression:"{ required: true, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.newPassword,expression:"newPassword"}],ref:"newPassword",staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"newPassword",placeholder:"New Password","data-vv-as":"new password",type:e.showNewPassword?"text":"password"},domProps:{value:e.newPassword},on:{input:function(s){s.target.composing||(e.newPassword=s.target.value)}}}),t("button",{staticClass:"absolute right-2 flex items-center justify-center text-gray-500 hover_text-gray-700 w-6 h-6",attrs:{type:"button"},on:{click:function(s){e.showNewPassword=!e.showNewPassword}}},[e.showNewPassword?e._e():t("icon-eye"),e.showNewPassword?t("icon-eye-off"):e._e()],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.errors.first("changePassword.newPassword"),expression:'errors.first("changePassword.newPassword")'}],staticClass:"error"},[e._v(e._s(e.errors.first("changePassword.newPassword")))])]),t("div",{staticClass:"form-field",class:{"has-error":e.errors.has("changePassword.confirmPassword")}},[t("div",{staticClass:"relative flex items-center"},[(e.showConfirmPassword?"text":"password")=="checkbox"?t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0,is:e.newPassword},e.$config.password.length),expression:"{ required: true, is: newPassword, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.confirmPassword,expression:"confirmPassword"}],staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"confirmPassword",placeholder:"Confirm new Password","data-vv-as":"confirmation password",type:"checkbox"},domProps:{checked:Array.isArray(e.confirmPassword)?e._i(e.confirmPassword,null)>-1:e.confirmPassword},on:{change:function(s){var i=e.confirmPassword,o=s.target,r=!!o.checked;if(Array.isArray(i)){var d=null,n=e._i(i,d);o.checked?n<0&&(e.confirmPassword=i.concat([d])):n>-1&&(e.confirmPassword=i.slice(0,n).concat(i.slice(n+1)))}else e.confirmPassword=r}}}):(e.showConfirmPassword?"text":"password")=="radio"?t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0,is:e.newPassword},e.$config.password.length),expression:"{ required: true, is: newPassword, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.confirmPassword,expression:"confirmPassword"}],staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"confirmPassword",placeholder:"Confirm new Password","data-vv-as":"confirmation password",type:"radio"},domProps:{checked:e._q(e.confirmPassword,null)},on:{change:function(s){e.confirmPassword=null}}}):t("input",{directives:[{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0,is:e.newPassword},e.$config.password.length),expression:"{ required: true, is: newPassword, ...$config.password.length }"},{name:"model",rawName:"v-model",value:e.confirmPassword,expression:"confirmPassword"}],staticClass:"w-full px-3 pr-10 py-2",attrs:{name:"confirmPassword",placeholder:"Confirm new Password","data-vv-as":"confirmation password",type:e.showConfirmPassword?"text":"password"},domProps:{value:e.confirmPassword},on:{input:function(s){s.target.composing||(e.confirmPassword=s.target.value)}}}),t("button",{staticClass:"absolute right-2 flex items-center justify-center text-gray-500 hover_text-gray-700 w-6 h-6",attrs:{type:"button"}
1,on:{click:function(s){e.showConfirmPassword=!e.showConfirmPassword}}},[e.showConfirmPassword?e._e():t("icon-eye"),e.showConfirmPassword?t("icon-eye-off"):e._e()],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.errors.first("changePassword.confirmPassword"),expression:'errors.first("changePassword.confirmPassword")'}],staticClass:"error"},[e._v(e._s(e.errors.first("changePassword.confirmPassword")))])])]),t("div",{staticClass:"form-group submit flex justify-end"},[t("transition",{attrs:{name:"fade"}},[e.passwordChangeSuccess===!0?t("p",{key:"passwordSuccess",staticClass:"text-green-400"},[e._v("Password changed successfully!")]):e._e()]),t("transition",{attrs:{name:"fade"}},[e.passwordChangeSuccess===!1?t("p",{key:"passwordWrong",staticClass:"text-red-400"},[e._v("Wrong old password.")]):e._e()]),t("transition",{attrs:{name:"fade"}},[e.passwordAddedSuccess===!0?t("p",{key:"passwordAdded",staticClass:"text-green-400"},[e._v("Password added successfully!")]):e._e()]),t("button",{staticClass:"font-bold bg-blue-500 text-white rounded-lg px-4 py-3 leading-none outline-none tracking-wide"},[e._v("Save Password")])],1)])]),e.$modules.session.user.hasPassword?t("UserSettingGeneralMfa"):e._e(),t("section",{staticClass:"flex gap-5"},[t("button",{staticClass:"text-red-400 tracking-wide cursor-pointer border-2 border-red-400 text-sm rounded-lg px-4 py-3 leading-none",on:{click:function(s){e.showDeleteAccountModal=!0}}},[e._v("Delete My Account ")]),e.$modules.session.user.package.isRecurring?t("button",{staticClass:"text-red-400 tracking-wide cursor-pointer border-2 border-red-400 text-sm rounded-lg px-4 py-3 leading-none",on:{click:function(s){e.showCancellationModal=!0}}},[e._v("Cancel My Subscription ")]):e._e(),t("button",{staticClass:"tracking-wide cursor-pointer text-sm rounded-lg px-4 py-3 mx-4 leading-none",on:{click:function(s){return e.logout()}}},[e._v("Sign out ")]),t("modal",{attrs:{width:"680px",title:"Delete Account",hasBackButton:e.deleteAccountStep===2},on:{back:function(s){--e.deleteAccountStep},hidden:e.onDeleteModalHide},model:{value:e.showDeleteAccountModal,callback:function(s){e.showDeleteAccountModal=s},expression:"showDeleteAccountModal"}},[t("div",{staticClass:"relative"},[e.deleteAccountStep===1?t("div",{staticClass:"flex flex-col flex-grow items-center"},[t("img",{staticClass:"mb-3",attrs:{src:Xt}}),t("div",{staticClass:"my-8 text-center"},[t("p",{staticClass:"font-bold text-blue-500"},[e._v("Before you go,")]),t("p",{staticClass:"text-blue-500"},[e._v("Tell us why you want to delete your account.")])]),t("div",{staticClass:"select"},[t("div",{staticClass:"form-group"},[t("div",{staticClass:"form-field"},[t("ul",[t("li",{staticClass:"form-input",class:{show:e.isVisibleDropdown},on:{click:function(s){e.isVisibleDropdown=!e.isVisibleDropdown}}},[t("span",[e._v(e._s(e.selectedReasons.length>0?"("+e.selectedReasons.length+") option(s) selected":"Select an option")),t("i",{staticClass:"arrow arrow--down"})]),t("ul",{staticClass:"dropdown"},e._l(e.deleteAccountReasons,function(s){return t("li",{class:{selected:s.isSelected},on:{click:function(i){return i.stopPropagation(),e.toggleDeleteAccountReason(s)}}},[t("span",[e._v(e._s(s.text))]),t("span",{staticClass:"checkbox"},[t("icon-check-circle",{staticClass:"inline h-auto w-full fill-current",attrs:{checked:s.isSelected}})],1)])}),0)])])])]),t("p",{directives:[{name:"show",rawName:"v-show",value:e.isVisibleMustSelect&&e.selectedReasons.length<=0,expression:"isVisibleMustSelect && selectedReasons.length <= 0"}],staticClass:"error"},[e._v("Oops, looks like you forgot something! Select an option above to delete your account.")]),e.isOtherReasonSelected&&!e.isVisibleDropdown?t("div",{staticClass:"form-group mt-3"},[t("div",{staticClass:"form-field"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.deleteAccountOtherReason,expression:"deleteAccountOtherReason"}],attrs:{name:"other",type:"text",autocomplete:"off",placeholder:"Tell us more here (optional)"},domProps:{value:e.deleteAccountOtherReason},on:{input:function(s){s.target.composing||(e.deleteAccountOtherReason=s.target.value)}}}
1)])]):e._e()]),e.isVisibleDropdown?e._e():t("button",{staticClass:"btn btn--danger mt-8 mb-1",on:{click:function(s){return e.onClickDeleteAccount()}}},[e._v("Delete account")]),e.isVisibleDropdown?t("div",{staticClass:"invisibleBackdrop",on:{click:function(s){e.isVisibleDropdown=!1}}}):e._e()]):e._e(),e.deleteAccountStep===2?t("div",{staticClass:"flex flex-col flex-grow items-center"},[t("p",{staticClass:"mb-5 text-blue-500"},[e._v("Are you sure you want to permanently delete your account?")]),t("div",{staticClass:"flex"},[t("button",{staticClass:"btn btn--danger",on:{click:function(s){return e.confirmDeleteAccount(!0)}}},[e._v("Yes, delete!")]),t("button",{staticClass:"btn btn--cancel",on:{click:function(s){return e.hideDeleteModal()}}},[e._v("Cancel")])])]):e._e(),e.deleteAccountStep===3?t("div",{staticClass:"flex flex-col flex-grow items-center"},[t("img",{staticClass:"mb-3",attrs:{src:es}}),t("div",{staticClass:"my-6 text-center"},[t("p",{staticClass:"text-blue-500"},[e._v("We're sad to see you go! Thanks for trying Berrycast."),t("br"),e._v(" We hope to see you again, so don't be a stranger!")])])]):e._e()])])],1)],1):e._e(),e.showCancellationModal?t("PackagesCancellationModal",{attrs:{show:e.showCancellationModal},on:{"update:show":function(s){e.showCancellationModal=s}}}):e._e()],2)},ss=[];const X={};var as=c(f,ts,ss,!1,is,"8ca7427e",null,null);function is(e){for(let a in X)this[a]=X[a]}var Us=function(){return as.exports}();export{Us 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.