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