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{dt as x,du as c,eC as g,j as s,gL as h,gM as u,ht as d,ap as j,C as m,gO as v,gP as $,gQ as b,$ as y,a2 as f}from"./index-Cc-6WbPt.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 C=new E("/project"),P=({children:a,...e})=>{const t=g();return s.jsxs(h,{...e,children:[s.jsx(u,{children:s.jsx(d,{colorScheme:"black",fontSize:"12px",size:"xs",variant:"ghost",leftIcon:s.jsx(j,{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(P,{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{C as J,J as a};
