module.exports=[912532,a=>{"use strict";var b=a.i(22169);a.s(["Card",()=>b.default])},833354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},551746,a=>{"use strict";var b=a.i(532547);a.s(["ModelSelectModal",()=>b.default])},610157,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(333923);a.i(367434);var e=a.i(387945),f=a.i(813364);a.i(436513);var g=a.i(180550),g=g,h=a.i(553014),h=h;a.s(["default",0,function(){let[a,i]=(0,c.useState)([]),[j,k]=(0,c.useState)([]),[l,m]=(0,c.useState)({}),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)(null),[r,s]=(0,c.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1});(0,c.useEffect)(()=>{t(),u(),v(),w()},[]);let t=async()=>{try{let a=await fetch("/api/providers");if(a.ok){let b=await a.json();i(b.connections||[])}}catch{}},u=async()=>{try{let a=await fetch("/api/keys");if(a.ok){let b=await a.json();k(b.keys||[])}}catch{}},v=async()=>{try{let a=await fetch("/api/models/alias");if(a.ok){let b=await a.json();m(b.aliases||{})}}catch{}},w=async()=>{try{let a=await fetch("/api/settings");if(a.ok){let b=await a.json();o(b.cloudEnabled||!1)}}catch{}},x=()=>a.filter(a=>!1!==a.isActive),y=Object.entries(d.MITM_TOOLS);return(0,b.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,b.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,b.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,b.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:"⚠️ MITM intercepts HTTPS traffic of IDE tools (Antigravity, GitHub Copilot, Kiro) via local CA to redirect requests to your providers. May violate ToS → account ban. Use at your own risk."})]}),(0,b.jsx)(g.default,{apiKeys:j,cloudEnabled:n,onStatusChange:s}),(0,b.jsx)("div",{className:"grid gap-3 sm:gap-4",children:y.map(([a,c])=>(0,b.jsx)(h.default,{tool:c,isExpanded:p===a,onToggle:()=>q(p===a?null:a),serverRunning:r.running,dnsActive:r.dnsStatus?.[a]||!1,hasCachedPassword:r.hasCachedPassword||!1,needsSudoPassword:!1!==r.needsSudoPassword,isWin:!0===r.isWin,apiKeys:j,activeProviders:x(),hasActiveProviders:x().some(a=>(0,e.getModelsByProviderId)(a.provider).length>0||(0,f.isOpenAICompatibleProvider)(a.provider)||(0,f.isAnthropicCompatibleProvider)(a.provider)),modelAliases:l,cloudEnabled:n,onDnsChange:a=>s(b=>({...b,dnsStatus:a.dnsStatus??b.dnsStatus}))},a))})]})}],610157)}];

//# sourceMappingURL=_0_.w_3g._.js.map