import{aa as s,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as n,s as l}from"./machine.-tangy-colts-beg-869.js";import{h as E,c as N}from"./apifycom-tangy-colts-beg-996.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,a){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,a),a)}};const C=s(({helpers:t})=>({states:{components:[N(t),{componentName:t.componentName.mixInput,helperText:e("Maximum number of array elements to return. The default value as well as the maximum is 1000."),id:"limit",label:e("Limit"),onChange:"HANDLE_LIMIT",path:"limit",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:t.componentName.mixInput,helperText:e("Number of array elements that should be skipped at the start. The default value is 0."),id:"offset",label:e("Offset"),onChange:"HANDLE_OFFSET",path:"offset",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:t.componentName.switch,helperText:e("Return runs in descending order based on their start time"),id:"desc",label:e("Desc"),onChange:"HANDLE_DESC",path:"desc",render:"IF_CONNECTION_SELECTED",size:"small",value:!1},{componentName:t.componentName.select,helperText:e("Filter runs by status."),id:"status",label:e("Status"),onChange:"HANDLE_STATUS",options:[{label:e("ABORTED"),value:"ABORTED"},{label:e("FAILED"),value:"FAILED"},{label:e("SUCCEEDED"),value:"SUCCEEDED"},{label:e("TIMED-OUT"),value:"TIMED-OUT"},{label:e("RUNNING"),value:"RUNNING"},{label:e("READY"),value:"READY"},{label:e("ABORTING"),value:"ABORTING"}],path:"status",render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{CONNECTION_ADD_CHANGE:E,HANDLE_DESC:n("desc"),HANDLE_LIMIT:n("limit"),HANDLE_OFFSET:n("offset"),HANDLE_STATUS:n("status"),IF_CONNECTION_SELECTED:({$:a})=>{var o;return i((o=a.getComponent("connection-id"))==null?void 0:o.value)},SET_CONNECTION:n("connectionId"),ON_MACHINE_LOAD:({$:a})=>{l(a,[{db:"connectionId",id:"connection-id"},{db:"limit",id:"limit"},{db:"offset",id:"offset"},{db:"status",id:"status"},{db:"desc",id:"desc"}])}}}));export{C as default};
