var p=Object.defineProperty;var l=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var o=(a,e,t)=>l(a,typeof e!="symbol"?e+"":e,t);import{ds as x,dt as c,eA as g,j as s,gO as h,gP as d,hp as j,ap as u,C as m,gR as v,gS as $,gT as b,$ as y,a2 as f}from"./index-46ma1THH.js";class E extends x{constructor(){super(...arguments);o(this,"getOneByName",async(t,r)=>{const{data:n}=await this.request({url:`${t}/jobs/${r}?expand=creator`,type:c.get});return n});o(this,"getExecutionsLogs",async({projectId:t,jobName:r,executionId:n,logsType:i})=>this.request({type:c.get,url:`${t}/jobs/${r}/executions/${n}/log/${i}`}))}}const w=new E("/project"),S=({children:a,...e})=>{const t=g();return s.jsxs(h,{...e,children:[s.jsx(d,{children:s.jsx(j,{colorScheme:"black",fontSize:"12px",size:"xs",variant:"ghost",leftIcon:s.jsx(u,{icon:m.eye,size:"sm"}),children:"Env Variables"})}),s.jsxs(v,{children:[s.jsx($,{}),s.jsx(b,{bg:t.colors.white,fontSize:"12px",borderRadius:"5px",children:a.map(([r,n])=>s.jsxs(y,{justifyContent:"space-between",children:[s.jsxs("span",{children:[r," :"]}),s.jsx("span",{children:n})]},r))})]})]})},J=({jobType:a})=>s.jsx(S,{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{w as J,J as a};
