PageSourceSearch

https://www.berrycast.com/assets/PageElectronLaunchPad.609d5757.js

js berrycast.com collected 2026-10-01 10:27:21 UTC 13,976 bytes, 1 lines download raw bytes

1import{C as c,V as u,n as d,W as P,p as v,aE as x,U as T,ai as $,aj as b,ak as C,a6 as R,a0 as U,T as E}from"./index.8c7e38b2.js";import{T as W,_ as M}from"./ico-bell.ac5832c0.js";import{E as B}from"./ElectronMovable.5071921a.js";import{I}from"./IconRec.3ee34526.js";import{U as S}from"./UserService.ade6986e.js";import{_ as j}from"./ico-videos.7227efc9.js";import{_ as q,a as O}from"./IconDrag.00871709.js";import{_ as V}from"./ico-settings-plain.551b6e25.js";var k=Object.defineProperty,z=Object.getOwnPropertyDescriptor,D=(e,i,t,s)=>{for(var n=s>1?void 0:s?z(i,t):i,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(i,t,n):a(n))||n);return s&&n&&k(i,t,n),n};let p=class extends u{};p=D([c],p);var L=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("icon",{attrs:{width:"13",height:"10"}},[t("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.871908 0C0.687813 0 0.538574 0.149238 0.538574 0.333333V9.66667C0.538574 9.85076 0.687813 10 0.871908 10H5.53857C5.72267 10 5.87191 9.85076 5.87191 9.66667V8.33333C5.87191 8.14924 5.72267 8 5.53857 8H2.53857V2H5.53857C5.72267 2 5.87191 1.85076 5.87191 1.66667V0.333333C5.87191 0.149238 5.72267 0 5.53857 0H0.871908ZM9.92232 1.82439C9.59097 1.47086 9.04425 1.47086 8.7129 1.82439C8.39307 2.16561 8.39307 2.71046 8.7129 3.05168L9.8445 4.25899H4.71477C4.23087 4.25899 3.87191 4.67337 3.87191 5.13778C3.87191 5.60433 4.22905 6.01656 4.71477 6.01656H9.84472L8.7129 7.22411C8.39307 7.56534 8.39307 8.11018 8.7129 8.4514C9.04425 8.80493 9.59097 8.80493 9.92232 8.4514L12.4529 5.75154C12.7727 5.41032 12.7727 4.86547 12.4529 4.52425L9.92232 1.82439Z"}})])},H=[];const _={};var N=d(p,L,H,!1,F,"1dcbf4f2",null,null);function F(e){for(let i in _)this[i]=_[i]}var A=function(){return N.exports}(),Z=Object.defineProperty,G=Object.getOwnPropertyDescriptor,Q=(e,i,t,s)=>{for(var n=s>1?void 0:s?G(i,t):i,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(i,t,n):a(n))||n);return s&&n&&Z(i,t,n),n};let h=class extends u{};h=Q([c],h);var J=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("icon",{attrs:{width:"4",height:"14","view-box":"0 0 4 14"}},[t("circle",{attrs:{cx:"2",cy:"7",r:"2"}}),t("circle",{attrs:{cx:"2",cy:"12",r:"2"}}),t("circle",{attrs:{cx:"2",cy:"2",r:"2"}})])},K=[];const m={};var X=d(h,J,K,!1,Y,"ebb8f770",null,null);function Y(e){for(let i in m)this[i]=m[i]}var ee=function(){return X.exports}(),te=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ie=(e,i,t,s)=>{for(var n=s>1?void 0:s?se(i,t):i,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(i,t,n):a(n))||n);return s&&n&&te(i,t,n),n};let f=class extends u{};f=ie([c],f);var ne=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"ui-backdrop"},[e._t("default")],2)},oe=[];const g={};var ae=d(f,ne,oe,!1,re,"3af8d47a",null,null);function re(e){for(let i in g)this[i]=g[i]}var le=function(){return ae.exports}(),r=(e=>(e.NORTH="north",e.EAST="east",e.WEST="west",e.SOUTH="south",e))(r||{}),ce=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,y=(e,i,t,s)=>{for(var n=s>1?void 0:s?ue(i,t):i,o=e.length-1,a;o>=0;o--)(a=e[o])&&(n=(s?a(i,t,n):a(n))||n);return s&&n&&ce(i,t,n),n};let l=class extends u{constructor(){super(...arguments),this.isCollapse=!1,this.blockMouseEvent=!1,this.pulse=!1,this.isWillingToExit=!1,this.offset=0,this.hasUpdate=!1,this.cardinalPoint=r.WEST,this.isTutorialWhereIsMyVideo=!1,this.isTutorialWhereIsRecordButton=!1,this.hoverTimeout=void 0,this.hoverTimeoutTime=150,this.inactivityTimeout=void 0,this.inactivityTimeoutTime=2500,this.outTimeout=void 0,this.outTimeoutTime=500}get showNotificationBadge(){return this.unReadNotifications}get badgeValue(){return this.unReadNotifications||"!"}get unReadNotifications(){return this.$modules.notifications.unreads?this.$modules.notifications.unreads.length:""}get launchPadSize(){const e=this.isCollapse?"collapsed":"expanded";return this.cardinalPoint==="north"||this.cardinalPoint==="south"?e==="collapsed"?`height: ${v.launchPad[this.cardinalPoint][e].height}px`:"":e==="collapsed"?`width: ${v.launchPad[this.cardinalPoint][e].width}px`:""}get isBackdrop(){return this.isTutorialWhereIsMyVideo||this.isTutorialWhereIsRecordButton}get classes(){return{"is-collapsed":this.isCollapse,"is-expanded":!this.isCollapse,"is-dev":this.$config.environment.isDevelopment,"is-staging":this.$config.environment.isStaging,[`${this.cardinalPoint}`]:!0}}
1get myVideoButtonClasses(){return this.isTutorialWhereIsMyVideo?"hasTutorial":""}get recordButtonClasses(){return this.isTutorialWhereIsRecordButton?"hasTutorial":""}created(){const e=window.require("electron");e.ipcRenderer.on("launchpad:expanded",()=>{this.isCollapse=!1}),e.ipcRenderer.on("launchpad:pulse:start",()=>this.pulse=!0),e.ipcRenderer.on("launchpad:pulse:stop",()=>this.pulse=!1),e.ipcRenderer.on("launchpad:collapsed",()=>{this.isCollapse=!0,this.isWillingToExit=!1,this.isTutorialWhereIsMyVideo=!1,this.isTutorialWhereIsRecordButton=!1}),e.ipcRenderer.on("launchpad:resized",(i,t)=>{this.offset=t.offset}),e.ipcRenderer.on("launchpad:cardinalPoint:set",(i,t)=>{this.cardinalPoint=t.cardinalPoint}),e.ipcRenderer.on("tutorials:whereIsMyVideo",()=>{this.isTutorialWhereIsMyVideo=!0}),e.ipcRenderer.on("tutorials:whereIsRecordButton",()=>{this.openTutorialWhereIsRecordButton()}),e.ipcRenderer.on("version:update",async(i,t)=>{this.hasUpdate=t.hasUpdate}),e.ipcRenderer.send("version:update"),this.startInactivityTimer()}mounted(){window.require("electron").ipcRenderer.send("launchPadWindow:mounted")}expand(){this.isCollapse=!1}collapse(){const e=window.require("electron");this.inactivityTimeout&&clearTimeout(this.inactivityTimeout),e.ipcRenderer.send("launchPadWindow:collapse")}openTutorialWhereIsRecordButton(){this.isTutorialWhereIsRecordButton=!0}startInactivityTimer(){this.inactivityTimeout=setTimeout(()=>this.handleInactivity(),this.inactivityTimeoutTime)}resetInactivityTimer(){this.inactivityTimeout&&clearTimeout(this.inactivityTimeout),this.startInactivityTimer()}handleInactivity(){this.collapse()}onIsCollapse(){this.blockMouseEvent=!0,setTimeout(()=>{this.blockMouseEvent=!1},300)}setOffset(){let e;switch(this.cardinalPoint){case r.NORTH:e=`padding-top: ${this.offset}px`;break;case r.SOUTH:e=`padding-bottom: ${this.offset}px`;break;case r.EAST:e=`padding-right: ${this.offset}px`;break;case r.WEST:default:e=`padding-left: ${this.offset}px`;break}return e}onDrag(e){this.cardinalPoint=e.cardinalPoint}onMouseEnter(){this.blockMouseEvent||(clearTimeout(this.outTimeout),this.hoverTimeout=setTimeout(()=>{window.require("electron").ipcRenderer.send("launchPadWindow:expand")},this.hoverTimeoutTime))}onMouseLeave(){clearTimeout(this.hoverTimeout),this.outTimeout=setTimeout(()=>{this.collapse()},this.outTimeoutTime)}exitApp(){setTimeout(()=>{window.require("electron").ipcRenderer.send("app:exit")})}async openRequestVideo(){if(this.blockMouseEvent)return;const e=window.require("electron");e.ipcRenderer.send("launchPadWindow:collapse"),e.ipcRenderer.send("webapp:requestVideo")}async displaySettings(){if(this.blockMouseEvent)return;const e=window.require("electron");e.ipcRenderer.send("launchPadWindow:collapse"),e.ipcRenderer.send("webapp:settings")}async displayConversations(){if(this.blockMouseEvent)return;const e=window.require("electron");e.ipcRenderer.send("launchPadWindow:collapse"),e.ipcRenderer.send("webapp:conversations")}async displayNotifications(){if(this.blockMouseEvent)return;const e=window.require("electron");e.ipcRenderer.send("launchPadWindow:collapse"),e.ipcRenderer.send("webapp:notifications")}async startRecordingSession(){if(this.blockMouseEvent)return;const e=window.require("electron");e.ipcRenderer.send("launchPadWindow:collapse"),await S.checkCanRecord()&&e.ipcRenderer.send("record:start")}async onMouseUpLogin(){if(this.blockMouseEvent)return;window.require("electron").ipcRenderer.send("auth:openAuthenticationWindow")}closeTutorialWhereIsMyVideo(){this.isTutorialWhereIsMyVideo=!1}};y([P("isCollapse")],l.prototype,"onIsCollapse",1);l=y([c({components:{DropMenu:x,ElectronMovable:B,IconExit:A,IconLaunchPad:ee,IconRec:I,Tooltip:W,UIBackdrop:le,UiButton:T,UiButtonGroup:$,UiDropDown:b,UiDropDownItem:C,UiEmptyState:R,UiHeading:U,UiStack:E}})],l);var de="/assets/IconRecordRequest.06093efb.svg",pe=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"launchPad || flex flex-col h-screen w-screen",class:e.classes,style:e.setOffset()}
1,[t("ElectronMovable",{staticClass:"flex ",class:{"flex-grow self-end":e.cardinalPoint==="east","mr-auto flex-grow":e.cardinalPoint==="west","mt-auto":e.cardinalPoint==="south"},style:e.launchPadSize,attrs:{namespace:"launchpad","allow-drag":!e.isCollapse},on:{enter:e.onMouseEnter,leave:e.onMouseLeave,drag:e.onDrag,move:function(s){return e.resetInactivityTimer()}}},[t("div",{staticClass:"launchPad__wrapper flex"}),t("transition",{attrs:{name:"fade"}},[e.isCollapse?e._e():t("UiStack",{class:{"launchPad__inner || self-center flex-grow bg-white absolute inset-0 z-50 p-4 shadow-md":!0,"h-full":!e.$modules.session.isAuthenticated},attrs:{gap:"sm",justify:"space-between",direction:e.cardinalPoint==="north"||e.cardinalPoint==="south"?"vertical":"horizontal",reverse:e.cardinalPoint==="south"||e.cardinalPoint==="east"}},[e.$modules.session.isAuthenticated?t("UiStack",{staticClass:"bg-white",attrs:{direction:"vertical",gap:"sm"}},[t("UiStack",{attrs:{gap:"sm",justify:"space-between"}},[t("UiButton",{attrs:{variant:"plain",size:"sm"},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.displayConversations()}}},[t("inline-svg",{staticClass:"w-4 h-auto fill-current",attrs:{slot:"start",src:j},slot:"start"}),e._v(e._s(e.$t("launchPad.conversations")))],1),t("UiButton",{staticClass:"c-notification-bell hover:bg-opacity-20",class:{"has-notifications":e.showNotificationBadge},attrs:{size:"sm",variant:"plain",pill:""},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.displayNotifications()}}},[t("inline-svg",{staticClass:"fill-current mx-auto w-4 h-auto flex-shrink-0",attrs:{src:M}}),e.showNotificationBadge?t("div",{staticClass:"absolute bottom-0 translate-x-1/2"},[t("div",{staticClass:"w-4 h-4 border-1 border-white rounded-full font-semibold leading-4 bg-layout-accent text-white px-1 py-0 text-[9px] aspect-square"},[e._v(e._s(e.badgeValue))])]):e._e()],1)],1),t("UiStack",{attrs:{direction:"vertical",gap:"sm"}},[t("UiButton",{staticClass:"record",attrs:{variant:"secondary",expand:""},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.startRecordingSession()}}},[t("inline-svg",{staticClass:"w-4 h-auto",attrs:{slot:"start",src:q},slot:"start"}),e._v(e._s(e.$t("launchPad.record")))],1),t("UiButton",{attrs:{expand:""},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.openRequestVideo()}}},[t("inline-svg",{staticClass:"w-4 h-auto",attrs:{slot:"start",src:de},slot:"start"}),e._v("Request Video")],1)],1),t("UiStack",{attrs:{justify:"space-between"}},[t("UiButton",{attrs:{variant:"plain",size:"sm"},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.displaySettings()}}},[t("inline-svg",{staticClass:"w-3 h-auto",attrs:{slot:"start",src:V},slot:"start"}),e._v(e._s(e.$t("launchPad.settings"))),e.hasUpdate?t("badge",{attrs:{slot:"end",value:"!"},slot:"end"}):e._e()],1),t("UiButton",{attrs:{variant:"plain",size:"sm",title:e.$i18n.t("launchPad.exit")},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){e.isWillingToExit=!0}}},[t("IconExit",{attrs:{slot:"start"},slot:"start"})],1)],1)],1):e._e(),!e.$modules.session.isAuthenticated&&!e.isWillingToExit?t("div",{staticClass:"absolute inset-0 flex items-center justify-center text-center bg-white rounded-md z-10"},[t("UiStack",{attrs:{size:"sm"}},[t("UiButton",{attrs:{variant:"secondary"},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.onMouseUpLogin()}}},[e._v("Login")]),t("UiButton",{attrs:{title:e.$i18n.t("launchPad.exit")},on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){e.isWillingToExit=!0}}},[t("IconExit",{attrs:{slot:"start"},slot:"start"}),e._v(e._s(e.$t("launchPad.exit")))],1)],1)],1):e._e(),t("div",{staticClass:"handle cursor-move flex items-center justify-center"},[t("inline-svg",{staticClass:"max-w-full h-auto",class:{"-rotate-90":e.cardinalPoint==="west"||e.cardinalPoint==="east"},attrs:{src:O}})],1),e.isWillingToExit?t("div",{key:"closeConfirm",staticClass:"absolute inset-0 flex items-center justify-center text-center bg-white rounded-md"},[t("UiEmptyState",[t("UiHeading",{staticClass:"mb-2",attrs:{size:"6"}},[e._v(e._s(e.$i18n.t("launchPad.reallySureToQuit")))]),t("UiStack",{attrs:{align:"center",justify:"center",gap:"sm"}},[t("UiButton",{on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){return e.exitApp()}}},[e._v(e._s(e.$i18n.t("global.yes")))]),t("UiButton",{on:{mousedown:function(s){s.stopPropagation()},mouseup:function(s){e.isWillingToExit=!1}}}
1,[e._v(e._s(e.$i18n.t("global.no")))])],1)],1)],1):e._e(),e.isBackdrop?t("UIBackdrop",{staticClass:"rounded-r-lg"}):e._e()],1),t("badge",{directives:[{name:"show",rawName:"v-show",value:e.isCollapse&&(e.hasUpdate||e.showNotificationBadge),expression:"isCollapse && (hasUpdate || showNotificationBadge)"}],staticClass:"notifications",attrs:{value:e.badgeValue}})],1)],1),t("transition",{attrs:{name:"fade"}},[e.pulse?t("div",{key:"pulse",staticClass:"w-full h-full absolute top-0 left-0 overflow-hidden",style:e.setOffset()},[t("div",{staticClass:"relative overflow-hidden h-full w-full"},[t("div",{staticClass:"pulse-circle flex items-center justify-center w-full h-full"},[t("span")])])]):e._e()])],1)},he=[];const w={};var fe=d(l,pe,he,!1,ve,"0c4af96c",null,null);function ve(e){for(let i in w)this[i]=w[i]}var _e=function(){return fe.exports}(),be=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"}));export{_e as P,le as U,be as a};

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.