import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as a,s as c}from"./machine.-tangy-colts-beg-869.js";import{h as m,c as s}from"./googleca-tangy-colts-beg-652.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const p=i(({helpers:e})=>({states:{components:[s(e),{componentName:e.componentName.mixInput,helperText:o("Enter the name of the calendar."),id:"name",label:o("Name"),onChange:"SET_NAME",path:"summary",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:o("Enter a description for the calendar."),id:"description",label:o("Description"),onChange:"SET_DESCRIPTION",path:"description",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:m,IF_CONNECTION_SELECTED:({$:n})=>{var t;return r((t=n.getComponent("connection-id"))==null?void 0:t.value)},SET_CONNECTION:a("connectionId"),SET_DESCRIPTION:a("description"),SET_NAME:a("summary"),ON_MACHINE_LOAD:({$:n})=>{c(n,[{db:"connectionId",id:"connection-id"},{db:"summary",id:"name"},{db:"description",id:"description"}])}}}));export{p as default};
