import{aa as c,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as s,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as m,c as h}from"./commonut-tangy-colts-beg-6742.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(o,e){return this.cache.has(o)?this.cache.get(o):(this.cache.set(o,e),e)}};const d=c(({helpers:o})=>({states:{components:[h(o),{componentName:o.componentName.mixInput,helperText:t("Enter the search query to find the email."),id:"search-query",label:t("Search Query"),onChange:"HANDLE_SEARCH_QUERY",path:"query",render:"IF_CONNECTION_SELECTED",value:void 0},{componentName:o.componentName.note,id:"note",note:["Note: Use Gmail search operators to find emails quickly. For example, from:sender@example.com shows emails from a specific sender, and to:receiver@example.com shows emails sent to a specific recipient. [Learn more](https://support.google.com/mail/answer/7190?hl=en&co=GENIE.Platform%3DDesktop&oco=0)"],render:"IF_CONNECTION_SELECTED"}]},actions:{CONNECTION_ADD_CHANGE:m,IF_CONNECTION_SELECTED:({$:e})=>{var a;return i((a=e.getComponent("connection-id"))==null?void 0:a.value)},ON_MACHINE_LOAD:async({$:e})=>{r(e,[{db:"connectionId",id:"connection-id"},{db:"searchQuery",id:"search-query"}])},HANDLE_SEARCH_QUERY:s("searchQuery"),SET_CONNECTION:async({$:e,e:a})=>{e.setThisComponent(n=>{n.value=a}),e.setDb(n=>{n.connectionId=a})}}}));export{d as default};
