import{e as o}from"./main-few-lands-burn.js";const c=e=>({addConnectionHelpingText:o('You can find your API key in <a target="_blank" class="text-blue-600 underline" rel="noopener noreferrer nofollow" href="https://elevenlabs.io/app/settings/api-keys">ElevenLabs API Keys</a>'),componentName:e.componentName.connection,connectionsTypes:[{encryptKeys:["value"],label:o("Api Key"),showKey:!1,type:"api_key",verifyConnection:{headers:{"xi-api-key":""},method:"GET",responseKeyMatch:["voices"],url:"https://api.elevenlabs.io/v1/voices"}}],fieldType:"config",id:"connection-id",label:o("Select Connection"),onConnectionAddChange:"CONNECTION_ADD_CHANGE",onConnectionChange:"SET_CONNECTION",render:!0,value:void 0}),s=({$:e,e:t})=>{e.setThisComponent(i=>{e.util.isConnectionComponent(i)&&i.connectionsTypes.forEach(n=>{n.type==="api_key"&&n.verifyConnection?.headers&&(n.verifyConnection.headers["xi-api-key"]=t.value)})})};export{c,s as h};
