import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as a,s as c}from"./machine.-tangy-colts-beg-869.js";import{h as d,c as E}from"./apifycom-tangy-colts-beg-996.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 u=i(({helpers:e})=>({states:{components:[E(e),{componentName:e.componentName.mixInput,fieldType:"config",helperText:t("Specify if you want to use a specific Key-Value Store ID"),id:"key-value-store-id",label:t("Key-Value Store ID"),onChange:"HANDLE_KEY_VALUE_STORE_ID",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,fieldType:"config",helperText:t("Key of the record to create or update in the key-value store"),id:"record-key",label:t("Record Key"),onChange:"HANDLE_RECORD_KEY",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:d,HANDLE_KEY_VALUE_STORE_ID:a("keyValueStoreId"),HANDLE_RECORD_KEY:a("recordKey"),IF_CONNECTION_SELECTED:({$:o})=>{var n;return r((n=o.getComponent("connection-id"))==null?void 0:n.value)},SET_CONNECTION:a("connectionId"),ON_MACHINE_LOAD:({$:o})=>{c(o,[{db:"connectionId",id:"connection-id"},{db:"recordKey",id:"record-key"},{db:"keyValueStoreId",id:"key-value-store-id"}])}}}));export{u as default};
