import{e as n}from"./main-few-lands-burn.js";const r=e=>({addConnectionHelpingText:n("You can find your API key from ")+`<a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://openrouter.ai/keys">${n("OpenRouter Dashboard")}</a>`,componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["value"],label:n("API Key"),showKey:!1,type:"api_key",verifyConnection:{headers:{Authorization:""},method:"GET",responseKeyMatch:["data.label"],url:"https://openrouter.ai/api/v1/auth/key"}}],fieldType:"config",id:"connection-id",label:n("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),c=({$:e,e:a})=>{e.setThisComponent(t=>{e.util.isConnectionComponent(t)&&t.connectionsTypes.forEach(o=>{o.type==="api_key"&&o.verifyConnection?.headers&&(o.verifyConnection.headers.Authorization="Bearer "+a.value)})})};export{r as c,c as h};
