1import{j as e}from"./vendor-query-CsYqNbmM.js";import{c as m,r as i}from"./vendor-react-CkrtinOd.js";import{k as x}from"./index-BGtza9SP.js";import{D as l}from"./vendor-ui-Dv3q5jvr.js";import"./vendor-i18n-l7OMnJqp.js";function g(){const[t]=m(),[a,o]=i.useState(null);return i.useEffect(()=>{const r=t.get("redirect_uri"),s=t.get("state");if(!r||!s){o("This connection link is incomplete.");return}x.post("/api/v1/auth/extension/authorize",{redirect_uri:r,state:s}).then(({code:c})=>{const n=new URL(r);n.searchParams.set("code",c),n.searchParams.set("state",s),window.location.replace(n.toString())}).catch(()=>o("Could not connect the extension. Please try again."))},[t]),e.jsx("main",{className:"flex min-h-[70vh] items-center justify-center px-5 text-center",children:e.jsx("div",{children:a?e.jsx("p",{className:"text-sm text-rose-500",children:a}):e.jsxs(e.Fragment,{children:[e.jsx(l,{className:"mx-auto mb-3 h-7 w-7 animate-spin text-primary"}),e.jsx("h1",{className:"text-xl font-bold text-foreground",children:"Connecting Kometriâ¦"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"You can return to the page you were reading in a moment."})]})})})}export{g as default};
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.