import{aa as l,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as t,s as c}from"./machine.-tangy-colts-beg-869.js";import{h as u,c as m}from"./apifycom-tangy-colts-beg-996.js";import{a as i}from"./machineh-tangy-colts-beg-696.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,o){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,o),o)}};const _=l(({helpers:n})=>({states:{components:[m(n),{componentName:n.componentName.select,fieldType:"config",helperText:e("Select an actor to run."),id:"actor-id",label:e("Actor"),onChange:"HANDLE_ACTOR_ID",onRefetch:"REFETCH_ACTORS",options:[],placeholder:e("Select an actor"),render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:n.componentName.switch,helperText:e("Run the actor synchronously and wait for it to finish"),id:"run-synchronously",label:e("Run Synchronously"),onChange:"HANDLE_RUN_SYNCHRONOUSLY",path:"run-synchronously",render:"IF_CONNECTION_SELECTED",size:"small",value:!1},{componentName:n.componentName.mixInput,helperText:e('Build version to run (e.g., "latest" or specific build number)'),id:"build",label:e("Build"),onChange:"HANDLE_BUILD",path:"build",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,helperText:e("Enter Timeout in seconds"),id:"timeout",label:e("Timeout (seconds)"),onChange:"HANDLE_TIMEOUT",path:"timeout",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.select,helperText:e("Select memory size for the actor run"),id:"memory",label:e("Memory (MB)"),onChange:"HANDLE_MEMORY",options:[{label:e("128 MB"),value:128},{label:e("256 MB"),value:256},{label:e("512 MB"),value:512},{label:e("1024 MB (1 GB)"),value:1024},{label:e("2048 MB (2 GB)"),value:2048},{label:e("4096 MB (4 GB)"),value:4096},{label:e("8192 MB (8 GB)"),value:8192},{label:e("16384 MB (16 GB)"),value:16384},{label:e("32768 MB (32 GB)"),value:32768}],path:"memory",render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{CONNECTION_ADD_CHANGE:u,HANDLE_ACTOR_ID:t("actorId"),HANDLE_BUILD:t("build"),HANDLE_INPUT:t("input"),HANDLE_MEMORY:t("memory"),HANDLE_RUN_SYNCHRONOUSLY:t("runSynchronously"),HANDLE_TIMEOUT:t("timeout"),IF_CONNECTION_SELECTED:({$:o})=>{var a;return r((a=o.getComponent("connection-id"))==null?void 0:a.value)},REFETCH_ACTORS:({$:o})=>i(o),SET_CONNECTION:async({$:o,e:a})=>{t("connectionId")({$:o,e:a}),await i(o)},ON_MACHINE_LOAD:async({$:o})=>{c(o,[{db:"connectionId",id:"connection-id"},{db:"actorId",id:"actor-id"},{db:"input",id:"input"},{db:"build",id:"build"},{db:"timeout",id:"timeout"},{db:"memory",id:"memory"},{db:"runSynchronously",id:"run-synchronously"}]),await i(o)}}}));export{_ as default};
