(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,439015,e=>{"use strict";var r=e.i(843476),t=e.i(271645),s=e.i(618566);function a(){let e=(0,s.useSearchParams)();return(0,t.useEffect)(()=>{let r=e.get("code"),t=e.get("state"),s=e.get("error"),a=e.get("error_description");window.opener&&(window.opener.postMessage({type:"oidc-test-callback",code:r,state:t,error:s,errorDescription:a},window.location.origin),setTimeout(()=>window.close(),500))},[e]),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[(0,r.jsx)("div",{className:"w-8 h-8 border-4 border-[#3a5f8a] border-t-transparent rounded-full animate-spin"}),(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Authentication complete. Returning results…"}),(0,r.jsx)("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:"You may close this window."})]})}e.s(["default",0,function(){return(0,r.jsx)("div",{className:"min-h-screen flex flex-col items-center justify-center bg-gray-100 dark:bg-gray-950 px-4",children:(0,r.jsxs)("div",{className:"w-full max-w-sm",children:[(0,r.jsx)("div",{className:"bg-[#3a5f8a] text-white px-6 py-4 rounded-t-lg",children:(0,r.jsx)("h1",{className:"text-lg font-bold tracking-wide",children:"BridgeLink"})}),(0,r.jsx)("div",{className:"bg-white dark:bg-gray-800 shadow-lg rounded-b-lg border border-t-0 border-border p-8",children:(0,r.jsx)(t.Suspense,{fallback:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 py-4",children:[(0,r.jsx)("div",{className:"w-8 h-8 border-4 border-[#3a5f8a] border-t-transparent rounded-full animate-spin"}),(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Processing…"})]}),children:(0,r.jsx)(a,{})})})]})})}])}]);