import{aa as i,ab as s}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as r,c as h}from"./notionco-tangy-colts-beg-866.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const p=i(({helpers:n})=>({states:{components:[h(n),{componentName:n.componentName.mixInput,fieldType:"config",helperText:a("Enter the user-id to retrive the user"),id:"user-id",label:a("User Id"),onChange:"HANDLE_USER",placeholder:a("Enter the user id"),render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:e})=>{var o;return s((o=e.getComponent("connection-id"))==null?void 0:o.value)},HANDLE_USER:async({$:e,e:o})=>{e.setThisComponent(t=>{t.value=o}),e.setDb(t=>{t.userId=o})},ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"connectionId",id:"connection-id"},{db:"userId",id:"user-id"}])},SET_CONNECTION:async({$:e,e:o})=>{e.setThisComponent(t=>{t.value=o}),e.setDb(t=>{t.connectionId=o})},CONNECTION_ADD_CHANGE:r}}));export{p as default};
