import{aa as i,ab as l}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as s,s as m}from"./machine.-tangy-colts-beg-869.js";import{h as E,c}from"./commonut-tangy-colts-beg-6742.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 C=i(({helpers:t})=>({states:{components:[c(t),{componentName:t.componentName.mixInput,helperText:a("Enter the message ID, to delete the email."),id:"message-id",label:a("Message ID"),onChange:"HANDLE_MESSAGE_ID",path:"message_id",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:t.componentName.select,helperText:a("Select Yes if you want to permanently delete the email."),id:"is-permanently-delete",label:a("Permanently Delete"),onChange:"SELECT_IS_PERMANENTLY_DELETE",options:[{label:a("Yes"),value:"yes"},{label:a("No"),value:"no"}],path:"is_permanently_delete",render:"IF_CONNECTION_SELECTED",showSearch:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:E,IF_CONNECTION_SELECTED:({$:e})=>{var n;return l((n=e.getComponent("connection-id"))==null?void 0:n.value)},ON_MACHINE_LOAD:async({$:e})=>{m(e,[{db:"connectionId",id:"connection-id"},{db:"messageId",id:"message-id"},{db:"isPermanentlyDelete",id:"is-permanently-delete"}])},HANDLE_MESSAGE_ID:s("messageId"),SELECT_IS_PERMANENTLY_DELETE:s("isPermanentlyDelete"),SET_CONNECTION:async({$:e,e:n})=>{e.setThisComponent(o=>{o.value=n}),e.setDb(o=>{o.connectionId=n})}}}));export{C as default};
