import{aa as i,ab as d}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as o,s as c}from"./machine.-tangy-colts-beg-869.js";import{h as r,a as l,c as m}from"./flowluco-tangy-colts-beg-376.js";import"./lodash-tangy-colts-beg-516.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 s=i(({helpers:e})=>({states:{components:[m(e),{componentName:e.componentName.mixInput,fieldType:"config",helperText:n("Enter the calendar ID to update."),id:"calendar-id",label:n("Calendar ID"),onChange:"SET_CALENDAR_ID",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.mixInput,fieldType:"config",helperText:n("Enter the new name for the calendar."),id:"name",label:n("Calendar Name"),onChange:"SET_NAME",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{ON_MACHINE_LOAD:({$:a})=>{c(a,[{db:"connectionId",id:"connection-id"},{db:"calendarId",id:"calendar-id"},{db:"name",id:"name"}])},CONNECTION_ADD_CHANGE:l,SET_DOMAIN:r,SET_CONNECTION:o("connectionId"),SET_CALENDAR_ID:o("calendarId"),SET_NAME:o("name"),IF_CONNECTION_SELECTED:({$:a})=>{var t;return d((t=a.getComponent("connection-id"))==null?void 0:t.value)}}}));export{s as default};
