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{cC as l,cD as c,dN as u,j as s,fY as d,fZ as h,gr as j,an as m,T as v,f$ as b,g0 as g,g1 as y,d as f,Y as $}from"./index-CK33qGU_.js";class E extends l{constructor(){super(...arguments);o(this,"getOneByName",async(r,n)=>{const{data:t}=await this.request({url:`${r}/jobs/${n}?expand=creator`,type:c.get});return t});o(this,"getExecutionsLogs",async({projectId:r,jobName:n,executionId:t,logsType:i})=>this.request({type:c.get,url:`${r}/jobs/${n}/executions/${t}/log/${i}`}))}}const w=new E("/project"),S=({children:a,...e})=>{const r=u();return s.jsxs(d,{...e,children:[s.jsx(h,{children:s.jsx(j,{colorScheme:"black",fontSize:"12px",size:"xs",variant:"ghost",leftIcon:s.jsx(m,{icon:v.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(([n,t])=>s.jsxs(f,{justifyContent:"space-between",children:[s.jsxs("span",{children:[n," :"]}),s.jsx("span",{children:t})]},n))})]})]})},J=({jobType:a})=>s.jsx(S,{children:[{value:["$HOME","/home/yarnapp"]},{value:["$PROJECT_PATH","/home/yarnapp/hopsfs"],showOnlyForType:[$.PYTHON]}].filter(({showOnlyForType:e})=>e?e.includes(a):!0).map(({value:e})=>e)});export{w as J,J as a};
