@thangnm.nip/arouter 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +8 -7
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/routes-manifest.json +6 -0
- package/.next/standalone/.next/server/app/(dashboard)/mitm/page.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/mitm/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +5 -5
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/console-logs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/health/route.js +1 -0
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/health/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/health/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/logs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/locale/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/usage/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +6 -6
- package/.next/standalone/.next/server/app/index.segments/!KGRhc2hib2FyZCk/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/mitm.html +1 -1
- package/.next/standalone/.next/server/app/mitm.rsc +7 -7
- package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk/mitm/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk/mitm.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/mitm.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/mitm.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/mitm.segments/_index.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/mitm.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app-paths-manifest.json +8 -7
- package/.next/standalone/.next/server/chunks/17.js +1 -1
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/7fKhyLCsAO8WLqzuGI-8m/_buildManifest.js +1 -0
- package/.next/standalone/.next/static/chunks/{702-ca3a08e8b35a9ba5.js → 702-0b316b54d00b8fb3.js} +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/mitm/page-73f3cb4c6b54b42e.js +7 -0
- package/.next/standalone/.next/static/chunks/app/(dashboard)/page-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/_global-error/page-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/console-logs/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/health/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/logs/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/claude-settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/codex-settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/copilot-settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/droid-settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/opencode-settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/keys/[id]/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/keys/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/locale/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/models/alias/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/models/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/providers/client/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/providers/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/settings/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/usage/[id]/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/version/route-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ac9d56490d935e42.js +1 -0
- package/.next/standalone/.next/static/css/a5a3e88cad1bfc66.css +3 -0
- package/.next/standalone/package.json +1 -1
- package/package.json +1 -1
- package/.next/standalone/.next/static/chunks/app/(dashboard)/mitm/page-92d8f757eb03c60d.js +0 -7
- package/.next/standalone/.next/static/chunks/app/(dashboard)/page-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/_global-error/page-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/console-logs/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/logs/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/antigravity-mitm/settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/claude-settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/codex-settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/copilot-settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/droid-settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/cli-tools/opencode-settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/keys/[id]/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/keys/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/locale/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/models/alias/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/models/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/providers/client/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/providers/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/settings/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/usage/[id]/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/version/route-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-419c1820686842ea.js +0 -1
- package/.next/standalone/.next/static/css/73a57e9fc54d09c4.css +0 -3
- package/.next/standalone/.next/static/tDhO-4JppMRLEHylnvHdH/_buildManifest.js +0 -1
- /package/.next/standalone/.next/static/{tDhO-4JppMRLEHylnvHdH → 7fKhyLCsAO8WLqzuGI-8m}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7fKhyLCsAO8WLqzuGI-8m
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"/_not-found/page": "/_not-found",
|
|
3
|
+
"/_global-error/page": "/_global-error",
|
|
4
|
+
"/api/cli-tools/antigravity-mitm/health/route": "/api/cli-tools/antigravity-mitm/health",
|
|
2
5
|
"/api/cli-tools/antigravity-mitm/alias/route": "/api/cli-tools/antigravity-mitm/alias",
|
|
6
|
+
"/api/cli-tools/antigravity-mitm/settings/route": "/api/cli-tools/antigravity-mitm/settings",
|
|
3
7
|
"/api/cli-tools/antigravity-mitm/logs/route": "/api/cli-tools/antigravity-mitm/logs",
|
|
4
8
|
"/api/cli-tools/antigravity-mitm/route": "/api/cli-tools/antigravity-mitm",
|
|
5
|
-
"/api/cli-tools/antigravity-mitm/settings/route": "/api/cli-tools/antigravity-mitm/settings",
|
|
6
9
|
"/api/cli-tools/claude-settings/route": "/api/cli-tools/claude-settings",
|
|
7
10
|
"/api/cli-tools/codex-settings/route": "/api/cli-tools/codex-settings",
|
|
8
11
|
"/api/cli-tools/copilot-settings/route": "/api/cli-tools/copilot-settings",
|
|
9
12
|
"/api/cli-tools/droid-settings/route": "/api/cli-tools/droid-settings",
|
|
10
|
-
"/api/
|
|
11
|
-
"/api/cli-tools/opencode-settings/route": "/api/cli-tools/opencode-settings",
|
|
13
|
+
"/api/keys/[id]/route": "/api/keys/[id]",
|
|
12
14
|
"/api/locale/route": "/api/locale",
|
|
15
|
+
"/api/cli-tools/openclaw-settings/route": "/api/cli-tools/openclaw-settings",
|
|
13
16
|
"/api/models/route": "/api/models",
|
|
14
|
-
"/api/
|
|
15
|
-
"/api/providers/route": "/api/providers",
|
|
17
|
+
"/api/cli-tools/opencode-settings/route": "/api/cli-tools/opencode-settings",
|
|
16
18
|
"/api/settings/route": "/api/settings",
|
|
19
|
+
"/api/providers/route": "/api/providers",
|
|
17
20
|
"/api/version/route": "/api/version",
|
|
18
|
-
"/_global-error/page": "/_global-error",
|
|
19
21
|
"/api/cli-tools/antigravity-mitm/console-logs/route": "/api/cli-tools/antigravity-mitm/console-logs",
|
|
20
|
-
"/_not-found/page": "/_not-found",
|
|
21
22
|
"/api/keys/route": "/api/keys",
|
|
22
23
|
"/api/models/alias/route": "/api/models/alias",
|
|
23
24
|
"/api/providers/client/route": "/api/providers/client",
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
],
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"lowPriorityFiles": [
|
|
7
|
-
"static/
|
|
8
|
-
"static/
|
|
7
|
+
"static/7fKhyLCsAO8WLqzuGI-8m/_buildManifest.js",
|
|
8
|
+
"static/7fKhyLCsAO8WLqzuGI-8m/_ssgManifest.js"
|
|
9
9
|
],
|
|
10
10
|
"rootMainFiles": [
|
|
11
11
|
"static/chunks/webpack-d8640887a0ea8b77.js",
|
|
@@ -101,6 +101,12 @@
|
|
|
101
101
|
"routeKeys": {},
|
|
102
102
|
"namedRegex": "^/api/cli\\-tools/antigravity\\-mitm/console\\-logs(?:/)?$"
|
|
103
103
|
},
|
|
104
|
+
{
|
|
105
|
+
"page": "/api/cli-tools/antigravity-mitm/health",
|
|
106
|
+
"regex": "^/api/cli\\-tools/antigravity\\-mitm/health(?:/)?$",
|
|
107
|
+
"routeKeys": {},
|
|
108
|
+
"namedRegex": "^/api/cli\\-tools/antigravity\\-mitm/health(?:/)?$"
|
|
109
|
+
},
|
|
104
110
|
{
|
|
105
111
|
"page": "/api/cli-tools/antigravity-mitm/logs",
|
|
106
112
|
"regex": "^/api/cli\\-tools/antigravity\\-mitm/logs(?:/)?$",
|
|
@@ -5,4 +5,4 @@ see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__
|
|
|
5
5
|
"model": "{{model}}",
|
|
6
6
|
"provider": "openai",
|
|
7
7
|
"apiKey": "{{apiKey}}"
|
|
8
|
-
}`}}};var g=c(69974),h=c(96919),i=c(50412);function j({apiKeys:a,cloudEnabled:b,onStatusChange:c,onModelsLoaded:f}){let[g,h]=(0,e.useState)(null),[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(""),[p,q]=(0,e.useState)(null),[r,s]=(0,e.useState)(null),[t,u]=(0,e.useState)("http://localhost:20128/v1/chat/completions"),[v,w]=(0,e.useState)(""),[x,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!1),[B,C]=(0,e.useState)(null),[D,E]=(0,e.useState)(!1),[F,G]=(0,e.useState)(!1),[H,I]=(0,e.useState)(null),J="u">typeof navigator&&navigator.userAgent?.includes("Windows"),K=g?.isAdmin!==!1,L=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();if(h(b),c?.(b),b.running)try{let a=await fetch("/api/cli-tools/antigravity-mitm/settings");if(a.ok){let b=await a.json(),c=b.endpoint||t,d=b.apiKey||v,e=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:c,apiKey:d})}),g=await e.json();g.models?.length>0&&(f?.(g.models),C(g))}}catch{}}}catch{h({running:!1,certExists:!1,dnsStatus:{}})}},M=async()=>{G(!0);try{let a=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:t,apiKey:v})});if(a.ok)y(!0),q({type:"success",text:"Configuration saved"});else{let b=await a.json();q({type:"error",text:b.error||"Failed to save"})}}catch(a){q({type:"error",text:a.message})}finally{G(!1)}},N=async()=>{E(!0),C(null);try{let a=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:t,apiKey:v})}),b=await a.json();C(b),b.models?.length>0&&f?.(b.models)}catch(a){C({success:!1,reachable:!1,message:a.message})}finally{E(!1)}},O=a=>{J||g?.hasCachedPassword?P(a,""):(s(a),m(!0),q(null))},P=async(a,b)=>{k(!0),q(null);try{if("trust-cert"===a){let a=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"trust-cert",sudoPassword:b})}),c=await a.json();a.ok?q({type:"success",text:"Certificate trusted successfully"}):q({type:"error",text:c.error||"Failed to trust certificate"})}else if("start"===a){C(null),I(null),await M(),q({type:"info",text:"Validating endpoint..."});let a=0;try{let b=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:t,apiKey:v})}),c=await b.json();if(!b.ok||!c.reachable||!c.models||0===c.models.length){q({type:"error",text:`Endpoint invalid: ${c.message||c.error||"cannot load models"}`}),k(!1),await L();return}a=c.models.length,f&&f(c.models),C(c)}catch(a){q({type:"error",text:`Endpoint invalid: ${a.message}`}),k(!1),await L();return}let c=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:v||"sk_default",sudoPassword:b})}),d=await c.json();c.ok?q({type:"success",text:`Server started (${a} models loaded)`}):q({type:"error",text:d.error||"Failed to start server"})}else{let a=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:b})}),c=await a.json();console.log("STOP SERVER REPONSE:",a.status,c),a.ok?q({type:"success",text:"Server stopped — all DNS cleared"}):q({type:"error",text:c.error||"Failed to stop server"})}m(!1),o(""),await L()}catch(a){q({type:"error",text:a.message})}finally{k(!1),s(null)}},Q=()=>{n.trim()?P(r,n):q({type:"error",text:"Sudo password is required"})},R=g?.running;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.Zp,{padding:"sm",className:"border-primary/20 bg-primary/5",children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"security"}),(0,d.jsx)("span",{className:"font-semibold text-sm text-text-main",children:"MITM Server"}),R?(0,d.jsx)(i.Ex,{variant:"success",size:"sm",children:"Running"}):(0,d.jsx)(i.Ex,{variant:"error",size:"sm",children:"Stopped"})]}),(0,d.jsx)("div",{className:"flex items-center gap-1 text-xs text-text-muted","data-i18n-skip":"true",children:[{label:"Cert",ok:g?.certExists},{label:"Trusted",ok:g?.certTrusted},{label:"Server",ok:R}].map(({label:a,ok:b})=>(0,d.jsxs)("span",{className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded ${b?"text-green-600":"text-text-muted"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:b?"check_circle":"cancel"}),a]},a))})]}),(0,d.jsxs)("div",{className:"px-2 py-2 rounded-lg bg-surface/50 border border-border/50 flex flex-col gap-2",children:[(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"Purpose:"})," Use Antigravity IDE & GitHub Copilot → with ANY provider/model from Router"]}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → Router endpoint → response back to IDE"]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-2 py-2 rounded-lg bg-surface/30 border border-border/30",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("p",{className:"text-[11px] font-medium text-text-main uppercase tracking-wider",children:"Router Configuration"}),H&&null!==H.ok&&(0,d.jsxs)("div",{className:`flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-medium ${H.ok?"bg-green-500/15 text-green-600":"bg-red-500/15 text-red-500"}`,children:[(0,d.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${H.ok?"bg-green-500":"bg-red-500"}`}),H.ok?"Valid":"Invalid"]})]}),H&&!1===H.ok&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-[11px] bg-red-500/10 text-red-500 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{className:"break-all",children:H.detail})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)("label",{className:"text-[11px] text-text-muted",children:"Endpoint URL"}),(0,d.jsx)("input",{type:"text",value:t,onChange:a=>{u(a.target.value),y(!1),C(null)},placeholder:"http://localhost:20128/v1/chat/completions",disabled:R,className:`w-full px-2.5 py-1.5 bg-surface rounded-md text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50 text-text-main placeholder-text-muted/50 ${R?"opacity-50 cursor-not-allowed":""}`})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)("label",{className:"text-[11px] text-text-muted",children:"API Key"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{type:z?"text":"password",value:v,onChange:a=>{w(a.target.value),y(!1),C(null)},placeholder:"Enter API key",disabled:R,className:`w-full px-2.5 py-1.5 pr-8 bg-surface rounded-md text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50 text-text-main placeholder-text-muted/50 ${R?"opacity-50 cursor-not-allowed":""}`}),(0,d.jsx)("button",{type:"button",onClick:()=>A(a=>!a),className:"absolute right-1.5 top-1/2 -translate-y-1/2 flex items-center justify-center w-5 h-5 rounded text-text-muted hover:text-text-main transition-colors",title:z?"Hide API Key":"Show API Key",children:(0,d.jsx)("span",{className:"material-symbols-outlined",style:{fontSize:"18px"},children:z?"visibility":"visibility_off"})})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,d.jsxs)("button",{onClick:N,disabled:D||!t||R,className:"px-3 py-1 rounded-md bg-blue-500/10 border border-blue-500/30 text-blue-500 font-medium text-[11px] flex items-center gap-1 hover:bg-blue-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:D?"hourglass_empty":"sync"}),D?"Loading...":"Load Models"]}),(0,d.jsxs)("button",{onClick:M,disabled:F||x||!t||R,className:"px-3 py-1 rounded-md bg-green-500/10 border border-green-500/30 text-green-600 font-medium text-[11px] flex items-center gap-1 hover:bg-green-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"save"}),F?"Saving...":x?"Saved ✓":"Save"]})]}),B&&(0,d.jsxs)("div",{className:`flex flex-col gap-1.5 px-2 py-1.5 rounded text-[11px] ${B.reachable?B.status>=200&&B.status<300?"bg-green-500/10 text-green-600":"bg-yellow-500/10 text-yellow-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:B.reachable?B.status>=200&&B.status<300?"check_circle":"warning":"error"}),(0,d.jsx)("span",{children:B.message})]}),B.models?.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1 mt-1 max-h-[120px] overflow-y-auto",children:B.models.map(a=>(0,d.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-green-500/15 text-green-700 text-[10px] font-mono",children:a},a))})]})]}),p&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===p.type?"bg-green-500/10 text-green-600":"info"===p.type?"bg-amber-500/10 text-amber-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===p.type?"check_circle":"info"===p.type?"hourglass_top":"error"}),(0,d.jsx)("span",{children:p.text})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap","data-i18n-skip":"true",children:[g?.certExists&&!g?.certTrusted&&(0,d.jsxs)("button",{onClick:()=>O("trust-cert"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-yellow-500/10 border border-yellow-500/30 text-yellow-600 font-medium text-xs flex items-center gap-1.5 hover:bg-yellow-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"verified_user"}),"Trust Cert"]}),R?(0,d.jsxs)("button",{onClick:()=>O("stop"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop Server"]}):(0,d.jsxs)("button",{onClick:()=>O("start"),disabled:j||!t||J&&!K,className:"px-4 py-1.5 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-xs flex items-center gap-1.5 hover:bg-primary/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start Server"]}),R&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enable DNS per tool below to activate interception"})]}),J&&!K&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"shield_lock"}),(0,d.jsx)("span",{children:"Administrator required — restart as Administrator to use MITM"})]})]})}),l&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and server startup"})]}),(0,d.jsx)(i.pd,{type:"password",placeholder:"Enter sudo password",value:n,onChange:a=>o(a.target.value),onKeyDown:a=>{"Enter"!==a.key||j||Q()}}),p&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:p.text})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(i.$n,{variant:"ghost",size:"sm",onClick:()=>{m(!1),o(""),q(null)},disabled:j,children:"Cancel"}),(0,d.jsx)(i.$n,{variant:"primary",size:"sm",onClick:Q,loading:j,children:"Confirm"})]})]})})]})}var k=c(81220);function l({tool:a,isExpanded:b,onToggle:c,serverRunning:f,dnsActive:g,hasCachedPassword:h,apiKeys:j,activeProviders:l,hasActiveProviders:m,modelAliases:n={},cloudEnabled:o,loadedModels:p=[],onDnsChange:q}){let[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(""),[z,A]=(0,e.useState)(null),[B,C]=(0,e.useState)({}),[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)({top:0,right:0}),[H,I]=(0,e.useState)(""),J="u">typeof navigator&&navigator.userAgent?.includes("Windows"),K=(0,e.useCallback)(async b=>{try{await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,mappings:b})})}catch{}},[a.id]),L=(a,b)=>{C(c=>({...c,[a]:b}))},M=()=>{if(!f)return;let a=g?"disable":"enable";J||h?N(a,""):(A(a),w(!0),u(null))},N=async(b,c)=>{s(!0),u(null);try{let d=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,action:b,sudoPassword:c})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to toggle DNS");"enable"===b?u({type:"success",text:"DNS enabled successfully.",warning:`Please restart ${a.name} to apply changes.`}):u({type:"success",text:"DNS disabled — traffic restored"}),w(!1),y(""),q?.(e)}catch(a){u({type:"error",text:a.message})}finally{s(!1),A(null)}},O=()=>{x.trim()?N(z,x):u({type:"error",text:"Sudo password is required"})};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(k.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),f?g?(0,d.jsx)(i.Ex,{variant:"success",size:"sm",children:"Active"}):(0,d.jsx)(i.Ex,{variant:"warning",size:"sm",children:"DNS off"}):(0,d.jsx)(i.Ex,{variant:"error",size:"sm",children:"Server off"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Intercept ",a.name," requests via MITM proxy"]})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform${b?" rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted px-1",children:[(0,d.jsxs)("p",{children:["Toggle DNS to redirect ",a.name," traffic through Router via MITM."]}),!g&&(0,d.jsx)("p",{className:"text-amber-600 text-[10px] mt-1",children:"⚠️ Enable DNS to edit model mappings"})]}),t&&(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===t.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===t.type?"check_circle":"error"}),(0,d.jsx)("span",{children:t.text})]}),t.warning&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-amber-500/10 text-amber-600 border border-amber-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,d.jsx)("span",{className:"font-medium",children:t.warning})]})]}),a.defaultModels?.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-2",children:a.defaultModels.map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-2 relative",children:[(0,d.jsx)("span",{className:"w-36 shrink-0 text-xs font-semibold text-text-main text-right",children:a.name}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:B[a.alias]||"",onChange:b=>L(a.alias,b.target.value),onBlur:b=>{var c,d;return c=a.alias,d=b.target.value,void K({...B,[c]:d})},placeholder:"provider/model-id",disabled:!g,className:`flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 ${!g?"opacity-50 cursor-not-allowed":""}`}),(0,d.jsx)("div",{className:"relative","data-model-dropdown":!0,children:(0,d.jsx)("button",{ref:b=>{b&&(b._alias=a.alias)},onClick:b=>{if(D===a.alias)E(null);else{I("");let c=b.currentTarget.getBoundingClientRect(),d=Math.min(32*p.length,280);G({top:window.innerHeight-c.bottom<d+8?Math.max(8,c.top-d-4):c.bottom+4,right:window.innerWidth-c.right}),E(a.alias)}},disabled:!g||0===p.length,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 ${g&&p.length>0?"bg-surface border-border hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,title:0===p.length?"Load Models first (from server card above)":"Select model",children:"Select"})}),B[a.alias]&&(0,d.jsx)("button",{onClick:()=>{L(a.alias,""),K({...B,[a.alias]:""})},className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias))}),a.defaultModels?.length===0&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-1",children:"Model mappings will be available soon."}),(0,d.jsx)("div",{children:g?(0,d.jsxs)("button",{onClick:M,disabled:!f||r,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop DNS"]}):(0,d.jsxs)(i.$n,{variant:"primary",size:"sm",onClick:M,loading:r,disabled:!f||r,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"play_circle"}),"Start DNS"]})})]})]}),D&&p.length>0&&(0,d.jsxs)("div",{"data-model-dropdown":!0,className:"fixed z-[999] bg-surface border border-border rounded-lg shadow-xl max-h-[280px] w-[340px] overflow-hidden flex flex-col",style:{top:F.top,right:F.right},children:[(0,d.jsx)("div",{className:"sticky top-0 p-1.5 border-b border-border bg-surface",children:(0,d.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:"Search models...",className:"w-full px-2 py-1 bg-background rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50",autoFocus:!0})}),(0,d.jsx)("div",{className:"overflow-y-auto flex-1",children:p.filter(a=>!H||a.toLowerCase().includes(H.toLowerCase())).map(a=>(0,d.jsx)("button",{onClick:()=>{let b;C(b={...B,[D]:a}),K(b),E(null)},className:`w-full text-left px-3 py-2 text-xs font-mono hover:bg-primary/10 transition-colors border-b border-border/30 last:border-0 ${B[D]===a?"bg-primary/15 text-primary font-semibold":"text-text-main"}`,children:a},a))})]}),v&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required to modify /etc/hosts and flush DNS cache"})]}),(0,d.jsx)(i.pd,{type:"password",placeholder:"Enter sudo password",value:x,onChange:a=>y(a.target.value),onKeyDown:a=>{"Enter"!==a.key||r||O()}}),t&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:t.text})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(i.$n,{variant:"ghost",size:"sm",onClick:()=>{w(!1),y(""),u(null)},disabled:r,children:"Cancel"}),(0,d.jsx)(i.$n,{variant:"primary",size:"sm",onClick:O,loading:r,children:"Confirm"})]})]})})]})}function m(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)(!0),[g,h]=(0,e.useState)("mitm"),[i,j]=(0,e.useState)(!0),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(0),o=(0,e.useRef)(null),p=(0,e.useRef)(null),q=(0,e.useRef)(null),r=(0,e.useCallback)(()=>{q.current&&(q.current.close(),q.current=null),l(!1),b([]),n(a=>a+1)},[]);return(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between pb-2",children:[(0,d.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-2 cursor-pointer select-none",onClick:()=>j(!i),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"terminal"}),"Console Logs",(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] transition-transform ${i?"rotate-180":""}`,children:"expand_more"})]}),i&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsxs)("select",{value:g,onChange:a=>{h(a.target.value),b([])},className:"px-1.5 py-0.5 rounded border border-border bg-surface text-[10px] cursor-pointer",children:[(0,d.jsx)("option",{value:"mitm",children:"MITM Only"}),(0,d.jsx)("option",{value:"all",children:"All Logs"})]}),(0,d.jsx)("button",{onClick:()=>{f(!c),!c&&o.current&&o.current.scrollIntoView({behavior:"smooth"})},className:`p-0.5 rounded transition-colors ${c?"text-primary":"text-muted hover:text-foreground"}`,title:c?"Auto-scroll ON":"Auto-scroll OFF",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:c?"vertical_align_bottom":"pause"})}),(0,d.jsx)("button",{onClick:()=>b([]),className:"p-0.5 rounded text-muted hover:text-foreground transition-colors",title:"Clear logs",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"delete_sweep"})})]})]}),i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{ref:p,onScroll:()=>{if(!p.current)return;let{scrollTop:a,scrollHeight:b,clientHeight:c}=p.current;f(b-a-c<40)},className:"bg-zinc-950 rounded-lg p-3 font-mono text-[11px] leading-[1.6] overflow-auto border border-zinc-800",style:{maxHeight:"280px",minHeight:"120px"},children:[0===a.length?(0,d.jsx)("div",{className:`italic text-center py-4 ${k?"text-zinc-600":"text-red-500 font-semibold"}`,children:k?"Waiting for logs...":"Vui l\xf2ng Stop > Start lại MITM Server để kết nối lại logs hệ thống"}):a.map((a,b)=>(0,d.jsx)("div",{className:`whitespace-pre-wrap break-all ${a.includes("❌")||a.includes("[ERROR]")||a.includes("error")?"text-red-400":a.includes("⚡")||a.includes("intercept")?"text-emerald-400":a.includes("⏩")||a.includes("passthrough")?"text-amber-400":a.includes("\uD83D\uDE80")||a.includes("✅")?"text-green-400":a.includes("\uD83D\uDD10")?"text-blue-400":a.includes("\uD83C\uDF10")?"text-cyan-400":a.includes("\uD83D\uDD0D")?"text-purple-400":a.includes("⏹")?"text-orange-400":a.includes("WARNING")||a.includes("warn")?"text-yellow-400":"text-zinc-300"}`,children:a},b)),(0,d.jsx)("div",{ref:o})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between mt-1.5",children:[(0,d.jsxs)("span",{className:"text-[10px] text-muted",children:[a.length," lines"]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[!k&&(0,d.jsx)("button",{onClick:r,className:"flex items-center justify-center rounded p-2 text-primary hover:bg-primary/20 transition-colors",title:"Reconnect to console logs",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",style:{fontSize:"18px"},children:"sync"})}),(0,d.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${k?"bg-green-500 animate-pulse":"bg-red-500"}`}),(0,d.jsx)("span",{className:`text-[10px] ${k?"text-muted":"text-red-400"}`,children:k?"Connected":"Disconnected"})]})]})]})]})}function n({serverRunning:a}){let[b,c]=(0,e.useState)(!1),[f,g]=(0,e.useState)(!1),[h,j]=(0,e.useState)([]),[l,m]=(0,e.useState)([]),[n,o]=(0,e.useState)(null),p=async()=>{g(!0),o(null);try{let a=await fetch("/api/providers/client");if(!a.ok)throw Error("Failed to fetch providers");let b=((await a.json()).connections||[]).filter(a=>"antigravity"===a.provider);j(b);let c=await Promise.all(b.map(async a=>{try{let b=await fetch(`/api/usage/${a.id}`);if(b.ok){let c=await b.json();return{...a,quota:c}}return{...a,quota:null,quotaError:"Failed to fetch quota"}}catch(b){return{...a,quota:null,quotaError:b.message}}}));m(c)}catch(a){o(a.message)}finally{g(!1)}},q=a=>a>80?"bg-green-500":a>50?"bg-yellow-500":"bg-orange-500",r=h.length>0;return(0,d.jsxs)(i.Zp,{padding:"xs",className:`overflow-hidden ${!a?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:`flex items-center justify-between ${a?"hover:cursor-pointer hover:bg-primary/5":"cursor-not-allowed"} transition-colors rounded px-2`,onClick:()=>a&&c(!b),children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 text-white",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"speed"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:"Quota Checker"}),a?r?(0,d.jsxs)(i.Ex,{variant:"success",size:"sm",children:[h.length," account",h.length>1?"s":""]}):(0,d.jsx)(i.Ex,{variant:"warning",size:"sm",children:"No accounts"}):(0,d.jsx)(i.Ex,{variant:"error",size:"sm",children:"Server off"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Check antigravity provider quota usage"})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform${b?" rotate-180":""}`,children:"expand_more"})]}),b&&a&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Antigravity Client Quotas"}),(0,d.jsxs)("button",{onClick:a=>{a.stopPropagation(),p()},disabled:f,className:"flex items-center gap-1 px-2 py-1 rounded-md bg-primary/10 text-primary text-[11px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:f?"hourglass_empty":"refresh"}),f?"Refreshing...":"Refresh"]})]}),n&&!f&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:n})]}),f&&(0,d.jsxs)("div",{className:"py-6 text-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-2xl animate-spin",children:"progress_activity"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Loading quota data..."})]}),!f&&!n&&0===l.length&&(0,d.jsxs)("div",{className:"py-6 text-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-2xl",children:"cloud_off"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"No antigravity connections found"}),(0,d.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Add an antigravity provider to see quota info"})]}),!f&&!n&&l.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3 max-h-[400px] overflow-y-auto",children:l.map(a=>(0,d.jsxs)("div",{className:"p-3 rounded-lg border border-border/50 bg-surface",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-3 pb-2 border-b border-border/30",children:[(0,d.jsx)("div",{className:"w-7 h-7 rounded-full overflow-hidden flex items-center justify-center bg-surface",children:(0,d.jsx)(k.default,{src:"/providers/antigravity.png",alt:"Antigravity",width:28,height:28,className:"w-7 h-7 object-contain"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main truncate",children:a.name||a.email||"Unknown Account"}),(0,d.jsx)("p",{className:"text-[10px] text-text-muted",children:a.quota?.plan||"Free Tier"})]})]}),a.quota?.quotas&&Object.keys(a.quota.quotas).length>0?(0,d.jsx)("div",{className:"space-y-3",children:Object.entries(a.quota.quotas).map(([a,b])=>(0,d.jsxs)("div",{className:"space-y-1.5",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("span",{className:`w-2 h-2 rounded-full ${q(b.remainingPercentage)}`}),(0,d.jsx)("span",{className:"text-xs font-medium text-text-main",children:b.displayName||a})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)("span",{className:"text-[10px] text-text-muted",children:[b.used.toLocaleString()," / ",b.total.toLocaleString()]}),(0,d.jsxs)("span",{className:`text-[10px] font-medium ${b.remainingPercentage>80?"text-green-500":b.remainingPercentage>50?"text-yellow-500":"text-orange-500"}`,children:[b.remainingPercentage,"%"]})]})]}),(0,d.jsx)("div",{className:"relative h-1.5 bg-black/5 dark:bg-white/5 rounded-full overflow-hidden",children:(0,d.jsx)("div",{className:`absolute left-0 top-0 h-full rounded-full transition-all duration-500 ${q(b.remainingPercentage)}`,style:{width:`${b.remainingPercentage}%`}})}),b.resetAt&&(0,d.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-text-muted",children:[(0,d.jsxs)("span",{children:["Resets ",(a=>{if(!a)return"";let b=new Date(a)-new Date;if(b<=0)return"Resetting soon";let c=Math.floor(b/36e5),d=Math.floor(c/24);return d>0?`in ${d}d ${c%24}h`:`in ${c}h ${Math.floor(b%36e5/6e4)}m`})(b.resetAt)]}),(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:new Date(b.resetAt).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]},a))}):(0,d.jsx)("div",{className:"py-2 text-center",children:(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"No quota data available"})}),a.quotaError&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-yellow-500/10 text-yellow-600 mt-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"warning"}),(0,d.jsx)("span",{children:a.quotaError})]})]},a.id))})]}),b&&!a&&(0,d.jsx)("div",{className:"mt-4 pt-4 border-t border-border",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded text-xs bg-text-muted/10 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"info"}),(0,d.jsx)("span",{children:"Start MITM Server to check quota information"})]})})]})}let o=["antigravity","copilot"];function p(){let[a,b]=(0,e.useState)([]),[c,i]=(0,e.useState)([]),[k,p]=(0,e.useState)({}),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1}),[w,x]=(0,e.useState)([]),y=()=>a.filter(a=>!1!==a.isActive),z=Object.entries(f).filter(([a])=>o.includes(a));return(0,d.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(j,{apiKeys:c,cloudEnabled:q,onStatusChange:v,onModelsLoaded:x}),(0,d.jsx)("div",{className:"mt-6",children:(0,d.jsx)(n,{serverRunning:u.running})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[z.map(([a,b])=>(0,d.jsx)(l,{tool:b,isExpanded:s===a,onToggle:()=>t(s===a?null:a),serverRunning:u.running,dnsActive:u.dnsStatus?.[a]||!1,hasCachedPassword:u.hasCachedPassword||!1,apiKeys:c,activeProviders:y(),hasActiveProviders:y().some(a=>(0,g.KC)(a.provider).length>0||(0,h.mq)(a.provider)||(0,h.gb)(a.provider)),modelAliases:k,cloudEnabled:q,loadedModels:w,onDnsChange:a=>v(b=>({...b,dnsStatus:a.dnsStatus??b.dnsStatus}))},a)),(0,d.jsx)(m,{})]})]})}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[741,216,194,471,138,330,182,17,900],()=>b(b.s=30404));module.exports=c})();
|
|
8
|
+
}`}}};var g=c(69974),h=c(96919),i=c(50412);function j({apiKeys:a,cloudEnabled:b,onStatusChange:c,onModelsLoaded:f}){let[g,h]=(0,e.useState)(null),[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(""),[p,q]=(0,e.useState)(null),[r,s]=(0,e.useState)(null),[t,u]=(0,e.useState)("http://localhost:20128/v1/chat/completions"),[v,w]=(0,e.useState)(""),[x,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(!1),[B,C]=(0,e.useState)(null),[D,E]=(0,e.useState)(!1),[F,G]=(0,e.useState)(!1),[H,I]=(0,e.useState)(null),J="u">typeof navigator&&navigator.userAgent?.includes("Windows"),K=g?.isAdmin!==!1,L=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();if(h(b),c?.(b),b.running)try{let a=await fetch("/api/cli-tools/antigravity-mitm/settings");if(a.ok){let b=await a.json(),c=b.endpoint||t,d=b.apiKey||v,e=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:c,apiKey:d})}),g=await e.json();g.models?.length>0&&(f?.(g.models),C(g))}}catch{}}}catch{h({running:!1,certExists:!1,dnsStatus:{}})}},M=async()=>{G(!0);try{let a=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:t,apiKey:v})});if(a.ok)y(!0),q({type:"success",text:"Configuration saved"});else{let b=await a.json();q({type:"error",text:b.error||"Failed to save"})}}catch(a){q({type:"error",text:a.message})}finally{G(!1)}},N=async()=>{E(!0),C(null);try{let a=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:t,apiKey:v})}),b=await a.json();C(b),b.models?.length>0&&f?.(b.models)}catch(a){C({success:!1,reachable:!1,message:a.message})}finally{E(!1)}},O=a=>{J||g?.hasCachedPassword?P(a,""):(s(a),m(!0),q(null))},P=async(a,b)=>{k(!0),q(null);try{if("trust-cert"===a){let a=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"trust-cert",sudoPassword:b})}),c=await a.json();a.ok?q({type:"success",text:"Certificate trusted successfully"}):q({type:"error",text:c.error||"Failed to trust certificate"})}else if("start"===a){C(null),I(null),await M(),q({type:"info",text:"Validating endpoint..."});let a=0;try{let b=await fetch("/api/cli-tools/antigravity-mitm/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:t,apiKey:v})}),c=await b.json();if(!b.ok||!c.reachable||!c.models||0===c.models.length){q({type:"error",text:`Endpoint invalid: ${c.message||c.error||"cannot load models"}`}),k(!1),await L();return}a=c.models.length,f&&f(c.models),C(c)}catch(a){q({type:"error",text:`Endpoint invalid: ${a.message}`}),k(!1),await L();return}let c=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:v||"sk_default",sudoPassword:b})}),d=await c.json();c.ok?q({type:"success",text:`Server started (${a} models loaded)`}):q({type:"error",text:d.error||"Failed to start server"})}else{let a=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:b})}),c=await a.json();console.log("STOP SERVER REPONSE:",a.status,c),a.ok?q({type:"success",text:"Server stopped — all DNS cleared"}):q({type:"error",text:c.error||"Failed to stop server"})}m(!1),o(""),await L()}catch(a){q({type:"error",text:a.message})}finally{k(!1),s(null)}},Q=()=>{n.trim()?P(r,n):q({type:"error",text:"Sudo password is required"})},R=g?.running;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.Zp,{padding:"sm",className:"border-primary/20 bg-primary/5",children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"security"}),(0,d.jsx)("span",{className:"font-semibold text-sm text-text-main",children:"MITM Server"}),R?(0,d.jsx)(i.Ex,{variant:"success",size:"sm",children:"Running"}):(0,d.jsx)(i.Ex,{variant:"error",size:"sm",children:"Stopped"})]}),(0,d.jsx)("div",{className:"flex items-center gap-1 text-xs text-text-muted","data-i18n-skip":"true",children:[{label:"Cert",ok:g?.certExists},{label:"Trusted",ok:g?.certTrusted},{label:"Server",ok:R}].map(({label:a,ok:b})=>(0,d.jsxs)("span",{className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded ${b?"text-green-600":"text-text-muted"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:b?"check_circle":"cancel"}),a]},a))})]}),(0,d.jsxs)("div",{className:"px-2 py-2 rounded-lg bg-surface/50 border border-border/50 flex flex-col gap-2",children:[(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"Purpose:"})," Use Antigravity IDE & GitHub Copilot → with ANY provider/model from Router"]}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → Router endpoint → response back to IDE"]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-2 py-2 rounded-lg bg-surface/30 border border-border/30",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("p",{className:"text-[11px] font-medium text-text-main uppercase tracking-wider",children:"Router Configuration"}),H&&null!==H.ok&&(0,d.jsxs)("div",{className:`flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] font-medium ${H.ok?"bg-green-500/15 text-green-600":"bg-red-500/15 text-red-500"}`,children:[(0,d.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${H.ok?"bg-green-500":"bg-red-500"}`}),H.ok?"Valid":"Invalid"]})]}),H&&!1===H.ok&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-[11px] bg-red-500/10 text-red-500 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{className:"break-all",children:H.detail})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)("label",{className:"text-[11px] text-text-muted",children:"Endpoint URL"}),(0,d.jsx)("input",{type:"text",value:t,onChange:a=>{u(a.target.value),y(!1),C(null)},placeholder:"http://localhost:20128/v1/chat/completions",disabled:R,className:`w-full px-2.5 py-1.5 bg-surface rounded-md text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50 text-text-main placeholder-text-muted/50 ${R?"opacity-50 cursor-not-allowed":""}`})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,d.jsx)("label",{className:"text-[11px] text-text-muted",children:"API Key"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{type:z?"text":"password",value:v,onChange:a=>{w(a.target.value),y(!1),C(null)},placeholder:"Enter API key",disabled:R,className:`w-full px-2.5 py-1.5 pr-8 bg-surface rounded-md text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50 text-text-main placeholder-text-muted/50 ${R?"opacity-50 cursor-not-allowed":""}`}),(0,d.jsx)("button",{type:"button",onClick:()=>A(a=>!a),className:"absolute right-1.5 top-1/2 -translate-y-1/2 flex items-center justify-center w-5 h-5 rounded text-text-muted hover:text-text-main transition-colors",title:z?"Hide API Key":"Show API Key",children:(0,d.jsx)("span",{className:"material-symbols-outlined",style:{fontSize:"18px"},children:z?"visibility":"visibility_off"})})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,d.jsxs)("button",{onClick:N,disabled:D||!t||R,className:"px-3 py-1 rounded-md bg-blue-500/10 border border-blue-500/30 text-blue-500 font-medium text-[11px] flex items-center gap-1 hover:bg-blue-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:D?"hourglass_empty":"sync"}),D?"Loading...":"Load Models"]}),(0,d.jsxs)("button",{onClick:M,disabled:F||x||!t||R,className:"px-3 py-1 rounded-md bg-green-500/10 border border-green-500/30 text-green-600 font-medium text-[11px] flex items-center gap-1 hover:bg-green-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"save"}),F?"Saving...":x?"Saved ✓":"Save"]})]}),B&&(0,d.jsxs)("div",{className:`flex flex-col gap-1.5 px-2 py-1.5 rounded text-[11px] ${B.reachable?B.status>=200&&B.status<300?"bg-green-500/10 text-green-600":"bg-yellow-500/10 text-yellow-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:B.reachable?B.status>=200&&B.status<300?"check_circle":"warning":"error"}),(0,d.jsx)("span",{children:B.message})]}),B.models?.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1 mt-1 max-h-[120px] overflow-y-auto",children:B.models.map(a=>(0,d.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-green-500/15 text-green-700 text-[10px] font-mono",children:a},a))})]})]}),p&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===p.type?"bg-green-500/10 text-green-600":"info"===p.type?"bg-amber-500/10 text-amber-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===p.type?"check_circle":"info"===p.type?"hourglass_top":"error"}),(0,d.jsx)("span",{children:p.text})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap","data-i18n-skip":"true",children:[g?.certExists&&!g?.certTrusted&&(0,d.jsxs)("button",{onClick:()=>O("trust-cert"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-yellow-500/10 border border-yellow-500/30 text-yellow-600 font-medium text-xs flex items-center gap-1.5 hover:bg-yellow-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"verified_user"}),"Trust Cert"]}),R?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("button",{onClick:()=>O("stop"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop Server"]}),(0,d.jsxs)("button",{onClick:async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm/health"),b=new Date().toLocaleTimeString("en-GB",{hour12:!1});a.ok?(await a.json(),console.log(`[${b}] [MITM] check health ok`)):console.log(`[${b}] [MITM] check health error:`,await a.text())}catch(b){let a=new Date().toLocaleTimeString("en-GB",{hour12:!1});console.log(`[${a}] [MITM] check health error:`,b)}},disabled:j,className:"px-4 py-1.5 rounded-lg bg-blue-500/10 border border-blue-500/30 text-blue-500 font-medium text-xs flex items-center gap-1.5 hover:bg-blue-500/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"health_and_safety"}),"Check Health"]})]}):(0,d.jsxs)("button",{onClick:()=>O("start"),disabled:j||!t||J&&!K,className:"px-4 py-1.5 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-xs flex items-center gap-1.5 hover:bg-primary/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start Server"]}),R&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enable DNS per tool below to activate interception"})]}),J&&!K&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"shield_lock"}),(0,d.jsx)("span",{children:"Administrator required — restart as Administrator to use MITM"})]})]})}),l&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and server startup"})]}),(0,d.jsx)(i.pd,{type:"password",placeholder:"Enter sudo password",value:n,onChange:a=>o(a.target.value),onKeyDown:a=>{"Enter"!==a.key||j||Q()}}),p&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:p.text})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(i.$n,{variant:"ghost",size:"sm",onClick:()=>{m(!1),o(""),q(null)},disabled:j,children:"Cancel"}),(0,d.jsx)(i.$n,{variant:"primary",size:"sm",onClick:Q,loading:j,children:"Confirm"})]})]})})]})}var k=c(81220);function l({tool:a,isExpanded:b,onToggle:c,serverRunning:f,dnsActive:g,hasCachedPassword:h,apiKeys:j,activeProviders:l,hasActiveProviders:m,modelAliases:n={},cloudEnabled:o,loadedModels:p=[],onDnsChange:q}){let[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(""),[z,A]=(0,e.useState)(null),[B,C]=(0,e.useState)({}),[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)({top:0,right:0}),[H,I]=(0,e.useState)(""),J="u">typeof navigator&&navigator.userAgent?.includes("Windows"),K=(0,e.useCallback)(async b=>{try{await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,mappings:b})})}catch{}},[a.id]),L=(a,b)=>{C(c=>({...c,[a]:b}))},M=()=>{if(!f)return;let a=g?"disable":"enable";J||h?N(a,""):(A(a),w(!0),u(null))},N=async(b,c)=>{s(!0),u(null);try{let d=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,action:b,sudoPassword:c})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to toggle DNS");"enable"===b?u({type:"success",text:"DNS enabled successfully.",warning:`Please restart ${a.name} to apply changes.`}):u({type:"success",text:"DNS disabled — traffic restored"}),w(!1),y(""),q?.(e)}catch(a){u({type:"error",text:a.message})}finally{s(!1),A(null)}},O=()=>{x.trim()?N(z,x):u({type:"error",text:"Sudo password is required"})};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(k.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),f?g?(0,d.jsx)(i.Ex,{variant:"success",size:"sm",children:"Active"}):(0,d.jsx)(i.Ex,{variant:"warning",size:"sm",children:"DNS off"}):(0,d.jsx)(i.Ex,{variant:"error",size:"sm",children:"Server off"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Intercept ",a.name," requests via MITM proxy"]})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform${b?" rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted px-1",children:[(0,d.jsxs)("p",{children:["Toggle DNS to redirect ",a.name," traffic through Router via MITM."]}),!g&&(0,d.jsx)("p",{className:"text-amber-600 text-[10px] mt-1",children:"⚠️ Enable DNS to edit model mappings"})]}),t&&(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===t.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===t.type?"check_circle":"error"}),(0,d.jsx)("span",{children:t.text})]}),t.warning&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-amber-500/10 text-amber-600 border border-amber-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,d.jsx)("span",{className:"font-medium",children:t.warning})]})]}),a.defaultModels?.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-2",children:a.defaultModels.map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-2 relative",children:[(0,d.jsx)("span",{className:"w-36 shrink-0 text-xs font-semibold text-text-main text-right",children:a.name}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:B[a.alias]||"",onChange:b=>L(a.alias,b.target.value),onBlur:b=>{var c,d;return c=a.alias,d=b.target.value,void K({...B,[c]:d})},placeholder:"provider/model-id",disabled:!g,className:`flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 ${!g?"opacity-50 cursor-not-allowed":""}`}),(0,d.jsx)("div",{className:"relative","data-model-dropdown":!0,children:(0,d.jsx)("button",{ref:b=>{b&&(b._alias=a.alias)},onClick:b=>{if(D===a.alias)E(null);else{I("");let c=b.currentTarget.getBoundingClientRect(),d=Math.min(32*p.length,280);G({top:window.innerHeight-c.bottom<d+8?Math.max(8,c.top-d-4):c.bottom+4,right:window.innerWidth-c.right}),E(a.alias)}},disabled:!g||0===p.length,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 ${g&&p.length>0?"bg-surface border-border hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,title:0===p.length?"Load Models first (from server card above)":"Select model",children:"Select"})}),B[a.alias]&&(0,d.jsx)("button",{onClick:()=>{L(a.alias,""),K({...B,[a.alias]:""})},className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias))}),a.defaultModels?.length===0&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-1",children:"Model mappings will be available soon."}),(0,d.jsx)("div",{children:g?(0,d.jsxs)("button",{onClick:M,disabled:!f||r,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop DNS"]}):(0,d.jsxs)(i.$n,{variant:"primary",size:"sm",onClick:M,loading:r,disabled:!f||r,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"play_circle"}),"Start DNS"]})})]})]}),D&&p.length>0&&(0,d.jsxs)("div",{"data-model-dropdown":!0,className:"fixed z-[999] bg-surface border border-border rounded-lg shadow-xl max-h-[280px] w-[340px] overflow-hidden flex flex-col",style:{top:F.top,right:F.right},children:[(0,d.jsx)("div",{className:"sticky top-0 p-1.5 border-b border-border bg-surface",children:(0,d.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:"Search models...",className:"w-full px-2 py-1 bg-background rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50",autoFocus:!0})}),(0,d.jsx)("div",{className:"overflow-y-auto flex-1",children:p.filter(a=>!H||a.toLowerCase().includes(H.toLowerCase())).map(a=>(0,d.jsx)("button",{onClick:()=>{let b;C(b={...B,[D]:a}),K(b),E(null)},className:`w-full text-left px-3 py-2 text-xs font-mono hover:bg-primary/10 transition-colors border-b border-border/30 last:border-0 ${B[D]===a?"bg-primary/15 text-primary font-semibold":"text-text-main"}`,children:a},a))})]}),v&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required to modify /etc/hosts and flush DNS cache"})]}),(0,d.jsx)(i.pd,{type:"password",placeholder:"Enter sudo password",value:x,onChange:a=>y(a.target.value),onKeyDown:a=>{"Enter"!==a.key||r||O()}}),t&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:t.text})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(i.$n,{variant:"ghost",size:"sm",onClick:()=>{w(!1),y(""),u(null)},disabled:r,children:"Cancel"}),(0,d.jsx)(i.$n,{variant:"primary",size:"sm",onClick:O,loading:r,children:"Confirm"})]})]})})]})}function m(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)(!0),[g,h]=(0,e.useState)("mitm"),[i,j]=(0,e.useState)(!0),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(0),o=(0,e.useRef)(null),p=(0,e.useRef)(null),q=(0,e.useRef)(null),r=(0,e.useCallback)(()=>{q.current&&(q.current.close(),q.current=null),l(!1),b([]),n(a=>a+1)},[]);return(0,d.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between pb-2",children:[(0,d.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-2 cursor-pointer select-none",onClick:()=>j(!i),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"terminal"}),"Console Logs",(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] transition-transform ${i?"rotate-180":""}`,children:"expand_more"})]}),i&&(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsxs)("select",{value:g,onChange:a=>{h(a.target.value),b([])},className:"px-1.5 py-0.5 rounded border border-border bg-surface text-[10px] cursor-pointer",children:[(0,d.jsx)("option",{value:"mitm",children:"MITM Only"}),(0,d.jsx)("option",{value:"all",children:"All Logs"})]}),(0,d.jsx)("button",{onClick:()=>{f(!c),!c&&o.current&&o.current.scrollIntoView({behavior:"smooth"})},className:`p-0.5 rounded transition-colors ${c?"text-primary":"text-muted hover:text-foreground"}`,title:c?"Auto-scroll ON":"Auto-scroll OFF",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:c?"vertical_align_bottom":"pause"})}),(0,d.jsx)("button",{onClick:()=>b([]),className:"p-0.5 rounded text-muted hover:text-foreground transition-colors",title:"Clear logs",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"delete_sweep"})})]})]}),i&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{ref:p,onScroll:()=>{if(!p.current)return;let{scrollTop:a,scrollHeight:b,clientHeight:c}=p.current;f(b-a-c<40)},className:"bg-zinc-950 rounded-lg p-3 font-mono text-[11px] leading-[1.6] overflow-auto border border-zinc-800",style:{maxHeight:"280px",minHeight:"120px"},children:[0===a.length?(0,d.jsx)("div",{className:`italic text-center py-4 ${k?"text-zinc-600":"text-red-500 font-semibold"}`,children:k?"Waiting for logs...":"Vui l\xf2ng Stop > Start lại MITM Server để kết nối lại logs hệ thống"}):a.map((a,b)=>(0,d.jsx)("div",{className:`whitespace-pre-wrap break-all ${a.includes("❌")||a.includes("[ERROR]")||a.includes("error")?"text-red-400":a.includes("⚡")||a.includes("intercept")?"text-emerald-400":a.includes("⏩")||a.includes("passthrough")?"text-amber-400":a.includes("\uD83D\uDE80")||a.includes("✅")||a.includes("check health ok")?"text-green-400":a.includes("\uD83D\uDD10")?"text-blue-400":a.includes("\uD83C\uDF10")?"text-cyan-400":a.includes("\uD83D\uDD0D")?"text-purple-400":a.includes("⏹")?"text-orange-400":a.includes("WARNING")||a.includes("warn")?"text-yellow-400":"text-zinc-300"}`,children:a},b)),(0,d.jsx)("div",{ref:o})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between mt-1.5",children:[(0,d.jsxs)("span",{className:"text-[10px] text-muted",children:[a.length," lines"]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[!k&&(0,d.jsx)("button",{onClick:r,className:"flex items-center justify-center rounded p-2 text-primary hover:bg-primary/20 transition-colors",title:"Reconnect to console logs",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",style:{fontSize:"18px"},children:"sync"})}),(0,d.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${k?"bg-green-500 animate-pulse":"bg-red-500"}`}),(0,d.jsx)("span",{className:`text-[10px] ${k?"text-muted":"text-red-400"}`,children:k?"Connected":"Disconnected"})]})]})]})]})}function n({serverRunning:a}){let[b,c]=(0,e.useState)(!1),[f,g]=(0,e.useState)(!1),[h,j]=(0,e.useState)([]),[l,m]=(0,e.useState)([]),[n,o]=(0,e.useState)(null),p=async()=>{g(!0),o(null);try{let a=await fetch("/api/providers/client");if(!a.ok)throw Error("Failed to fetch providers");let b=((await a.json()).connections||[]).filter(a=>"antigravity"===a.provider);j(b);let c=await Promise.all(b.map(async a=>{try{let b=await fetch(`/api/usage/${a.id}`);if(b.ok){let c=await b.json();return{...a,quota:c}}return{...a,quota:null,quotaError:"Failed to fetch quota"}}catch(b){return{...a,quota:null,quotaError:b.message}}}));m(c)}catch(a){o(a.message)}finally{g(!1)}},q=a=>a>80?"bg-green-500":a>50?"bg-yellow-500":"bg-orange-500",r=h.length>0;return(0,d.jsxs)(i.Zp,{padding:"xs",className:`overflow-hidden ${!a?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:`flex items-center justify-between ${a?"hover:cursor-pointer hover:bg-primary/5":"cursor-not-allowed"} transition-colors rounded px-2`,onClick:()=>a&&c(!b),children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 text-white",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"speed"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:"Quota Checker"}),a?r?(0,d.jsxs)(i.Ex,{variant:"success",size:"sm",children:[h.length," account",h.length>1?"s":""]}):(0,d.jsx)(i.Ex,{variant:"warning",size:"sm",children:"No accounts"}):(0,d.jsx)(i.Ex,{variant:"error",size:"sm",children:"Server off"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Check antigravity provider quota usage"})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform${b?" rotate-180":""}`,children:"expand_more"})]}),b&&a&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Antigravity Client Quotas"}),(0,d.jsxs)("button",{onClick:a=>{a.stopPropagation(),p()},disabled:f,className:"flex items-center gap-1 px-2 py-1 rounded-md bg-primary/10 text-primary text-[11px] font-medium hover:bg-primary/20 transition-colors disabled:opacity-50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:f?"hourglass_empty":"refresh"}),f?"Refreshing...":"Refresh"]})]}),n&&!f&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:n})]}),f&&(0,d.jsxs)("div",{className:"py-6 text-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-2xl animate-spin",children:"progress_activity"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Loading quota data..."})]}),!f&&!n&&0===l.length&&(0,d.jsxs)("div",{className:"py-6 text-center",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-2xl",children:"cloud_off"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"No antigravity connections found"}),(0,d.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Add an antigravity provider to see quota info"})]}),!f&&!n&&l.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-3 max-h-[400px] overflow-y-auto",children:l.map(a=>(0,d.jsxs)("div",{className:"p-3 rounded-lg border border-border/50 bg-surface",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-3 pb-2 border-b border-border/30",children:[(0,d.jsx)("div",{className:"w-7 h-7 rounded-full overflow-hidden flex items-center justify-center bg-surface",children:(0,d.jsx)(k.default,{src:"/providers/antigravity.png",alt:"Antigravity",width:28,height:28,className:"w-7 h-7 object-contain"})}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main truncate",children:a.name||a.email||"Unknown Account"}),(0,d.jsx)("p",{className:"text-[10px] text-text-muted",children:a.quota?.plan||"Free Tier"})]})]}),a.quota?.quotas&&Object.keys(a.quota.quotas).length>0?(0,d.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-3",children:Object.entries(a.quota.quotas).map(([a,b])=>(0,d.jsxs)("div",{className:"space-y-1.5 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,d.jsx)("span",{className:`w-2 h-2 shrink-0 rounded-full ${q(b.remainingPercentage)}`}),(0,d.jsx)("span",{className:"text-xs font-medium text-text-main truncate",children:b.displayName||a})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)("span",{className:"text-[10px] text-text-muted",children:[b.used.toLocaleString()," / ",b.total.toLocaleString()]}),(0,d.jsxs)("span",{className:`text-[10px] font-medium ${b.remainingPercentage>80?"text-green-500":b.remainingPercentage>50?"text-yellow-500":"text-orange-500"}`,children:[b.remainingPercentage,"%"]})]})]}),(0,d.jsx)("div",{className:"relative h-1.5 bg-black/5 dark:bg-white/5 rounded-full overflow-hidden",children:(0,d.jsx)("div",{className:`absolute left-0 top-0 h-full rounded-full transition-all duration-500 ${q(b.remainingPercentage)}`,style:{width:`${b.remainingPercentage}%`}})}),b.resetAt&&(0,d.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-text-muted",children:[(0,d.jsxs)("span",{children:["Resets ",(a=>{if(!a)return"";let b=new Date(a)-new Date;if(b<=0)return"Resetting soon";let c=Math.floor(b/36e5),d=Math.floor(c/24);return d>0?`in ${d}d ${c%24}h`:`in ${c}h ${Math.floor(b%36e5/6e4)}m`})(b.resetAt)]}),(0,d.jsx)("span",{className:"text-[10px] text-text-muted",children:new Date(b.resetAt).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})]},a))}):(0,d.jsx)("div",{className:"py-2 text-center",children:(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"No quota data available"})}),a.quotaError&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-yellow-500/10 text-yellow-600 mt-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"warning"}),(0,d.jsx)("span",{children:a.quotaError})]})]},a.id))})]}),b&&!a&&(0,d.jsx)("div",{className:"mt-4 pt-4 border-t border-border",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded text-xs bg-text-muted/10 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"info"}),(0,d.jsx)("span",{children:"Start MITM Server to check quota information"})]})})]})}let o=["antigravity","copilot"];function p(){let[a,b]=(0,e.useState)([]),[c,i]=(0,e.useState)([]),[k,p]=(0,e.useState)({}),[q,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1}),[w,x]=(0,e.useState)([]),y=()=>a.filter(a=>!1!==a.isActive),z=Object.entries(f).filter(([a])=>o.includes(a));return(0,d.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(j,{apiKeys:c,cloudEnabled:q,onStatusChange:v,onModelsLoaded:x}),(0,d.jsx)("div",{className:"mt-6",children:(0,d.jsx)(n,{serverRunning:u.running})})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[z.map(([a,b])=>(0,d.jsx)(l,{tool:b,isExpanded:s===a,onToggle:()=>t(s===a?null:a),serverRunning:u.running,dnsActive:u.dnsStatus?.[a]||!1,hasCachedPassword:u.hasCachedPassword||!1,apiKeys:c,activeProviders:y(),hasActiveProviders:y().some(a=>(0,g.KC)(a.provider).length>0||(0,h.mq)(a.provider)||(0,h.gb)(a.provider)),modelAliases:k,cloudEnabled:q,loadedModels:w,onDnsChange:a=>v(b=>({...b,dnsStatus:a.dnsStatus??b.dnsStatus}))},a)),(0,d.jsx)(m,{})]})]})}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[741,216,194,471,138,330,182,17,900],()=>b(b.s=30404));module.exports=c})();
|
package/.next/standalone/.next/server/app/(dashboard)/mitm/page_client-reference-manifest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/(dashboard)/mitm/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"98":{"*":{"id":"4770","name":"*","chunks":[],"async":false}},"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"815":{"*":{"id":"51109","name":"*","chunks":[],"async":false}},"882":{"*":{"id":"79346","name":"*","chunks":[],"async":false}},"1110":{"*":{"id":"19308","name":"*","chunks":[],"async":false}},"1127":{"*":{"id":"95145","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1450":{"*":{"id":"53838","name":"*","chunks":[],"async":false}},"1500":{"*":{"id":"8590","name":"*","chunks":[],"async":false}},"1738":{"*":{"id":"81500","name":"*","chunks":[],"async":false}},"1910":{"*":{"id":"83552","name":"*","chunks":[],"async":false}},"1929":{"*":{"id":"43878","name":"*","chunks":[],"async":false}},"1931":{"*":{"id":"267","name":"*","chunks":[],"async":false}},"2173":{"*":{"id":"48781","name":"*","chunks":[],"async":false}},"2542":{"*":{"id":"99070","name":"*","chunks":[],"async":false}},"2622":{"*":{"id":"42196","name":"*","chunks":[],"async":false}},"2899":{"*":{"id":"5291","name":"*","chunks":[],"async":false}},"2908":{"*":{"id":"83352","name":"*","chunks":[],"async":false}},"3615":{"*":{"id":"91809","name":"*","chunks":[],"async":false}},"3667":{"*":{"id":"98833","name":"*","chunks":[],"async":false}},"3936":{"*":{"id":"79488","name":"*","chunks":[],"async":false}},"4230":{"*":{"id":"56110","name":"*","chunks":[],"async":false}},"4507":{"*":{"id":"97495","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4588":{"*":{"id":"17660","name":"*","chunks":[],"async":false}},"4635":{"*":{"id":"5211","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"4891":{"*":{"id":"86739","name":"*","chunks":[],"async":false}},"5086":{"*":{"id":"74812","name":"*","chunks":[],"async":false}},"6061":{"*":{"id":"75171","name":"*","chunks":[],"async":false}},"6319":{"*":{"id":"25919","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7677":{"*":{"id":"32971","name":"*","chunks":[],"async":false}},"7827":{"*":{"id":"38504","name":"*","chunks":[],"async":false}},"8067":{"*":{"id":"91099","name":"*","chunks":[],"async":false}},"8542":{"*":{"id":"95514","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8815":{"*":{"id":"39645","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.js\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-inter\"}],\"variableName\":\"inter\"}":{"id":5154,"name":"*","chunks":["702","static/chunks/702-ca3a08e8b35a9ba5.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/globals.css":{"id":1743,"name":"*","chunks":["702","static/chunks/702-ca3a08e8b35a9ba5.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/i18n/RuntimeI18nProvider.js":{"id":4635,"name":"*","chunks":["702","static/chunks/702-ca3a08e8b35a9ba5.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/PwaRegister.js":{"id":3667,"name":"*","chunks":["702","static/chunks/702-ca3a08e8b35a9ba5.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ThemeProvider.js":{"id":1110,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Avatar.js":{"id":6319,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Badge.js":{"id":6061,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Button.js":{"id":2542,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Card.js":{"id":4588,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/CursorAuthModal.js":{"id":815,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Footer.js":{"id":2173,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Header.js":{"id":4891,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/IFlowCookieModal.js":{"id":3936,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Input.js":{"id":1910,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/KiroAuthModal.js":{"id":1500,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/KiroOAuthWrapper.js":{"id":2899,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/KiroSocialOAuthModal.js":{"id":4230,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/LanguageSwitcher.js":{"id":1931,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/layouts/AuthLayout.js":{"id":1450,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/layouts/DashboardLayout.js":{"id":1738,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Loading.js":{"id":5086,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ManualConfigModal.js":{"id":8815,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Modal.js":{"id":1127,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ModelSelectModal.js":{"id":2908,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/OAuthModal.js":{"id":882,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/RequestLogger.js":{"id":3615,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/SegmentedControl.js":{"id":8067,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Select.js":{"id":98,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Sidebar.js":{"id":2622,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ThemeToggle.js":{"id":1929,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Toggle.js":{"id":8542,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Tooltip.js":{"id":7677,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/UsageStats.js":{"id":7827,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/mitm/MitmPageClient.js":{"id":4507,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-ca3a08e8b35a9ba5.js","497","static/chunks/497-8d84de9ebf3a0e47.js","46","static/chunks/app/(dashboard)/mitm/page-92d8f757eb03c60d.js"],"async":false}},"entryCSSFiles":{"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/":[],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/layout":[{"inlined":false,"path":"static/css/73a57e9fc54d09c4.css"}],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/layout":[],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/page":[],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/mitm/page":[]},"rscModuleMapping":{"98":{"*":{"id":"83784","name":"*","chunks":[],"async":false}},"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"815":{"*":{"id":"40167","name":"*","chunks":[],"async":false}},"882":{"*":{"id":"3080","name":"*","chunks":[],"async":false}},"1110":{"*":{"id":"89886","name":"*","chunks":[],"async":false}},"1127":{"*":{"id":"10079","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1450":{"*":{"id":"64420","name":"*","chunks":[],"async":false}},"1500":{"*":{"id":"82448","name":"*","chunks":[],"async":false}},"1738":{"*":{"id":"61780","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1910":{"*":{"id":"71230","name":"*","chunks":[],"async":false}},"1929":{"*":{"id":"40515","name":"*","chunks":[],"async":false}},"1931":{"*":{"id":"45205","name":"*","chunks":[],"async":false}},"2173":{"*":{"id":"49123","name":"*","chunks":[],"async":false}},"2542":{"*":{"id":"45512","name":"*","chunks":[],"async":false}},"2622":{"*":{"id":"26866","name":"*","chunks":[],"async":false}},"2899":{"*":{"id":"14285","name":"*","chunks":[],"async":false}},"2908":{"*":{"id":"94582","name":"*","chunks":[],"async":false}},"3615":{"*":{"id":"19083","name":"*","chunks":[],"async":false}},"3667":{"*":{"id":"40703","name":"*","chunks":[],"async":false}},"3936":{"*":{"id":"80342","name":"*","chunks":[],"async":false}},"4230":{"*":{"id":"87228","name":"*","chunks":[],"async":false}},"4507":{"*":{"id":"20532","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4588":{"*":{"id":"7290","name":"*","chunks":[],"async":false}},"4635":{"*":{"id":"85117","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"4891":{"*":{"id":"92669","name":"*","chunks":[],"async":false}},"5086":{"*":{"id":"92082","name":"*","chunks":[],"async":false}},"6061":{"*":{"id":"33893","name":"*","chunks":[],"async":false}},"6319":{"*":{"id":"70061","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"7677":{"*":{"id":"18421","name":"*","chunks":[],"async":false}},"7827":{"*":{"id":"2422","name":"*","chunks":[],"async":false}},"8067":{"*":{"id":"54065","name":"*","chunks":[],"async":false}},"8542":{"*":{"id":"70092","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"8815":{"*":{"id":"70603","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/(dashboard)/mitm/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"98":{"*":{"id":"4770","name":"*","chunks":[],"async":false}},"484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"815":{"*":{"id":"51109","name":"*","chunks":[],"async":false}},"882":{"*":{"id":"79346","name":"*","chunks":[],"async":false}},"1110":{"*":{"id":"19308","name":"*","chunks":[],"async":false}},"1127":{"*":{"id":"95145","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"1450":{"*":{"id":"53838","name":"*","chunks":[],"async":false}},"1500":{"*":{"id":"8590","name":"*","chunks":[],"async":false}},"1738":{"*":{"id":"81500","name":"*","chunks":[],"async":false}},"1910":{"*":{"id":"83552","name":"*","chunks":[],"async":false}},"1929":{"*":{"id":"43878","name":"*","chunks":[],"async":false}},"1931":{"*":{"id":"267","name":"*","chunks":[],"async":false}},"2173":{"*":{"id":"48781","name":"*","chunks":[],"async":false}},"2542":{"*":{"id":"99070","name":"*","chunks":[],"async":false}},"2622":{"*":{"id":"42196","name":"*","chunks":[],"async":false}},"2899":{"*":{"id":"5291","name":"*","chunks":[],"async":false}},"2908":{"*":{"id":"83352","name":"*","chunks":[],"async":false}},"3615":{"*":{"id":"91809","name":"*","chunks":[],"async":false}},"3667":{"*":{"id":"98833","name":"*","chunks":[],"async":false}},"3936":{"*":{"id":"79488","name":"*","chunks":[],"async":false}},"4230":{"*":{"id":"56110","name":"*","chunks":[],"async":false}},"4507":{"*":{"id":"97495","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"4588":{"*":{"id":"17660","name":"*","chunks":[],"async":false}},"4635":{"*":{"id":"5211","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"4891":{"*":{"id":"86739","name":"*","chunks":[],"async":false}},"5086":{"*":{"id":"74812","name":"*","chunks":[],"async":false}},"6061":{"*":{"id":"75171","name":"*","chunks":[],"async":false}},"6319":{"*":{"id":"25919","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"81921","name":"*","chunks":[],"async":false}},"7677":{"*":{"id":"32971","name":"*","chunks":[],"async":false}},"7827":{"*":{"id":"38504","name":"*","chunks":[],"async":false}},"8067":{"*":{"id":"91099","name":"*","chunks":[],"async":false}},"8542":{"*":{"id":"95514","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"8815":{"*":{"id":"39645","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7123,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/client-page.js":{"id":1304,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/client-segment.js":{"id":8616,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":4777,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7121,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":4581,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":484,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":6869,"name":"*","chunks":[],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.js\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-inter\"}],\"variableName\":\"inter\"}":{"id":5154,"name":"*","chunks":["702","static/chunks/702-0b316b54d00b8fb3.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/globals.css":{"id":1743,"name":"*","chunks":["702","static/chunks/702-0b316b54d00b8fb3.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/i18n/RuntimeI18nProvider.js":{"id":4635,"name":"*","chunks":["702","static/chunks/702-0b316b54d00b8fb3.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/PwaRegister.js":{"id":3667,"name":"*","chunks":["702","static/chunks/702-0b316b54d00b8fb3.js","558","static/chunks/app/layout-7070335bf833b346.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ThemeProvider.js":{"id":1110,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Avatar.js":{"id":6319,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Badge.js":{"id":6061,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Button.js":{"id":2542,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Card.js":{"id":4588,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/CursorAuthModal.js":{"id":815,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Footer.js":{"id":2173,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Header.js":{"id":4891,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/IFlowCookieModal.js":{"id":3936,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Input.js":{"id":1910,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/KiroAuthModal.js":{"id":1500,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/KiroOAuthWrapper.js":{"id":2899,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/KiroSocialOAuthModal.js":{"id":4230,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/LanguageSwitcher.js":{"id":1931,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/layouts/AuthLayout.js":{"id":1450,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/layouts/DashboardLayout.js":{"id":1738,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Loading.js":{"id":5086,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ManualConfigModal.js":{"id":8815,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Modal.js":{"id":1127,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ModelSelectModal.js":{"id":2908,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/OAuthModal.js":{"id":882,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/RequestLogger.js":{"id":3615,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/SegmentedControl.js":{"id":8067,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Select.js":{"id":98,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Sidebar.js":{"id":2622,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/ThemeToggle.js":{"id":1929,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Toggle.js":{"id":8542,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/Tooltip.js":{"id":7677,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/shared/components/UsageStats.js":{"id":7827,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","305","static/chunks/app/(dashboard)/layout-579c25ca675b41ac.js"],"async":false},"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/mitm/MitmPageClient.js":{"id":4507,"name":"*","chunks":["852","static/chunks/852-d8cad4b0d71288a2.js","702","static/chunks/702-0b316b54d00b8fb3.js","497","static/chunks/497-8d84de9ebf3a0e47.js","46","static/chunks/app/(dashboard)/mitm/page-73f3cb4c6b54b42e.js"],"async":false}},"entryCSSFiles":{"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/":[],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/layout":[{"inlined":false,"path":"static/css/a5a3e88cad1bfc66.css"}],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/layout":[],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/page":[],"/Users/nip/Desktop/WORKSPACE/iCheck/iCheck.AI.Workflows/arouter/src/app/(dashboard)/mitm/page":[]},"rscModuleMapping":{"98":{"*":{"id":"83784","name":"*","chunks":[],"async":false}},"484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"815":{"*":{"id":"40167","name":"*","chunks":[],"async":false}},"882":{"*":{"id":"3080","name":"*","chunks":[],"async":false}},"1110":{"*":{"id":"89886","name":"*","chunks":[],"async":false}},"1127":{"*":{"id":"10079","name":"*","chunks":[],"async":false}},"1304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"1450":{"*":{"id":"64420","name":"*","chunks":[],"async":false}},"1500":{"*":{"id":"82448","name":"*","chunks":[],"async":false}},"1738":{"*":{"id":"61780","name":"*","chunks":[],"async":false}},"1743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1910":{"*":{"id":"71230","name":"*","chunks":[],"async":false}},"1929":{"*":{"id":"40515","name":"*","chunks":[],"async":false}},"1931":{"*":{"id":"45205","name":"*","chunks":[],"async":false}},"2173":{"*":{"id":"49123","name":"*","chunks":[],"async":false}},"2542":{"*":{"id":"45512","name":"*","chunks":[],"async":false}},"2622":{"*":{"id":"26866","name":"*","chunks":[],"async":false}},"2899":{"*":{"id":"14285","name":"*","chunks":[],"async":false}},"2908":{"*":{"id":"94582","name":"*","chunks":[],"async":false}},"3615":{"*":{"id":"19083","name":"*","chunks":[],"async":false}},"3667":{"*":{"id":"40703","name":"*","chunks":[],"async":false}},"3936":{"*":{"id":"80342","name":"*","chunks":[],"async":false}},"4230":{"*":{"id":"87228","name":"*","chunks":[],"async":false}},"4507":{"*":{"id":"20532","name":"*","chunks":[],"async":false}},"4581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"4588":{"*":{"id":"7290","name":"*","chunks":[],"async":false}},"4635":{"*":{"id":"85117","name":"*","chunks":[],"async":false}},"4777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"4891":{"*":{"id":"92669","name":"*","chunks":[],"async":false}},"5086":{"*":{"id":"92082","name":"*","chunks":[],"async":false}},"6061":{"*":{"id":"33893","name":"*","chunks":[],"async":false}},"6319":{"*":{"id":"70061","name":"*","chunks":[],"async":false}},"6869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"7121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"7123":{"*":{"id":"95547","name":"*","chunks":[],"async":false}},"7677":{"*":{"id":"18421","name":"*","chunks":[],"async":false}},"7827":{"*":{"id":"2422","name":"*","chunks":[],"async":false}},"8067":{"*":{"id":"54065","name":"*","chunks":[],"async":false}},"8542":{"*":{"id":"70092","name":"*","chunks":[],"async":false}},"8616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"8815":{"*":{"id":"70603","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|