import{aa as i,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{h as c,s}from"./machine.-tangy-colts-beg-869.js";import{h as l,c as C}from"./googleca-tangy-colts-beg-652.js";import{a as t}from"./machineh-tangy-colts-beg-81.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,e){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,e),e)}};const p=i(({helpers:a})=>({states:{components:[C(a),{componentName:a.componentName.select,fieldType:"config",helperText:n("Select the calendar to list access control rules for."),id:"calendar-id",label:n("Select Calendar"),onChange:"HANDLE_SELECT_CALENDAR",onRefetch:"REFETCH_CALENDAR_LIST",options:[],path:"calendar-id",render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:l,HANDLE_SELECT_CALENDAR:c("calendarId"),IF_CONNECTION_SELECTED:({$:e})=>{var o;return r((o=e.getComponent("connection-id"))==null?void 0:o.value)},REFETCH_CALENDAR_LIST:({$:e})=>t(e),SET_CONNECTION:async({$:e,e:o})=>{c("connectionId")({$:e,e:o}),await t(e)},ON_MACHINE_LOAD:async({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"calendarId",id:"calendar-id"}]),await t(e)}}}));export{p as default};
