import{aa as p,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as i}from"./main-tangy-colts-beg.js";import{s as l}from"./machine.-tangy-colts-beg-869.js";import{a as n,f as s}from"./machineh-tangy-colts-beg-506.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(o,e){return this.cache.has(o)?this.cache.get(o):(this.cache.set(o,e),e)}};const S=p(({helpers:o})=>({actions:{ON_MACHINE_LOAD:async({$:e})=>{l(e,[{db:"jobTypeId",id:"job-type-id"},{db:"applicationStatusId",id:"application-status-id"}]),await Promise.all([s(e),n(e)])},REFETCH_JOB_TYPES:async({$:e})=>s(e),SELECT_JOB_TYPE:async({$:e,e:t})=>{e.setThisComponent(a=>{a.value=t}),e.setDb(a=>{a.jobTypeId=t})},REFETCH_APPLICATION_STATUS:async({$:e})=>n(e),SELECT_APPLICATION_STATUSES:async({$:e,e:t})=>{e.setThisComponent(a=>{a.value=t}),e.setDb(a=>{a.applicationStatusId=t})}},states:{components:[{componentName:o.componentName.select,fieldType:"config",id:"job-type-id",label:i("Select Job Type"),onChange:"SELECT_JOB_TYPE",onRefetch:"REFETCH_JOB_TYPES",options:[],placeholder:i("Select a Job Type"),render:!0,value:void 0},{componentName:o.componentName.select,fieldType:"config",id:"application-status-id",label:i("Select Application Status"),onChange:"SELECT_APPLICATION_STATUSES",onRefetch:"REFETCH_APPLICATION_STATUS",options:[],placeholder:i("Select a application-statuses"),render:!0,value:void 0},{componentName:o.componentName.hookListener,fieldType:"config",id:"hook-listener",label:i("Listen Hook"),render:({$:e})=>{var t;return c((t=e.getComponent("application-status-id"))==null?void 0:t.value)}}]}}));export{S as default};
