(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[32341],{29203:(s,e,_)=>{Promise.resolve().then(_.bind(_,99601))},99601:(s,e,_)=>{"use strict";_.r(e),_.d(e,{default:()=>t});var O=_(95155),i=_(31966),n=_(73321),E=_(12115),A=_(1550),a=_(86939),N=_(89239);function t(){(0,A.si)("Add Provider",{hideActions:!0});let s=(0,n.useRouter)(),e=(0,E.useCallback)(async e=>{await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s.push("/settings")},[s]);return(0,O.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col p-4 gap-4",children:[(0,O.jsxs)(N.$,{variant:"ghost",size:"sm",className:"self-start shrink-0",onClick:()=>s.push("/settings"),children:[(0,O.jsx)(i.A,{className:"h-4 w-4 mr-1"}),"Settings"]}),(0,O.jsx)("div",{className:"flex-1 min-h-0",children:(0,O.jsx)(a.Q,{provider:{id:"",name:"",envVars:{ANTHROPIC_BASE_URL:"",ANTHROPIC_AUTH_TOKEN:"",ANTHROPIC_MODEL:"",ANTHROPIC_DEFAULT_OPUS_MODEL:"",ANTHROPIC_DEFAULT_SONNET_MODEL:"",ANTHROPIC_DEFAULT_HAIKU_MODEL:"",CLAUDE_CODE_SUBAGENT_MODEL:""},models:[]},isNew:!0,lockedEnvKeys:["ANTHROPIC_BASE_URL","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","CLAUDE_CODE_SUBAGENT_MODEL"],onSave:e,onCancel:()=>s.push("/settings")})})]})}}},s=>{s.O(0,[989,25781,1550,86939,28441,93794,77358],()=>s(s.s=29203)),_N_E=s.O()}]);