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{d4 as u,d5 as i,aF as l,j as s,gt as h,gu as d,gU as j,as as g,Z as v,gv as m,gw as b,gx as y,B as $,a3 as E}from"./index-dP1W1_bd.js";class f extends u{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 J=new f("/project"),S=({children:a,...e})=>{const r=l();return s.jsxs(h,{...e,children:[s.jsx(d,{children:s.jsx(j,{colorScheme:"black",fontSize:"12px",size:"xs",variant:"ghost",leftIcon:s.jsx(g,{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))})]})]})},T=({jobType:a})=>s.jsx(S,{children:[{value:["$HOME","/home/yarnapp"]},{value:["$PROJECT_PATH","/home/yarnapp/hopsfs"],showOnlyForType:[E.PYTHON]}].filter(({showOnlyForType:e})=>e?e.includes(a):!0).map(({value:e})=>e)});export{J,T as a};
