import{aa as c,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 E}from"./machine.-tangy-colts-beg-869.js";import{h as N,c as s}from"./googleca-tangy-colts-beg-652.js";import{a as i}from"./machineh-tangy-colts-beg-81.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};const m=c(({helpers:t})=>({states:{components:[s(t),{componentName:t.componentName.select,fieldType:"config",helperText:n("Select the calendar containing the event to delete."),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},{componentName:t.componentName.mixInput,helperText:n("Enter the event ID to delete."),id:"event-id",label:n("Event ID"),onChange:"SET_EVENT_ID",path:"eventId",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:t.componentName.switch,helperText:n("Whether to send notifications about the deletion of the event."),id:"send-notifications",label:n("Send Notifications"),onChange:"SET_SEND_NOTIFICATIONS",path:"sendNotifications",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{CONNECTION_ADD_CHANGE:N,HANDLE_SELECT_CALENDAR:o("calendarId"),IF_CONNECTION_SELECTED:({$:e})=>{var a;return d((a=e.getComponent("connection-id"))==null?void 0:a.value)},REFETCH_CALENDAR_LIST:({$:e})=>i(e),SET_EVENT_ID:o("eventId"),SET_SEND_NOTIFICATIONS:o("sendNotifications"),SET_CONNECTION:async({$:e,e:a})=>{o("connectionId")({$:e,e:a}),await i(e)},ON_MACHINE_LOAD:async({$:e})=>{E(e,[{db:"connectionId",id:"connection-id"},{db:"calendarId",id:"calendar-id"},{db:"eventId",id:"event-id"},{db:"sendNotifications",id:"send-notifications"}]),await i(e)}}}));export{m as default};
