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{db as x,dc as c,eg as h,j as s,gN as g,gO as u,hm as d,au as j,C as m,gQ as b,gR as v,gS as y,B as $,a0 as f}from"./index-C1DmWO_C.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 O=new E("/project"),S=({children:a,...e})=>{const r=h();return s.jsxs(g,{...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(b,{children:[s.jsx(v,{}),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(S,{children:[{value:["$HOME","/home/yarnapp"]},{value:["$PROJECT_PATH","/home/yarnapp/hopsfs"],showOnlyForType:[f.PYTHON]}].filter(({showOnlyForType:e})=>e?e.includes(a):!0).map(({value:e})=>e)});export{O as J,P as a};
