import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as t,s as c}from"./machine.-tangy-colts-beg-869.js";import{h as m,a as p,c as u}from"./flowluco-tangy-colts-beg-376.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const h=i(({helpers:e})=>({states:{components:[u(e),{componentName:e.componentName.mixInput,fieldType:"config",helperText:n("Enter the opportunity source ID to update."),id:"source-id",label:n("Opportunity Source ID"),onChange:"SET_SOURCE_ID",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,fieldType:"config",helperText:n("Enter the new name for the opportunity source."),id:"name",label:n("Opportunity Source Name"),onChange:"SET_NAME",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:({$:o})=>{c(o,[{db:"connectionId",id:"connection-id"},{db:"sourceId",id:"source-id"},{db:"name",id:"name"}])},CONNECTION_ADD_CHANGE:p,SET_DOMAIN:m,SET_CONNECTION:t("connectionId"),SET_SOURCE_ID:t("sourceId"),SET_NAME:t("name"),IF_CONNECTION_SELECTED:({$:o})=>{var a;return r((a=o.getComponent("connection-id"))==null?void 0:a.value)}}}));export{h as default};
