import{j as i}from"./vendor-ClLR6ncd.js";import{M as p}from"./ui-D7lYGrYU.js";import{u as m,h as c}from"./model-BneMh0-t.js";import{O as d}from"./ui-DG_5mJZa.js";import{E as u}from"./Messages-BRmQDxrZ.js";import{e as y}from"./model-DAvH-x8m.js";function h({catalogId:o,repositoryId:s,toVerifyToken:n}){const[r,a]=m(),t=r.trim(),e=c({repoSpec:y(o,s),apiKey:t,withTokenVerification:n(t)});return i.jsxs(p,{withResetOnError:!1,mutation:e,loadingTitle:"Updating...",idleTitle:"Update API key in VDB",errorTitle:"Try again",successTitle:"Updated!",contentSx:{width:"520px"},children:[i.jsx(d,{apiKey:r,setApiKey:a,disabled:e.isLoading}),i.jsx(u,{error:e.error,resetError:e.reset})]})}export{h as C};
