import{e as o}from"./main-few-lands-burn.js";const c=e=>({addConnectionHelpingText:o('You can find credentials from <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://platform.deepseek.com/api_keys">Here</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["value"],label:o("API Key"),showKey:!1,type:"api_key",verifyConnection:{headers:{Accept:"application/json",Authorization:""},method:"GET",responseKeyMatch:["is_available"],url:"https://api.deepseek.com/user/balance"}}],fieldType:"config",id:"connection-id",label:o("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),r=({$:e,e:a})=>{e.setThisComponent(t=>{e.util.isConnectionComponent(t)&&t.connectionsTypes.forEach(n=>{n.type==="api_key"&&n.verifyConnection?.headers&&(n.verifyConnection.headers.Authorization=`Bearer ${a.value}`)})})};export{c,r as h};
