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