(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,329804,e=>{"use strict";var t=e.i(843476),a=e.i(531278),i=e.i(16715),s=e.i(356909),n=e.i(475254);let l=(0,n.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),o=(0,n.default)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var d=e.i(669716);e.s(["ClaudeAiActionPanel",0,function({position:e,refresh:n,testConnection:r,save:h,loading:c,saving:k,canSave:p,testStatus:y,testMessage:f,viewOnly:m=!1}){let j="left"===e||"right"===e?"vertical":"horizontal";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.AdaptiveBtn,{orientation:j,onClick:h,disabled:!p||k||m,icon:k?(0,t.jsx)(a.Loader2,{className:"w-4 h-4 animate-spin"}):(0,t.jsx)(s.Save,{className:"w-4 h-4"}),label:k?"Saving…":"Save",title:"Save API key"}),(0,t.jsx)(d.AdaptiveBtn,{orientation:j,onClick:r,disabled:"testing"===y||c,icon:"testing"===y?(0,t.jsx)(a.Loader2,{className:"w-4 h-4 animate-spin"}):"ok"===y?(0,t.jsx)(l,{className:"w-4 h-4 text-green-500"}):"error"===y?(0,t.jsx)(o,{className:"w-4 h-4 text-destructive"}):(0,t.jsx)(l,{className:"w-4 h-4"}),label:"testing"===y?"Testing…":"ok"===y?"Connected":"error"===y?"Failed":"Test",title:"error"===y?f:"Test API key connection"}),(0,t.jsx)(d.AdaptiveBtn,{orientation:j,onClick:n,disabled:c,icon:(0,t.jsx)(i.RefreshCw,{className:"w-4 h-4"}),label:"Refresh",title:"Reload settings and the live model list from the server"})]})}],329804)}]);