import{aa as c,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as o,s as h}from"./machine.-tangy-colts-beg-869.js";import{h as p,c as r}from"./commonut-tangy-colts-beg-1272.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 C=c(({helpers:e})=>({states:{components:[r(e),{componentName:e.componentName.mixInput,id:"per-page",label:t("Per Page"),onChange:"HANDLE_PER_PAGE",path:"per_page",placeholder:t("Enter the number of items per page (default is 10)"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:e.componentName.mixInput,id:"page",label:t("Page"),onChange:"HANDLE_PAGE",path:"page",placeholder:t("Enter the page number (default is 1)"),render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:a})=>{var n;return i((n=a.getComponent("connection-id"))==null?void 0:n.value)},CONNECTION_ADD_CHANGE:p,HANDLE_PAGE:o("page"),HANDLE_PER_PAGE:o("perPage"),SET_CONNECTION:o("connectionId"),ON_MACHINE_LOAD:async({$:a})=>{h(a,[{db:"connectionId",id:"connection-id"},{db:"perPage",id:"per-page"},{db:"page",id:"page"}])}}}));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)}};export{C as default};
