import{_ as a}from"./main-tangy-colts-beg.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const s=e=>({addConnectionHelpingText:a('To get access Token, Please Visit <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://api.slack.com/">Slack Console</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["token"],label:a("Token"),type:"bearer_token",verifyConnection:{headers:{Authorization:""},method:"GET",responseKeyMatch:["url","team","user"],url:"https://slack.com/api/auth.test"}}],fieldType:"config",id:"connection-id",label:a("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),r=({$:e,e:n})=>{e.setThisComponent(t=>{e.util.isConnectionComponent(t)&&t.connectionsTypes.forEach(o=>{var c;o.type==="bearer_token"&&((c=o.verifyConnection)!=null&&c.headers)&&n.token&&(o.verifyConnection.headers.Authorization="Bearer "+n.token)})})},h=e=>({$:n,e:t})=>{n.setThisComponent(o=>{o.value=t}),n.setDb(o=>{o[e]=t})};export{h as a,s as c,r as h};
