var p=Object.defineProperty;var x=(a,e,r)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var o=(a,e,r)=>x(a,typeof e!="symbol"?e+"":e,r);import{dN as h,dO as i,eA as l,j as s,hL as u,hM as d,fu as j,ao as v,v as m,hN as b,hO as g,hP as y,q as $,a3 as f}from"./index-Cox3ZWL0.js";class E extends h{constructor(){super(...arguments);o(this,"getOneByName",async(r,t)=>{const{data:n}=await this.request({url:`${r}/jobs/${t}?expand=creator`,type:i.get});return n});o(this,"getExecutionsLogs",async({projectId:r,jobName:t,executionId:n,logsType:c})=>this.request({type:i.get,url:`${r}/jobs/${t}/executions/${n}/log/${c}`}))}}const S=new E("/project"),q=({children:a,...e})=>{const r=l();return s.jsxs(u,{...e,children:[s.jsx(d,{children:s.jsx(j,{colorScheme:"black",fontSize:"12px",size:"xs",variant:"ghost",leftIcon:s.jsx(v,{icon:m.eye,size:"sm"}),children:"Env Variables"})}),s.jsxs(b,{children:[s.jsx(g,{}),s.jsx(y,{bg:r.colors.white,fontSize:"12px",borderRadius:"5px",children:a.map(([t,n])=>s.jsxs($,{justifyContent:"space-between",children:[s.jsxs("span",{children:[t," :"]}),s.jsx("span",{children:n})]},t))})]})]})},T=({jobType:a})=>s.jsx(q,{children:[{value:["$HOME","/home/yarnapp"]},{value:["$PROJECT_PATH","/hopsfs/"],showOnlyForType:[f.PYTHON]}].filter(({showOnlyForType:e})=>e?e.includes(a):!0).map(({value:e})=>e)});export{S as J,T as a};
