PageSourceSearch

https://delrio.vercel.app/_next/static/chunks/0l.q_bt13x5n7.js

js delrio.vercel.app collected 2026-10-03 06:41:19 UTC 17,198 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,865036,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},852234,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return N}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},871808,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},357266,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(744066)._(e.r(865036)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},498188,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(634002);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},667057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(852234),o=e.r(498533);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},36938,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},829667,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(744066),i=e.r(944417),s=a._(e.r(634002)),l=e.r(357266),c=e.r(731539),u=e.r(498188),d=e.r(852234),f=e.r(352811);e.r(871808);let p=e.r(401332),h=e.r(948389),m=e.r(667057),g=e.r(866986);function y(t){var r,n;let o,a,y,[b,v]=(0,s.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,s.useRef)(null),{href:N,as:S,children:k,prefetch:w=null,passHref:_,replace:O,shallow:P,scroll:E,onClick:C,onMouseEnter:T,onTouchStart:R,legacyBehavior:A=!1,onNavigate:I,transitionTypes:M,ref:L,unstable_dynamicOnHover:$,...U}=t;o=k,A&&("string"==typeof o||"number"==typeof o)&&(o=(0,i.jsx)("a",{children:o}));let D=s.default.useContext(c.AppRouterContext),F=!1!==w,z=!1!==w?null===(n=w)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,B="string"==typeof(r=S||N)?r:(0,l.formatUrl)(r);if(A){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=s.default.Children.only(o)}let W=A?a&&"object"==typeof a&&a.ref:L,G=s.default.useCallback(e=>(null!==D&&(j.current=(0,h.mountLinkInstance)(e,B,D,z,F,v)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,B,D,z,v]),K={ref:(0,u.useMergedRef)(G,W),onClick(t){A||"function"!=typeof C||C(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!D||t.defaultPrevented||function(t,r,n,o,a,i,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(418252);s.default.startTransition(()=>{d(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l)})}}(t,B,j,O,E,I,M)},onMouseEnter(e){A||"function"!=typeof T||T(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),D&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)},onTouchStart:function(e){A||"function"!=typeof R||R(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),D&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===$)}};return(0,d.isAbsoluteUrl)(B)?K.href=B:A&&!_&&("a"!==a.type||"href"in a.props)||(K.href=(0,f.addBasePath)(B)),y=A?s.default.cloneElement(a,K):(0,i.jsx)("a",{...U,...
1K,children:o}),(0,i.jsx)(x.Provider,{value:b,children:y})}e.r(36938);let x=(0,s.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},833256,e=>{"use strict";var t=e.i(944417),r=e.i(634002),n=e.i(829667);let o=[{id:"google",label:"Continue with Google",init:"/api/auth/oauth/google",bg:"#ea4335"},{id:"notion",label:"Continue with Notion",init:"/api/connectors/notion/auth",bg:"#1a1a1a"}],a={signin:{heading:"Welcome back to DelOS",sub:"Sign in. Magic link or single-click provider. Sessions last 30 days, single device cookie, HttpOnly.",cta:"send sign-in link",alt:{href:"/auth/signup",text:"no account? create one →"}},signup:{heading:"Create your DelOS workspace",sub:"One email, one workspace, per-user tenantId scoped in HydraDB. No password to remember.",cta:"create workspace",alt:{href:"/auth/signin",text:"have an account? sign in →"}},forgot:{heading:"Reset by magic link",sub:"DelOS uses passwordless auth. Drop your email and we send a fresh sign-in link.",cta:"send reset link",alt:{href:"/auth/signin",text:"back to sign in →"}}};e.s(["AuthForm",0,function({mode:e}){let[i,s]=(0,r.useState)(""),[l,c]=(0,r.useState)(""),[u,d]=(0,r.useState)(!1),[f,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(null),[g,y]=(0,r.useState)(null),[,x]=(0,r.useState)(null),[b,v]=(0,r.useState)(null),[j,N]=(0,r.useState)({});async function S(t){if(t.preventDefault(),i.trim()){d(!0),v(null),m(null);try{let t=await fetch("/api/auth/magic",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i.trim(),mode:"signup"===e?"signup":"signin"})}),r=await t.json();if(!r.ok){if("no_account"===r.code)throw Error("No DelOS account for this email — try signing up first.");if("already_account"===r.code)throw Error("This email already has an account — go to Sign in instead.");throw Error(r.error??"request failed")}p(!0),y(r.sentVia??null),x(r.sendErrorKind??null),r.devLink&&m(r.devLink)}catch(e){v(e.message)}finally{d(!1)}}}async function k(e){N(t=>({...t,[e.id]:!0})),v(null);try{let t=await fetch(e.init,{method:"GET",redirect:"manual"});if(503===t.status){v(`${e.id} OAuth not configured on this deployment. Use magic-link below — same per-user workspace.`),setTimeout(()=>{let e=document.querySelector('input[type="email"]');e?.focus()},100);return}window.location.href=e.init}catch(e){v(e.message)}finally{N(t=>({...t,[e.id]:!1}))}}(0,r.useEffect)(()=>{let e=new URL(window.location.href).searchParams.get("error");if(e?.startsWith("ms_token_")){let t=e.slice(9);v(`Microsoft token exchange failed (${t}). 99% of the time this means the client secret VALUE was not copied (you may have copied the Secret ID instead). Fix: Azure portal → DelOs app → Certificates & secrets → New client secret → copy the Value column → re-paste.`)}else if("ms_no_email"===e)v("Microsoft returned no email claim. Try a different account type in Azure → Authentication → Supported account types.");else if(e?.startsWith("ms_"))v(`Microsoft sign-in: ${e.slice(3).replace(/_/g," ")}.`);else if(e?.startsWith("notion_")){let t=e.slice(7);t.startsWith("token_exchange_")?v(`Notion token exchange failed (${t.replace("token_exchange_","")}). Check redirect URI matches exactly: https://delrio.vercel.app/api/connectors/notion/callback`):"no_token"===t?v("Notion returned no access token. Re-check OAuth secret in Vercel."):v(`Notion: ${t.replace(/_/g," ")}.`)}else e?.startsWith("gmail_")||e?.startsWith("google_")?v(`Google: ${e.split("_").slice(1).join(" ")}. If you saw "Google hasn't verified this app", add your email as a Test User in Google Cloud Console → APIs & Services → OAuth consent screen → Audience → Test users.`):"invalid_token"===e?v("Magic link invalid or already used."):"expired_token"===e?v("Magic link expired. Request a new one."):e&&v(`Sign-in error: ${e}`)},[]);let w=a[e];return(0,t.jsxs)("div",{className:"card-pixel w-full max-w-md neon-accent",style:{padding:24},children:[(0,t.jsxs)("div",{className:"space-y-1 mb-4",children:[(0,t.jsxs)("span",{className:"pill pill-muted",style:{fontSize:10},children:["★ ","signup"===e?"SIGN UP":"forgot"===e?"FORGOT PASSWORD":"SIGN IN"]}),(0,t.jsx)("h1",{className:"font-pixel text-2xl tracking-wider",style:{color:"var(--accent)"},children:w.heading}),(0,t.jsx)("p",{className:"text-[color:var(--muted)] font-mono text-xs",children:w.sub})]}),(0,t.jsx)("div",{className:"space-y-2 mb-4",children:o.map(e=>(0,t.jsx)("button",{type:"button",disabled:!!j[e.id],onClick:()=>k(e),className:"btn-pixel w-full",style:{padding:"10px 14px",fontSize:12,background:e.bg,color:"#fff",borderColor:e.bg,opacity:j[e.id]?.5:1},children:j[e.id]?"checking…":e.label},e.id))}),(0,t.jsxs)("div",{className:"flex items-center gap-2 my-3",children:[(0,t.jsx)("div",{className:"flex-1 h-px",style:{background:"var(--surface-2)"}}),(0,t.jsx)("span",{className:"font-mono text-[10px]",style:{color:"var(--muted)"},children:"OR EMAIL"}),(0,t.jsx)("div",{className:"flex-1 h-px",style:{background:"var(--surface-2)"}})]}),f?(0,t.jsxs)("div",{className:"space-y-3",children:[g?(0,t.jsxs)("div",{className:"card-pixel",style:{borderColor:"var(--success)",padding:12},children:[(0,t.jsxs)("p",{className:"font-mono text-xs",style:{color:"var(--success)"},children:["✓ Magic link sent to ",(0,t.jsx)("strong",{children:i}),". Check your inbox to sign in."]}),(0,t.jsxs)("p",{className:"text-[10px] font-mono mt-1",style:{color:"var(--muted)"}
1,children:["via ",g," · link expires in 15 min · check spam if missing"]})]}):h?(0,t.jsxs)("div",{className:"card-pixel",style:{borderColor:"var(--accent)",padding:12},children:[(0,t.jsxs)("p",{className:"font-mono text-xs mb-2",style:{color:"var(--accent)"},children:["★ Instant sign-in for ",(0,t.jsx)("strong",{children:i})]}),(0,t.jsx)("p",{className:"text-[10px] font-mono mb-3",style:{color:"var(--muted)"},children:"Tap below to sign in now — no password, no email round-trip. Single-use link, expires in 15 min."}),(0,t.jsx)("a",{href:h,className:"btn-pixel success w-full",style:{padding:"10px 14px",fontSize:12,textAlign:"center",display:"block",textDecoration:"none"},children:"▶ SIGN IN TO DELOS →"}),(0,t.jsxs)("p",{className:"text-[10px] font-mono mt-2 break-all",style:{color:"var(--muted)"},children:["Or copy: ",(0,t.jsxs)("span",{style:{color:"var(--muted)"},children:[h.slice(0,70),"…"]})]})]}):(0,t.jsx)("div",{className:"card-pixel",style:{borderColor:"var(--muted)",padding:12},children:(0,t.jsxs)("p",{className:"font-mono text-xs",style:{color:"var(--muted)"},children:["Request received for ",i,". Check your email or wait a moment."]})}),(0,t.jsx)("button",{onClick:()=>{p(!1),s(""),m(null),y(null),x(null)},className:"btn-pixel ghost w-full",style:{padding:"8px 12px",fontSize:11},children:"use different email"})]}):(0,t.jsxs)("form",{onSubmit:S,className:"space-y-3",children:["signup"===e&&(0,t.jsxs)("label",{className:"block space-y-1",children:[(0,t.jsx)("span",{className:"font-pixel text-[10px] tracking-widest",style:{color:"var(--muted)"},children:"NAME (optional)"}),(0,t.jsx)("input",{type:"text",value:l,onChange:e=>c(e.target.value),placeholder:"how should we greet you?",className:"input-pixel w-full",disabled:u})]}),(0,t.jsxs)("label",{className:"block space-y-1",children:[(0,t.jsx)("span",{className:"font-pixel text-[10px] tracking-widest",style:{color:"var(--muted)"},children:"EMAIL"}),(0,t.jsx)("input",{type:"email",required:!0,value:i,onChange:e=>s(e.target.value),placeholder:"[email protected]",className:"input-pixel w-full",disabled:u})]}),(0,t.jsx)("button",{type:"submit",disabled:u||!i.trim(),className:"btn-pixel success w-full",style:{padding:"10px 16px",fontSize:12},children:u?"sending…":`▶ ${w.cta}`}),b&&(0,t.jsx)("p",{className:"text-xs",style:{color:"var(--danger)"},children:b})]}),(0,t.jsxs)("div",{className:"border-t mt-4 pt-3 space-y-2",style:{borderColor:"var(--surface-2)"},children:[(0,t.jsx)(n.default,{href:w.alt.href,className:"font-mono text-xs",style:{color:"var(--accent)"},children:w.alt.text}),"forgot"!==e&&(0,t.jsx)("div",{children:(0,t.jsx)(n.default,{href:"/auth/forgot",className:"font-mono text-[10px]",style:{color:"var(--muted)"},children:"forgot? reset by magic link →"})})]})]})}])}]);

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.