import{_ as t}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 r=e=>({addConnectionHelpingText:t('You can get your API token from your Apify account settings at <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://console.apify.com/account/integrations">Apify Api Settings</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["token"],label:t("API Token"),type:"bearer_token",verifyConnection:{headers:{Authorization:"","Content-Type":"application/json"},method:"GET",responseKeyMatch:["data","data.id","data.username"],url:"https://api.apify.com/v2/users/me"}}],extraData:{},fieldType:"config",id:"connection-id",label:t("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),s=({$:e,e:n})=>{e.setThisComponent(a=>{e.util.isConnectionComponent(a)&&a.connectionsTypes.forEach(o=>{var i;o.type==="bearer_token"&&((i=o.verifyConnection)!=null&&i.headers)&&(o.verifyConnection.headers.Authorization="Bearer "+n.token)})})};export{r as c,s as h};
