import{aa as h,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as i,a as l,c as m}from"./telegram-tangy-colts-beg-669.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 d=h(({helpers:n})=>({states:{components:[m(n),{componentName:n.componentName.mixInput,helperText:a("Enter the Chat ID with the prefix 100 here. For example, if your channel ID is -155545555, then the chat ID will be -100155545555 or the username of the target channel (in the format @channelusername or @supergroupusername)."),id:"chat-id",label:a("Chat ID"),onChange:"SET_CHAT_ID",path:"chat_id",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:a("The invite link to revoke."),id:"link-id",label:a("Invite Link"),onChange:"SET_LINK",path:"invite_link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]}]},actions:{SET_CONNECTION:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.connection=t})},IF_CONNECTION_SELECTED:({$:e})=>{var t;return r((t=e.getComponent("connection-id"))==null?void 0:t.value)},CONNECTION_ADD_CHANGE:l,SET_CHAT_ID:i("chat"),SET_LINK:i("link"),ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"connection",id:"connection-id"},{db:"chat",id:"chat-id"},{db:"link",id:"link-id"}])}}}));export{d as default};
