PageSourceSearch

https://reveaai.com/assets/AppLayout-DT2_Xih4.js

js reveaai.com collected 2026-10-02 01:41:43 UTC 8,063 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{n as t,r as n,t as r}from"./createLucideIcon-BgjnZbhe.js";import{n as i,r as a,t as o}from"./router-compat-RTjUhBp7.js";import{t as s}from"./useQuery-DflN6Y8b.js";import{r as c,t as l}from"./button-DCqHmpqq.js";import{t as u}from"./radio-DdU4WpYR.js";import{t as d}from"./trending-up-Cwx6RBIx.js";import{t as f}from"./upload-DWoGOSW8.js";import{n as p,r as m}from"./AuthContext-BmNkkZDc.js";import{n as h,p as g}from"./index-c3rHhM8R.js";var _=r(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),v=r(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),y=r(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),b=r(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),x=r(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),S=[`referral_source`,`referral_source_detail`,`job_search_stage`],C=new Map,w=new Map,T=new Map,E=e=>`onboarding-pending:${e}`;function D(e){let t=C.get(e);if(t)return t;let n={};try{let t=JSON.parse(localStorage.getItem(E(e))??`{}`);for(let e of S)t&&(typeof t[e]==`string`||t[e]===null)&&(n[e]=t[e])}catch{}return C.set(e,n),n}function O(e,t){C.set(e,t);try{Object.keys(t).length?localStorage.setItem(E(e),JSON.stringify(t)):localStorage.removeItem(E(e))}catch{}}function k(e){return{...D(e),...w.get(e)}}function A(e,t){w.set(e,{...k(e),...t}),O(e,{...D(e),...t}),j(e)}function j(e){let t=T.get(e);if(t)return t;if(!Object.keys(D(e)).length)return Promise.resolve();let n=Promise.resolve().then(async()=>{for(;Object.keys(D(e)).length;){let t={...D(e)},{data:n,error:r}=await m.from(`profiles`).update(t).eq(`user_id`,e).select(`user_id`).single();if(r)throw r;if(!n)throw Error(`Onboarding profile not saved`);let i={...D(e)};for(let e of S)e in t&&i[e]===t[e]&&delete i[e];O(e,i)}}).catch(e=>{console.warn(`Onboarding answers will sync on the next visit.`,e)}).finally(()=>{T.delete(e)});return T.set(e,n),n}var M=`has_started_analysis, referral_source, referral_source_detail, job_search_stage`,N=e=>[`onboarding-profile`,e];function P(e){return e.has_started_analysis||e.job_search_stage===`interviewing_with_recording`||e.job_search_stage===`interviewing_no_recording`||e.job_search_stage===`applying_only`}function F(e,t=!0){return s({queryKey:N(e),enabled:t&&!!e,queryFn:async({signal:t})=>{j(e);let{data:n,error:r}=await m.from(`profiles`).select(M).eq(`user_id`,e).abortSignal(t).single();if(r)throw r;if(!n)throw Error(`Onboarding profile not found`);return{...n,...k(e)}},retry:!1,refetchOnWindowFocus:!1})}var I=t();function L({onRetry:e}){return(0,I.jsx)(`div`,{className:`flex min-h-screen flex-col items-center justify-center gap-4 px-6 text-center`,children:e?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`p`,{role:`alert`,children:`We couldn't load your setup progress. Please try again.`}),(0,I.jsx)(l,{onClick:e,children:`Try again`})]}):(0,I.jsx)(`div`,{role:`status`,"aria-label":`Loading your setup`,className:`h-16 w-16 animate-spin rounded-full border-4 border-primary border-t-transparent`})})}function R({children:e}){let{user:t,loading:n}=p(),r=a().pathname===`/dashboard`,o=F(t?.id,!n&&r);if(n)return(0,I.jsx)(L,{});if(!t)return(0,I.jsx)(i,{to:`/auth`,replace:!0});if(r){if(o.isPending)return(0,I.jsx)(L,{});if(o.isError)return(0,I.jsx)(L,{onRetry:()=>void o.refetch()});if(!P(o.data))return(0,I.jsx)(i,{to:`/get-started`,replace:!0})}return(0,I.jsx)(I.Fragment,{children:e})}var z=(0,e(n(),1).forwardRef)(({className:e,activeClassName:t,pendingClassName:n,to:r,end:i,...s},l)=>{let{pathname:u}=a(),d=(r.split(/[?#]/)[0]??`/`)||`/`,f=i?u===d:u===d||d!==`/`&&u.startsWith(`${d}/`);return(0,I.jsx)(o,{ref:l,to:r,className:c(e,f&&t),...s})});z.displayName=`NavLink`;function B({children:e}){let{isAdmin:t}=p();return(0,I.jsxs)(`div`,{className:`min-h-screen flex flex-col w-full bg-zinc-50`,children:[(0,I.jsxs)(`header`,{className:`min-h-18 border-b border-zinc-200 bg-white sticky top-0 z-10 flex flex-wrap items-center justify-between gap-y-2 px-4 py-3 lg:h-18 lg:flex-nowrap lg:px-8 lg:py-0 xl:px-12`,children:[(0,I.jsx)(g,{size:`sm`,showWordmark:!0,linkTo:`/`}),(0,I.jsxs)(`nav`,{"aria-label":`Main navigation`,className:`order-last flex w-full justify-between gap-0.5 lg:order-none lg:w-auto`,children:[(0,I.jsxs)(z,{to:`/dashboard`,"aria-label":`Dashboard`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(y,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`Dashboard`})]}),(0,I.jsxs)(z,{to:`/upload`,"aria-label":`New Analysis`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(f,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`New Analysis`})]}),(0,I.jsxs)(z,{to:`/history`,"aria-label":`History`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(v,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`History`})]}),(0,I.jsxs)(z,{to:`/progress`,"aria-label":`Progress`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(d,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`Progress`})]}),(0,I.jsxs)(z,{to:`/settings`,"aria-label":`Settings`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(b,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`Settings`})]}),(0,I.jsxs)(z,{to:`/help`,"aria-label":`Help`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(_,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`Help`})]}),t&&(0,I.jsxs)(z,{to:`/admin`,"aria-label":`Admin`,className:`flex items-center gap-2 px-2 py-2.5 sm:px-3 xl:px-4 text-sm tracking-tight text-zinc-500 transition-colors hover:text-zinc-900`,activeClassName:`text-zinc-900`,children:[(0,I.jsx)(x,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`Admin`})]})]}),(0,I.jsxs)(o,{to:`/extension`,"aria-label":`Start Recording`,className:`flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-full bg-zinc-900 text-white hover:bg-zinc-800 transition-colors`,children:[(0,I.jsx)(u,{className:`h-4 w-4`}),(0,I.jsx)(`span`,{className:`hidden sm:inline`,children:`Start Recording`})]})]}),(0,I.jsx)(`main`,{className:`flex-1 overflow-auto`,children:e}),(0,I.jsx)(h,{})]})}
1export{N as a,x as c,P as i,_ as l,R as n,F as o,L as r,A as s,B as t};

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.