import{aa as r,ab as E}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as c,s as l}from"./machine.-tangy-colts-beg-869.js";import{f as i,a}from"./machineh-tangy-colts-beg-966.js";import{h as d,c as s}from"./zoomcomm-tangy-colts-beg-477.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const p=r(({helpers:n})=>({states:{components:[s(n),{componentName:n.componentName.select,helperText:t("Choose an existing Zoom meeting."),id:"meetingId",label:t("Select Meeting"),onChange:"SET_MEETING",onRefetch:"REFETCH_MEETINGS",optionFilterProp:"label",options:[],path:"meeting",placeholder:t("Search or select a meeting"),render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0},{componentName:n.componentName.select,helperText:t("Choose occurrence ID to remove a single occurrence. Leave this field empty to remove all occurrences."),id:"occurrenceId",label:t("Occurrence ID"),onChange:"SET_OCCURRENCE_ID",onRefetch:"REFETCH_OCCURRENCES",optionFilterProp:"label",options:[],path:"occurrenceId",placeholder:t("Search or select an occurrence"),render:"IF_CONNECTION_SELECTED",showSearch:!0,value:void 0},{componentName:n.componentName.switch,helperText:t("Notify host and alternative host about the meeting cancellation via email."),id:"scheduleReminder",label:t("Schedule Reminder"),onChange:"SET_SCHEDULE_REMINDER",path:"scheduleReminder",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{SET_CONNECTION:async({$:e,e:o})=>{c("connectionId")({$:e,e:o}),await a(e)},SET_MEETING:async({$:e,e:o})=>{c("meetingId")({$:e,e:o}),await i(e,o)},CONNECTION_ADD_CHANGE:d,IF_CONNECTION_SELECTED:({$:e})=>{var o;return E((o=e.getComponent("connection-id"))==null?void 0:o.value)},REFETCH_MEETINGS:({$:e})=>a(e),REFETCH_OCCURRENCES:({$:e})=>{var o;return i(e,(o=e.db)==null?void 0:o.meeting)},SET_OCCURRENCE_ID:c("occurrenceId"),SET_SCHEDULE_REMINDER:c("scheduleReminder"),ON_MACHINE_LOAD:async({$:e})=>{l(e,[{db:"connectionId",id:"connection-id"},{db:"meetingId",id:"meetingId"},{db:"occurrenceId",id:"occurrenceId"},{db:"scheduleReminder",id:"scheduleReminder"}]),await a(e)}}}));export{p as default};
