import{b as i,i as s}from"./useflows-BpG3C9m1.js";import{e as a}from"./main-few-lands-burn.js";import{s as d,h as r}from"./machine.-BRuqPpdF.js";import{h as E,c as p}from"./commons.-bP-saOXM.js";import{f as t}from"./machineh-5vGV0ecU.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const _=i(({helpers:n})=>({states:{components:[p(n),{allowClear:!0,componentName:n.componentName.select,fieldType:"config",helperText:a("Select the spreadsheet to delete permanently."),id:"spreadsheet-id",isMappable:!0,label:a("Spreadsheet"),onChange:"HANDLE_SPREADSHEET",onRefetch:"REFETCH_SPREADSHEETS",optionFilterProp:"label",options:[],render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:E,IF_CONNECTION_SELECTED:({$:e})=>s(e.getComponent("connection-id")?.value),REFETCH_SPREADSHEETS:({$:e})=>t(e),SET_CONNECTION:({$:e,e:o})=>{r("connectionId")({$:e,e:o}),t(e)},HANDLE_SPREADSHEET:({$:e,e:o})=>{r("spreadsheetId")({$:e,e:o})},ON_MACHINE_LOAD:({$:e})=>{d(e,[{db:"connectionId",id:"connection-id"},{db:"spreadsheetId",id:"spreadsheet-id"}]),t(e)}}}));export{_ as default};
