import{aa as i,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s}from"./machine.-tangy-colts-beg-869.js";import{h as m,c as C}from"./commonut-tangy-colts-beg-392.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 I=i(({helpers:n})=>({states:{components:[C(n),{componentName:n.componentName.input,fieldType:"config",id:"after-contactId",label:a("After"),onChange:"HANDLE_CONTACT_INFO",placeholder:a("Keep empty if none"),render:"IF_CONNECTION_SELECTED",type:"text",value:void 0},{componentName:n.componentName.input,fieldType:"config",id:"limit-info",label:a("Limit"),onChange:"HANDLE_LIMIT_INFO",placeholder:a("Maximum 250"),render:"IF_CONNECTION_SELECTED",type:"text",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:e})=>{var t;return c((t=e.getComponent("connection-id"))==null?void 0:t.value)},HANDLE_CONTACT_INFO:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t.target.value}),e.setDb(o=>{o.afterContactId=t.target.value})},HANDLE_LIMIT_INFO:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t.target.value}),e.setDb(o=>{o.limitInfo=t.target.value})},ON_MACHINE_LOAD:async({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"afterContactId",id:"after-contactId"},{db:"limitInfo",id:"limit-info"}])},SET_CONNECTION:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.connectionId=t})},CONNECTION_ADD_CHANGE:m}}));export{I as default};
