import{aa as s,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as r}from"./machine.-tangy-colts-beg-869.js";import{h as c,c as p}from"./notionco-tangy-colts-beg-866.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const N=s(({helpers:n})=>({states:{components:[p(n),{componentName:n.componentName.mixInput,fieldType:"config",helperText:a("A pagination page-offset (cursor) returned from a previous response to continue listing users from that point. keeps empty to retrive the first page."),id:"start-cursor",label:a("Start Cursor"),onChange:"HANDLE_START_CURSOR",placeholder:a("Enter the start cursor"),render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:n.componentName.mixInput,fieldType:"config",helperText:a("The returned user-list size. Maximum: 100"),id:"page-size",label:a("Page Size"),onChange:"HANDLE_PAGE_SIZE",placeholder:a("Enter the page size"),render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:e})=>{var t;return i((t=e.getComponent("connection-id"))==null?void 0:t.value)},ON_MACHINE_LOAD:async({$:e})=>{r(e,[{db:"connectionId",id:"connection-id"},{db:"startCursor",id:"start-cursor"},{db:"pageSize",id:"page-size"}])},SET_CONNECTION:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.connectionId=t})},HANDLE_START_CURSOR:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.startCursor=t})},HANDLE_PAGE_SIZE:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.pageSize=t})},CONNECTION_ADD_CHANGE:c}}));export{N as default};
