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