import{aa as i,ab as m}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as n,s}from"./machine.-tangy-colts-beg-869.js";import{h as l,c as d}from"./apifycom-tangy-colts-beg-996.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,a){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,a),a)}};const h=i(({helpers:e})=>({states:{components:[d(e),{componentName:e.componentName.mixInput,fieldType:"config",helperText:t("Enter the dataset ID to retrieve items from"),id:"dataset-id",label:t("Dataset ID"),onChange:"HANDLE_DATASET_ID",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Maximum number of items to return. By default there is no limit."),id:"limit",label:t("Limit"),onChange:"HANDLE_LIMIT",path:"limit",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.mixInput,helperText:t("Number of items that should be skipped at the start. The default value is 0."),id:"offset",label:t("Offset"),onChange:"HANDLE_OFFSET",path:"offset",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.switch,helperText:t("Return clean items without metadata."),id:"clean",label:t("Clean"),onChange:"HANDLE_CLEAN",path:"clean",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{CONNECTION_ADD_CHANGE:l,HANDLE_CLEAN:n("clean"),HANDLE_DATASET_ID:n("datasetId"),HANDLE_LIMIT:n("limit"),HANDLE_OFFSET:n("offset"),IF_CONNECTION_SELECTED:({$:a})=>{var o;return m((o=a.getComponent("connection-id"))==null?void 0:o.value)},SET_CONNECTION:n("connectionId"),ON_MACHINE_LOAD:({$:a})=>{s(a,[{db:"connectionId",id:"connection-id"},{db:"datasetId",id:"dataset-id"},{db:"limit",id:"limit"},{db:"offset",id:"offset"},{db:"clean",id:"clean"}])}}}));export{h as default};
