import{c as r}from"./vendor-redux-CJZrIb6x.js";import{a5 as s,i}from"./index-BKr2rJhV.js";const p=({loading:e})=>e.effects.jupyter.fetchEnvironmentReadyness||e.effects.jupyter.fetchSettings;r(e=>e.jupyter,e=>e.loading.effects.jupyter.fetchEnvironmentReadyness||e.loading.effects.jupyter.fetchRunningServer||e.loading.effects.jupyter.fetchRunningSparkApplications||e.loading.effects.jupyter.fetchRunningRayApplications||e.loading.effects.jupyter.fetchSettings,(e,t)=>({data:e,isLoading:t}));r(e=>e.jupyter.environment,e=>e.loading.effects.jupyter.fetchEnvironmentReadyness,(e,t)=>({data:e,isLoading:t}));const u=r(e=>e.jupyter.runningServer,e=>e.loading.effects.jupyter.fetchRunningServer,(e,t)=>({data:e,isLoading:t})),a=r(e=>e.jupyter.runningApplications,e=>e.loading.effects.jupyter.fetchRunningSparkApplications||e.loading.effects.jupyter.fetchRunningRayApplications,(e,t)=>({data:e,isLoading:t})),l=r(e=>e.jupyter.settings,e=>e.loading.effects.jupyter.fetchSettings||e.loading.effects.jupyter.update,(e,t)=>({data:e,isLoading:t})),g=(e,t,n=null,c=null)=>`${s}/jupyter/${n?`${n}:`:""}${e}/lab${c?`/tree/${c}`:""}?token=${t}`,y=(e,t,n)=>{if(e!=="hopsfsmount"||n==="")return null;const c=n.replace(`/Projects/${t}`,"");return i("/",c)};export{l as a,a as b,y as c,p as d,g,u as s};
