import{b as a,i as m}from"./useflows-BpG3C9m1.js";import{e as t}from"./main-few-lands-burn.js";import{s as l,h as n}from"./machine.-BRuqPpdF.js";import{h as r,c as N}from"./commons.-bP-saOXM.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const h=a(({helpers:o})=>({states:{components:[N(o),{componentName:o.componentName.mixInput,helperText:t("The title of the spreadsheet to search for."),id:"title",label:t("Title"),onChange:"HANDLE_TITLE",path:"title",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:o.componentName.mixInput,helperText:t("Max number of spreadsheets to return. (Default: 10)"),id:"limit",label:t("Limit"),onChange:"HANDLE_LIMIT",path:"limit",render:"IF_CONNECTION_SELECTED",required:!1,value:[]}]},actions:{CONNECTION_ADD_CHANGE:r,HANDLE_LIMIT:n("limit"),HANDLE_TITLE:n("title"),IF_CONNECTION_SELECTED:({$:e})=>m(e.getComponent("connection-id")?.value),SET_CONNECTION:({$:e,e:i})=>{n("connectionId")({$:e,e:i})},ON_MACHINE_LOAD:({$:e})=>{l(e,[{db:"connectionId",id:"connection-id"},{db:"title",id:"title"},{db:"limit",id:"limit"}])}}}));export{h as default};
