1import{kt as c,j5 as u,kR as p}from"./index-BznQ7liX.js";import{completeIntegration as m}from"./integration.functions-BrxtbqpA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"95584dbcb9524401ac5fdb14feb7e4bde798a491"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c97e146f-f4d7-4a16-8354-dfe2b4839784",e._sentryDebugIdIdentifier="sentry-dbid-c97e146f-f4d7-4a16-8354-dfe2b4839784")}catch{}})();function x(){const e=c.useRef(!1),[n,o]=c.useState("working");return c.useEffect(()=>{if(e.current)return;e.current=!0;const t=new URLSearchParams(window.location.search),s=t.get("integration"),i=t.get("teamSlug"),a=t.get("scope"),f=a==="team"||a==="user"?a:void 0,d=t.get("taskId"),l=t.get("toolCallId"),r=t.get("provider"),g=r==="composio"||r==="native"||r==="manual"?r:void 0;if(!(s&&i)){o("error");return}(async()=>{await m({data:{integrationSlug:s,scope:f,teamSlug:i}}),d&&l&&await p(d,l,{connected:!0,slug:s,provider:g}).catch(()=>{})})().then(()=>{o("done"),window.setTimeout(()=>window.close(),400)}).catch(()=>{o("error")})},[]),u.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center gap-3 bg-background p-8 text-center",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:n==="working"?"Finishing connectionâ¦":n==="done"?"Connected. You can close this window.":"Could not complete the connection. Please try again."})})}export{x as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.