var p=Object.defineProperty;var l=(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)=>l(a,typeof e!="symbol"?e+"":e,r);import{dv as x,dw as c,eE as d,j as s,gQ as g,gR as h,hG as j,ap as u,d as v,gT as m,gU as b,gV as y,a as $,a2 as f}from"./index-_eM6l4Nf.js";class E extends x{constructor(){super(...arguments);o(this,"getOneByName",async(r,t)=>{const{data:n}=await this.request({url:`${r}/jobs/${t}?expand=creator`,type:c.get});return n});o(this,"getExecutionsLogs",async({projectId:r,jobName:t,executionId:n,logsType:i})=>this.request({type:c.get,url:`${r}/jobs/${t}/executions/${n}/log/${i}`}))}}const J=new E("/project"),w=({children:a,...e})=>{const r=d();return s.jsxs(g,{...e,children:[s.jsx(h,{children:s.jsx(j,{colorScheme:"black",fontSize:"12px",size:"xs",variant:"ghost",leftIcon:s.jsx(u,{icon:v.eye,size:"sm"}),children:"Env Variables"})}),s.jsxs(m,{children:[s.jsx(b,{}),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))})]})]})},P=({jobType:a})=>s.jsx(w,{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{J,P as a};
