(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65124,t=>{"use strict";var e=t.i(32217),i=t.i(96586);let s=(0,t.i(88921).default)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var n=t.i(19455),o=t.i(80932);t.s(["ReprovisionButton",0,function({action:t}){let[a,r]=(0,i.useTransition)();return(0,e.jsxs)(n.Button,{variant:"outline",size:"sm",onClick:function(){r(async()=>{let e=await t();if(!e.ok)return void o.toast.error(e.error);let i=e.created.length,s=e.existed.length;o.toast.success(i>0?`Provisioned ${i} new agent${1===i?"":"s"}.`:`All ${s} agents already exist.`)})},disabled:a,children:[(0,e.jsx)(s,{className:`mr-1.5 size-4 ${a?"animate-spin":""}`}),a?"Provisioning...":"Reprovision agents"]})}],65124)}]);