import{aa as c,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as i,s}from"./machine.-tangy-colts-beg-869.js";import{h,a,c as l,d as C}from"./zohoproj-tangy-colts-beg-65.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 T=c(({helpers:e})=>({states:{components:[C(e),{componentName:e.componentName.select,fieldType:"config",helperText:n("Select the portal to list projects from."),id:"portal-id",label:n("Portal ID"),onChange:"HANDLE_SELECT_PORTAL",onRefetch:"REFETCH_PORTAL_LIST",options:[],path:"portal-id",render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:l,HANDLE_SELECT_PORTAL:i("portalId"),IF_CONNECTION_SELECTED:({$:o})=>{var t;return r((t=o.getComponent("connection-id"))==null?void 0:t.value)},REFETCH_PORTAL_LIST:({$:o})=>a(o),SET_DOMAIN:h,SET_CONNECTION:({$:o,e:t})=>{i("connectionId")({$:o,e:t}),a(o)},ON_MACHINE_LOAD:({$:o})=>{s(o,[{db:"connectionId",id:"connection-id"},{db:"portalId",id:"portal-id"}]),a(o)}}}));export{T as default};
