PageSourceSearch

https://authengine-az3zrmtj.manus.space/assets/index-5nRfQ--P.js

js authengine-az3zrmtj.manus.space collected 2026-10-03 05:00:01 UTC 78,986 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Onboarding-BX0xo_Hr.js","assets/react-vendor-Dc4PsQq0.js","assets/label-Doc1f-25.js","assets/ui-vendor-BQj_Jcqx.js","assets/vendor-C0RMI9HL.js","assets/textarea-lTLWfDgQ.js","assets/data-vendor-BDtrsGNX.js","assets/Home-B7x_5gM3.js","assets/PageHeader-Bi4OJb3E.js","assets/Discovery-RtqJyvwL.js","assets/checkbox-s2QQwv_K.js","assets/table-DgJli2Tf.js","assets/Campaigns-Dj3uADCE.js","assets/dnd-vendor--TzyNZE5.js","assets/Outreach-uTm6qpT1.js","assets/tabs-CjywmeMS.js","assets/Execution-CRZ5vim2.js","assets/Placements-CjJhq7hQ.js","assets/switch-CYfPOyX_.js","assets/Analytics-8ug5p3oh.js","assets/charts-vendor-Bwb6-UY1.js","assets/Settings-Cg3epE2j.js","assets/SignIn-DcMAydcn.js","assets/AuthShell-DGTZuPO_.js","assets/SignUp-DhEdPI2G.js","assets/ClaimAccount-CiOd5Cn1.js","assets/Admin-DAtilzL5.js","assets/WebsitePages-CSJjDj63.js"])))=>i.map(i=>d[i]);
2import{j as e,r as c,e as $e}from"./react-vendor-Dc4PsQq0.js";import{c as Ue,T as de,Q as Ve,h as He,a as Ke,S as qe}from"./data-vendor-BDtrsGNX.js";import{a7 as Qe,a8 as Ye,f as Je,a9 as K,aa as z,ab as U,ac as g,ad as A}from"./vendor-C0RMI9HL.js";import{T as Xe,P as Ze,R as et,a as tt,b as at,C as st,A as ot,S as q,c as nt,d as C,H as rt,e as ct,f as it,g as pe,h as V,i as ue,j as Q,k as Y,F as lt,l as dt,m as pt,n as ut,o as xt,p as mt,q as ht,I as gt,r as xe,s as me,t as he,u as ge,X as fe,v as be,D as ve,w as je,O as we,x as ye,y as ft,z as bt,B as vt,E as Ne,V as jt,G as wt,J as yt,K as Nt,L as kt,M as Lt,N as Dt,Q as _t,U as St,W as At,Y as Ct,Z as Et,_ as ke,$ as Le,a0 as De,a1 as _e,a2 as zt,a3 as It,a4 as ee,a5 as Bt,a6 as Pt}from"./ui-vendor-BQj_Jcqx.js";import"./index-5nRfQ--P.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function s(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(o){if(o.ep)return;o.ep=!0;const r=s(o);fetch(o.href,r)}})();var rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const D=Ue(),Rt="app_session_id",Ot="Please login (10001)",Tt="__Host-oauth_state",Wt=t=>btoa(JSON.stringify(t)),Mt="modulepreload",Gt=function(t){return"/"+t},te={},f=function(a,s,n){let o=Promise.resolve();if(s&&s.length>0){let m=function(p){return Promise.all(p.map(u=>Promise.resolve(u).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),d=i?.nonce||i?.getAttribute("nonce");o=m(s.map(p=>{if(p=Gt(p),p in te)return;te[p]=!0;const u=p.endsWith(".css"),b=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const x=document.createElement("link");if(x.rel=u?"stylesheet":Mt,u||(x.as="script"),x.crossOrigin="",x.href=p,d&&x.setAttribute("nonce",d),document.head.appendChild(x),u)return new Promise((k,v)=>{x.addEventListener("load",k),x.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${p}`)))})}))}function r(i){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=i,window.dispatchEvent(d),!d.defaultPrevented)throw i}return o.then(i=>{for(const d of i||[])d.status==="rejected"&&r(d.reason);return a().catch(r)})},Ft=({...t})=>{const{theme:a="system"}=Qe();return e.jsx(Xe,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:a,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})};function l(...t){return Ye(Je(t))}function J({delayDuration:t=0,...a}){return e.jsx(Ze,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:t,...a})}function $t({...t}){return e.jsx(J,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:e.jsx(et,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...t})})}function Ut({...t}){return e.jsx(tt,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...t})}function Vt({className:t,sideOffset:a=0,children:s,...n}){return e.jsx(at,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:e.jsxs(st,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:a,className:l("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
2de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...n,children:[s,e.jsx(ot,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ht=K("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function N({className:t,variant:a,size:s,asChild:n=!1,...o}){const r=n?q:"button";return e.jsx(r,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:l(Ht({variant:a,size:s,className:t})),...o})}function Kt({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:l("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function is({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:l("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...a})}function ls({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:l("leading-none font-semibold",t),...a})}function ds({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:l("text-muted-foreground text-sm",t),...a})}function qt({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:l("px-6",t),...a})}function Qt(){const[,t]=z(),a=()=>{t("/")};return e.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"flex min-h-[72vh] w-full items-center justify-center bg-[radial-gradient(circle_at_top_right,rgba(124,58,237,0.08),transparent_38%)] px-4 py-16",children:e.jsxs(Kt,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-xl overflow-hidden border-border/70 bg-card/95 shadow-[0_28px_70px_-34px_rgba(23,15,52,0.35)]",children:[e.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:16",className:"h-1 bg-gradient-to-r from-violet-600 via-fuchsia-500 to-emerald-400"}),e.jsxs(qt,{"data-loc":"client/src/pages/NotFound.tsx:17",className:"px-8 py-10 text-center sm:px-12",children:[e.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"mb-6 flex justify-center",children:e.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"relative flex h-16 w-16 items-center justify-center rounded-2xl border border-violet-200 bg-violet-50 text-violet-700 shadow-sm",children:[e.jsx(nt,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"h-8 w-8"}),e.jsx(C,{"data-loc":"client/src/pages/NotFound.tsx:21",className:"absolute -bottom-2 -right-2 h-6 w-6 rounded-full bg-emerald-100 p-1 text-emerald-700 ring-4 ring-card"})]})}),e.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:25",className:"mb-3 text-[11px] font-semibold uppercase tracking-[0.22em] text-violet-700",children:"Route not verified"}),e.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"mb-3 text-4xl font-semibold tracking-tight text-foreground",children:"This evidence path ends here."}),e.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:28",className:"mx-auto mb-8 max-w-md leading-relaxed text-muted-foreground",children:"The requested Authority Engine route does not exist or has moved. Return to the command center to continue with a verified workflow."}),e.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:32",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:e.jsxs(N,{"data-loc":"client/src/pages/NotFound.tsx:36",onClick:a,className:"h-11 rounded-xl px-6",children:[e.jsx(rt,{"data-loc":"client/src/pages/NotFound.tsx:40",className:"w-4 h-4 mr-2"}),"Return to command center"]})})]})]})})}
2class Yt extends c.Component{constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}render(){return this.state.hasError?e.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:e.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[e.jsx(ct,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),e.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),e.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:e.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),e.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:l("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[e.jsx(it,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const Jt=c.createContext(void 0);function Xt({children:t,defaultTheme:a="light",switchable:s=!1}){const[n,o]=c.useState(()=>s&&localStorage.getItem("theme")||a);c.useEffect(()=>{const i=document.documentElement;n==="dark"?i.classList.add("dark"):i.classList.remove("dark"),s&&localStorage.setItem("theme",n)},[n,s]);const r=s?()=>{o(i=>i==="light"?"dark":"light")}:void 0;return e.jsx(Jt.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:n,toggleTheme:r,switchable:s},children:t})}function Se({compact:t=!1,inverse:a=!1}){return e.jsxs("div",{"data-loc":"client/src/components/BrandMark.tsx:6",className:"flex items-center gap-3 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/components/BrandMark.tsx:7",className:"relative flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-gradient-to-br from-violet-500 via-violet-600 to-indigo-800 shadow-[0_10px_28px_rgba(91,52,176,.32)]",children:[e.jsx(pe,{"data-loc":"client/src/components/BrandMark.tsx:8",className:"h-4 w-4 text-amber-200",strokeWidth:1.8}),e.jsx("span",{"data-loc":"client/src/components/BrandMark.tsx:9",className:"absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full border-2 border-[#101a2d] bg-amber-300"})]}),!t&&e.jsxs("div",{"data-loc":"client/src/components/BrandMark.tsx:12",className:"min-w-0",children:[e.jsx("div",{"data-loc":"client/src/components/BrandMark.tsx:13",className:l("truncate text-[15px] font-semibold tracking-[-0.02em]",a?"text-white":"text-foreground"),children:"Authority Engine"}),e.jsx("div",{"data-loc":"client/src/components/BrandMark.tsx:14",className:l("mt-0.5 text-[9px] font-semibold uppercase tracking-[0.22em]",a?"text-amber-200/75":"text-muted-foreground"),children:"Link intelligence"})]})]})}const Zt=[{icon:Y,title:"Discover with evidence",text:"Find relevant directories, resource pages, publications, and citation sources from a target URL or keyword."},{icon:lt,title:"Score what matters",text:"See transparent authority, relevance, spam-risk, and AEO-likelihood components—with confidence and evidence."},{icon:C,title:"Operate responsibly",text:"Human approval, policy safeguards, audit history, and conservative verification are built into every workflow."}];function ea(){const[,t]=z();return e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:15",className:"min-h-screen bg-[#f7f8fc] text-[#172033]",children:[e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:16",className:"relative overflow-hidden border-b border-slate-200/80 bg-[#101a2d] text-white",children:[e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:17",className:"absolute inset-0 opacity-40 subtle-grid"}),e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:18",className:"absolute -right-40 
2-top-48 h-[520px] w-[520px] rounded-full bg-violet-600/30 blur-3xl"}),e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:19",className:"absolute -left-32 bottom-0 h-64 w-64 rounded-full bg-amber-300/10 blur-3xl"}),e.jsxs("nav",{"data-loc":"client/src/pages/Landing.tsx:20",className:"container relative z-10 flex h-20 items-center justify-between",children:[e.jsx(Se,{"data-loc":"client/src/pages/Landing.tsx:21",inverse:!0}),e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:22",className:"flex items-center gap-2",children:[e.jsx(N,{"data-loc":"client/src/pages/Landing.tsx:22",variant:"ghost",onClick:()=>t("/signin"),className:"text-white/80 hover:bg-white/10 hover:text-white",children:"Sign in"}),e.jsx(N,{"data-loc":"client/src/pages/Landing.tsx:22",onClick:()=>t("/signup"),className:"bg-white text-[#101a2d] hover:bg-amber-100",children:"Create account"})]})]}),e.jsxs("main",{"data-loc":"client/src/pages/Landing.tsx:24",className:"container relative z-10 grid gap-14 pb-20 pt-12 lg:grid-cols-[1.04fr_.96fr] lg:items-center lg:pb-28 lg:pt-20",children:[e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:25",className:"max-w-3xl",children:[e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:26",className:"mb-6 inline-flex items-center gap-2 rounded-full border border-amber-200/20 bg-amber-200/10 px-3 py-1.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-amber-200",children:[e.jsx(pe,{"data-loc":"client/src/pages/Landing.tsx:26",className:"h-3.5 w-3.5"})," SEO + AEO authority operations"]}),e.jsxs("h1",{"data-loc":"client/src/pages/Landing.tsx:27",className:"font-display text-5xl leading-[.98] tracking-[-0.045em] text-white sm:text-6xl lg:text-[74px]",children:["Build authority",e.jsx("br",{"data-loc":"client/src/pages/Landing.tsx:27"}),e.jsx("span",{"data-loc":"client/src/pages/Landing.tsx:27",className:"italic text-amber-200",children:"you can prove."})]}),e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:28",className:"mt-7 max-w-xl text-base leading-7 text-slate-300 sm:text-lg",children:"A refined operating system for discovering, qualifying, earning, and verifying links and citations—without turning your brand into spam."}),e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:29",className:"mt-9 flex flex-col gap-3 sm:flex-row",children:[e.jsxs(N,{"data-loc":"client/src/pages/Landing.tsx:30",size:"lg",onClick:()=>t("/signup"),className:"h-12 bg-violet-500 px-6 text-white shadow-[0_18px_50px_rgba(124,58,237,.3)] hover:bg-violet-400",children:["Create your workspace ",e.jsx(V,{"data-loc":"client/src/pages/Landing.tsx:30",className:"ml-2 h-4 w-4"})]}),e.jsx(N,{"data-loc":"client/src/pages/Landing.tsx:31",size:"lg",variant:"outline",onClick:()=>t("/signin"),className:"h-12 border-white/20 bg-white/5 text-white hover:bg-white/10 hover:text-white",children:"Sign in"}),e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:32",className:"flex items-center gap-2 px-2 text-xs text-slate-400",children:[e.jsx(ue,{"data-loc":"client/src/pages/Landing.tsx:32",className:"h-4 w-4 text-emerald-300"})," No automated spam placement"]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:35",className:"relative mx-auto w-full max-w-xl lg:mx-0",children:[e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:36",className:"absolute -inset-6 rounded-[2.5rem] bg-gradient-to-br from-violet-500/20 to-amber-300/10 blur-2xl"}),e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:37",className:"relative overflow-hidden rounded-[1.75rem] border border-white/10 bg-white/[.065] p-4 shadow-2xl backdrop-blur-xl sm:p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:38",className:"mb-5 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:38",children:[e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:38",className:"text-[10px] uppercase tracking-[.18em] text-slate-400",children:"Authority workflow"}),e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:38",className:"mt-1 text-sm font-semibold text-white",children:"Placement pipeline"})]}),e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:38",className:"flex h-9 w-9 items-center justify-center rounded-xl bg-violet-400/15",children:e.jsx(Q,{"data-loc":"client/src/pages/Landing.tsx:38",className:"h-4 w-4 text-violet-200"})})]}),e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:39",className:"grid grid-cols-3 gap-2",children:[{n:"01",t:"Discover",c:"12 sources"},{n:"02",t:"Qualify",c:"Evidence scored"},{n:"03",t:"Verify",c:"Link health"}].map((a,s)=>e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:40",className:"rounded-2xl border border-white/10 bg-[#0d1728]/70 p-3 sm:p-4",children:[e.jsx("span",{"data-loc":"client/src/pages/Landing.tsx:40",className:"text-[10px] font-semibold text-amber-200/65",children:a.n}),e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:40",className:"mt-7 text-sm font-medium text-white",children:a.t}),e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:40",className:"mt-1 text-[10px] text-slate-500",children:a.c}),s<2&&e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:40",className:"mt-4 h-1.5 overflow-hidden rounded-full bg-white/5",children:e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:40",className:"h-full rounded-full bg-violet-400",style:{width:`${82-s*19}%`}})})]},a.n))}),e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:42",className:"mt-3 flex items-center gap-3 rounded-2xl border border-emerald-300/10 bg-emerald-300/[.06] p-4",children:[e.jsx(C,{"data-loc":"client/src/pages/Landing.tsx:42",className:"h-5 w-5 shrink-0 text-emerald-300"}),e.jsxs("p",{"data-loc":"client/src/pages/Landing.tsx:42",className:"text-xs leading-5 text-slate-300",children:[e.jsx("span",{"data-loc":"client/src/pages/Landing.tsx:42",className:"font-semibold text-white",children:"Quality gate active."})," Every estimate shows evidence, confidence, and unknown states."]})]})]})]})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/Landing.tsx:47",className:"container py-20",children:[e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:48",className:"mx-auto max-w-2xl text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:48",className:"text-[11px] font-semibold uppercase tracking-[.2em] text-violet-600",children:"One operating system"}),e.jsx("h2",{"data-loc":"client/src/pages/Landing.tsx:48",className:"mt-3 font-display text-4xl tracking-[-.03em] text-slate-900 sm:text-5xl",children:"From prospect to proven placement."}),e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:48",className:"mt-4 text-sm leading-6 text-slate-500",children:"A single, auditable workflow for client teams that care about durable authority—not vanity counts."})]}),e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:49",className:"mt-12 grid gap-4 md:grid-cols-3",children:Zt.map(a=>e.jsxs("article",{"data-loc":"client/src/pages/Landing.tsx:49",className:"rounded-3xl border border-slate-200 bg-white p-7 shadow-[0_20px_60px_rgba(15,23,42,.05)]",children:[e.jsx("div",{"data-loc":"client/src/pages/Landing.tsx:49",className:"flex h-11 w-11 items-center justify-center rounded-2xl bg-violet-50 text-violet-600",children:e.jsx(a.icon,{"data-loc":"client/src/pages/Landing.tsx:49",className:"h-5 w-5"})}),e.jsx("h3",{"data-loc":"client/src/pages/Landing.tsx:49",className:"mt-6 text-base font-semibold tracking-tight",children:a.title}),e.jsx("p",{"data-loc":"client/src/pages/Landing.tsx:49",className:"mt-2 text-sm leading-6 text-slate-500",children:a.text})]},a.title))})]}),e.jsx("footer",{"data-loc":"client/src/pages/Landing.tsx:51",className:"border-t border-slate-200 py-8",children:e.jsxs("div",{"data-loc":"client/src/pages/Landing.tsx:51",className:"container flex flex-col justify-between gap-3 text-xs text-slate-500 sm:flex-row",children:[e.jsx("span",{"data-loc":"client/src/pages/Landing.tsx:51",children:"Authority Engine"}),e.jsx("span",{"data-loc":"client/src/pages/Landing.tsx:51",children:"Quality-first link and citation intelligence."})]})})]})}const X=()=>{const t="https://manus.im",a="az3ZRmtjSVHs2xnotxtZzo",s=`${window.location.origin}/api/oauth/callback`,n=crypto.randomUUID();document.cookie=`${Tt}=${n}; Path=/; Max-Age=600; SameSite=None; Secure`;const o=Wt({redirectUri:s,nonce:n}
2),r=new URL(`${t}/app-auth`);r.searchParams.set("appId",a),r.searchParams.set("redirectUri",s),r.searchParams.set("state",o),r.searchParams.set("type","signIn"),window.location.href=r.toString()};function I(t){const{redirectOnUnauthenticated:a=!1,redirectPath:s}={},n=D.useUtils(),o=D.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),r=D.auth.logout.useMutation({onSuccess:()=>{n.auth.me.setData(void 0,null)}}),i=c.useCallback(async()=>{try{await r.mutateAsync()}catch(m){if(m instanceof de&&m.data?.code==="UNAUTHORIZED")return;throw m}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}n.auth.me.setData(void 0,null),await n.auth.me.invalidate()}},[r,n]),d=c.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(o.data)),{user:o.data??null,loading:o.isLoading||r.isPending,error:o.error??r.error??null,isAuthenticated:!!o.data}),[o.data,o.error,o.isLoading,r.error,r.isPending]);return c.useEffect(()=>{a&&(o.isLoading||r.isPending||d.user||typeof window>"u"||s&&window.location.pathname===s||(s?window.location.href=s:X()))},[a,s,r.isPending,o.isLoading,d.user]),{...d,refresh:()=>o.refetch(),logout:i}}const Ae=c.createContext(null),O="authority-engine-org",T="authority-engine-project";function ta({children:t}){const a=D.workspace.bootstrap.useQuery(void 0,{staleTime:3e4}),[s,n]=c.useState(()=>Number(localStorage.getItem(O))||null),[o,r]=c.useState(()=>Number(localStorage.getItem(T))||null),i=a.data?.organizations??[],d=a.data?.projects??[];c.useEffect(()=>{i.length&&(!s||!i.some(x=>x.id===s))&&n(i[0].id)},[i,s]);const m=c.useMemo(()=>d.filter(x=>x.organizationId===s),[d,s]);c.useEffect(()=>{if(!m.length){r(null);return}(!o||!m.some(x=>x.id===o))&&r(m[0].id)},[m,o]);const p=x=>{localStorage.setItem(O,String(x)),n(x),r(null)},u=x=>{localStorage.setItem(T,String(x)),r(x)};c.useEffect(()=>{s&&localStorage.setItem(O,String(s)),o&&localStorage.setItem(T,String(o))},[s,o]);const b=c.useMemo(()=>({loading:a.isLoading,error:a.error instanceof Error?a.error:null,organizations:i,projects:m,activeOrganization:i.find(x=>x.id===s)??null,activeProject:m.find(x=>x.id===o)??null,needsProject:!!(a.data?.needsProject||a.data&&!d.length),setActiveOrganizationId:p,setActiveProjectId:u,refresh:a.refetch}),[a.isLoading,a.error,a.data,a.refetch,i,m,d.length,s,o]);return e.jsx(Ae.Provider,{"data-loc":"client/src/contexts/WorkspaceContext.tsx:80",value:b,children:t})}function Z(){const t=c.useContext(Ae);if(!t)throw new Error("useWorkspace must be used inside WorkspaceProvider");return t}function aa({className:t,...a}){return e.jsx(dt,{"data-loc":"client/src/components/ui/avatar.tsx:11","data-slot":"avatar",className:l("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),...a})}function sa({className:t,...a}){return e.jsx(pt,{"data-loc":"client/src/components/ui/avatar.tsx:40","data-slot":"avatar-fallback",className:l("bg-muted flex size-full items-center justify-center rounded-full",t),...a})}function oa({...t}){return e.jsx(ut,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...t})}function na({...t}){return e.jsx(xt,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...t})}function ra({className:t,sideOffset:a=4,...s}){return e.jsx(mt,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:e.jsx(ht,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:a,className:l("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...s})})}function ca({className:t,inset:a,variant:s="default",...n}){return e.jsx(gt,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":a,"data-variant":s,className:l("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n})}const Ce=c.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),ia=()=>c.useContext(Ce);function ps({...t}){const a=c.useRef(!1),s=c.useRef(!1),n=c.useRef(null),o=c.useMemo(()=>({isComposing:()=>a.current,setComposing:r=>{a.current=r},justEndedComposing:()=>s.current,markCompositionEnd:()=>{s.current=!0,n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{s.current=!1},150)}}),[]);return e.jsx(Ce.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:e.jsx(xe,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...t})})}function us({...t}){return e.jsx(me,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...t})}function la({...t}){return e.jsx(je,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...t})}function Ee({className:t,...a}){return e.jsx(we,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}Ee.displayName="DialogOverlay";function xs({className:t,children:a,showCloseButton:s=!0,onEscapeKeyDown:n,...o}){const{isComposing:r}=ia(),i=c.useCallback(d=>
2{if(d.isComposing||r()){d.preventDefault();return}n?.(d)},[r,n]);return e.jsxs(la,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[e.jsx(Ee,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),e.jsxs(he,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:l("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),onEscapeKeyDown:i,...o,children:[a,s&&e.jsxs(ge,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e.jsx(fe,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),e.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function ms({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:l("flex flex-col gap-2 text-center sm:text-left",t),...a})}function hs({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:160","data-slot":"dialog-footer",className:l("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function gs({className:t,...a}){return e.jsx(be,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:l("text-lg leading-none font-semibold",t),...a})}function fs({className:t,...a}){return e.jsx(ve,{"data-loc":"client/src/components/ui/dialog.tsx:189","data-slot":"dialog-description",className:l("text-muted-foreground text-sm",t),...a})}function ze({...t}){return e.jsx(xe,{"data-loc":"client/src/components/ui/sheet.tsx:10","data-slot":"sheet",...t})}function da({...t}){return e.jsx(me,{"data-loc":"client/src/components/ui/sheet.tsx:16","data-slot":"sheet-trigger",...t})}function pa({...t}){return e.jsx(je,{"data-loc":"client/src/components/ui/sheet.tsx:28","data-slot":"sheet-portal",...t})}function ua({className:t,...a}){return e.jsx(we,{"data-loc":"client/src/components/ui/sheet.tsx:36","data-slot":"sheet-overlay",className:l("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function Ie({className:t,children:a,side:s="right",...n}){return e.jsxs(pa,{"data-loc":"client/src/components/ui/sheet.tsx:56",children:[e.jsx(ua,{"data-loc":"client/src/components/ui/sheet.tsx:57"}),e.jsxs(he,{"data-loc":"client/src/components/ui/sheet.tsx:58","data-slot":"sheet-content",className:l("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...n,children:[a,e.jsxs(ge,{"data-loc":"client/src/components/ui/sheet.tsx:75",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[e.jsx(fe,{"data-loc":"client/src/components/ui/sheet.tsx:76",className:"size-4"}),e.jsx("span",{"data-loc":"client/src/components/ui/sheet.tsx:77",className:"sr-only",children:"Close"})]})]})]})}function Be({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/sheet.tsx:86","data-slot":"sheet-header",className:l("flex flex-col gap-1.5 p-4",t),...a})}function Pe({className:t,...a}){return e.jsx(be,{"data-loc":"client/src/components/ui/sheet.tsx:109","data-slot":"sheet-title",className:l("text-foreground font-semibold",t),...a})}function Re({className:t,...a}){return e.jsx(ve,{"data-loc":"client/src/components/ui/sheet.tsx:122","data-slot":"sheet-
2description",className:l("text-muted-foreground text-sm",t),...a})}function w({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/skeleton.tsx:5","data-slot":"skeleton",className:l("bg-accent animate-pulse rounded-md",t),...a})}const W=768;function Oe(){const[t,a]=c.useState(void 0);return c.useEffect(()=>{const s=window.matchMedia(`(max-width: ${W-1}px)`),n=()=>{a(window.innerWidth<W)};return s.addEventListener("change",n),a(window.innerWidth<W),()=>s.removeEventListener("change",n)},[]),!!t}const xa="sidebar_state",ma=3600*24*7,ha="16rem",ga="18rem",fa="3rem",ba="b",Te=c.createContext(null);function B(){const t=c.useContext(Te);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function va({defaultOpen:t=!0,open:a,onOpenChange:s,className:n,style:o,children:r,...i}){const d=Oe(),[m,p]=c.useState(!1),[u,b]=c.useState(t),x=a??u,k=c.useCallback(j=>{const y=typeof j=="function"?j(x):j;s?s(y):b(y),document.cookie=`${xa}=${y}; path=/; max-age=${ma}`},[s,x]),v=c.useCallback(()=>d?p(j=>!j):k(j=>!j),[d,k,p]);c.useEffect(()=>{const j=y=>{y.key===ba&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),v())};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[v]);const L=x?"expanded":"collapsed",_=c.useMemo(()=>({state:L,open:x,setOpen:k,isMobile:d,openMobile:m,setOpenMobile:p,toggleSidebar:v}),[L,x,k,d,m,p,v]);return e.jsx(Te.Provider,{"data-loc":"client/src/components/ui/sidebar.tsx:129",value:_,children:e.jsx(J,{"data-loc":"client/src/components/ui/sidebar.tsx:130",delayDuration:0,children:e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:131","data-slot":"sidebar-wrapper",style:{"--sidebar-width":ha,"--sidebar-width-icon":fa,...o},className:l("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",n),...i,children:r})})})}function ja({side:t="left",variant:a="sidebar",collapsible:s="offcanvas",disableTransition:n=!1,className:o,children:r,...i}){const{isMobile:d,state:m,openMobile:p,setOpenMobile:u}=B();return s==="none"?e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:171","data-slot":"sidebar",className:l("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),...i,children:r}):d?e.jsx(ze,{"data-loc":"client/src/components/ui/sidebar.tsx:186",open:p,onOpenChange:u,...i,children:e.jsxs(Ie,{"data-loc":"client/src/components/ui/sidebar.tsx:187","data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":ga},side:t,children:[e.jsxs(Be,{"data-loc":"client/src/components/ui/sidebar.tsx:199",className:"sr-only",children:[e.jsx(Pe,{"data-loc":"client/src/components/ui/sidebar.tsx:200",children:"Sidebar"}),e.jsx(Re,{"data-loc":"client/src/components/ui/sidebar.tsx:201",children:"Displays the mobile sidebar."})]}),e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:203",className:"flex h-full w-full flex-col",children:r})]})}):e.jsxs("div",{"data-loc":"client/src/components/ui/sidebar.tsx:210",className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":m==="collapsed"?s:"","data-variant":a,"data-side":t,"data-slot":"sidebar",children:[e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:219","data-slot":"sidebar-gap",className:l("relative w-(--sidebar-width) bg-transparent",n?"transition-none":"transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",a==="floating"||a==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:233","data-slot":"sidebar-container",className:l("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",n?"transition-none":"transition-[left,right,width] duration-200 ease-linear",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",a==="floating"||a==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...i,children:e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:251","data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:r})})]})}function wa({className:t,onClick:a,...s}){const{toggleSidebar:n}=B();return e.jsxs(N,{"data-loc":"client/src/components/ui/sidebar.tsx:271","data-sidebar":"trigger","data-slot":"sidebar-tr
2igger",variant:"ghost",size:"icon",className:l("size-7",t),onClick:o=>{a?.(o),n()},...s,children:[e.jsx(ye,{"data-loc":"client/src/components/ui/sidebar.tsx:283"}),e.jsx("span",{"data-loc":"client/src/components/ui/sidebar.tsx:284",className:"sr-only",children:"Toggle Sidebar"})]})}function ya({className:t,...a}){return e.jsx("main",{"data-loc":"client/src/components/ui/sidebar.tsx:316","data-slot":"sidebar-inset",className:l("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),...a})}function Na({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:344","data-slot":"sidebar-header","data-sidebar":"header",className:l("flex flex-col gap-2 p-2",t),...a})}function ka({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:355","data-slot":"sidebar-footer","data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",t),...a})}function La({className:t,...a}){return e.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:380","data-slot":"sidebar-content","data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...a})}function M({className:t,...a}){return e.jsx("ul",{"data-loc":"client/src/components/ui/sidebar.tsx:463","data-slot":"sidebar-menu","data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",t),...a})}function G({className:t,...a}){return e.jsx("li",{"data-loc":"client/src/components/ui/sidebar.tsx:474","data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l("group/menu-item relative",t),...a})}const Da=K("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function F({asChild:t=!1,isActive:a=!1,variant:s="default",size:n="default",tooltip:o,className:r,...i}){const d=t?q:"button",{isMobile:m,state:p}=B(),u=e.jsx(d,{"data-loc":"client/src/components/ui/sidebar.tsx:522","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":n,"data-active":a,className:l(Da({variant:s,size:n}),r),...i});return o?(typeof o=="string"&&(o={children:o}),e.jsxs($t,{"data-loc":"client/src/components/ui/sidebar.tsx:543",children:[e.jsx(Ut,{"data-loc":"client/src/components/ui/sidebar.tsx:544",asChild:!0,children:u}),e.jsx(Vt,{"data-loc":"client/src/components/ui/sidebar.tsx:545",side:"right",align:"center",hidden:p!=="collapsed"||m,...o})]})):u}function H(){return e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:5",className:"flex min-h-screen bg-background",children:[e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:7",className:"w-[280px] border-r border-border bg-background p-4 space-y-6",children:[e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:9",className:"flex items-center gap-3 px-2",children:[e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:10",className:"h-8 w-8 rounded-md"}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:11",className:"h-4 w-24"})]}),e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:15",className:"space-y-2 px-2",children:[e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:16",className:"h-10 w-full rounded-lg"}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:17",className:"h-10 w-full rounded-lg"}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:18",className:"h-10 w-full rounded-lg"})]}),e.jsx("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:22",className:"absolute bottom-4 left-4 right-4",children:e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:23",className:"flex items-center gap-3 px-1",children:[e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:24",className:"h-9 w-9 rounded-full"}),e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:25",className:"flex-1 space-y-2",children:[e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:26",className:"h-3 w-20"}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:27",className:"h-2 w-32"})]})]})})]}),e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:34",className:"flex-1 p-4 space-y-4",children:[e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:36",className:"h-12 w-48 rounded-lg"}),e.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:37",className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:38",className:"h-32 rounded-xl"}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:39",className:"h-32 rounded-xl"}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:40",className:"h-32 rounded-xl"})]}),e.jsx(w,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:42",className:"h-64 roun
2ded-xl"})]})]})}function ae({...t}){return e.jsx(ft,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...t})}function se({...t}){return e.jsx(jt,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...t})}function oe({className:t,size:a="default",children:s,...n}){return e.jsxs(bt,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":a,className:l("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n,children:[s,e.jsx(vt,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:e.jsx(Ne,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function ne({className:t,children:a,position:s="popper",align:n="center",...o}){return e.jsx(wt,{"data-loc":"client/src/components/ui/select.tsx:59",children:e.jsxs(yt,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:l("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:s,align:n,...o,children:[e.jsx(_a,{"data-loc":"client/src/components/ui/select.tsx:72"}),e.jsx(Nt,{"data-loc":"client/src/components/ui/select.tsx:73",className:l("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),e.jsx(Sa,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function re({className:t,children:a,...s}){return e.jsxs(kt,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:l("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...s,children:[e.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsx(Lt,{"data-loc":"client/src/components/ui/select.tsx:116",children:e.jsx(Dt,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),e.jsx(_t,{"data-loc":"client/src/components/ui/select.tsx:120",children:a})]})}function _a({className:t,...a}){return e.jsx(St,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:l("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(At,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function Sa({className:t,...a}){return e.jsx(Ct,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:l("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(Ne,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}const Aa=K("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ca({className:t,variant:a,asChild:s=!1,...n}){const o=s?q:"span";return e.jsx(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:l(Aa({variant:a}),t),...n})}const $=[{label:"Scan & choose page",path:"/app/pages",icon:ke,description:"Map public pages, fix readiness issues, and choose one page worth promoting."},{label:"Approve campaign",path:"/app/campaigns",icon:Le,description:"Approve one evidence-backed objective for the selected page. Duplicate campaigns are prevented."},{label:"Find prospects",path:"/app/discovery",icon:Y,description:"Find relevant publishers, directories, and resource owners for the approved objective."},{label:"Review outreach",path:"/app/outreach",icon:De,description:"Generate a tailored draft, review every claim, and approve before anything is sent."},{label:"Record placement",path:"/app/execution",icon:_e,description:"Use an authorized publishing path and preserve destination, approval, and evidence."},{label:"Verify impact",path:"/app/analytics",icon:Q,description:"Monitor whether placements remain live and what changed after publication."}],ce={"/app":{step:0,title:"Start with your website",description:"Let Authority Engine inventory the pages you already have before you hunt for backlinks.",action:"Open website scan",path:"/app/pages"},"/app/pages":{step:0,title:"Scan, then choose a page",description:"Review every public, sitemap-only, orphan-risk, blocked, or broken page and use the recommended next action.",action:"Go to scan controls",path:"/app/pages#audit-control
2s"},"/app/discovery":{step:2,title:"Find prospects for one approved objective",description:"Use a recommended search idea, review evidence, then add only qualified prospects to the campaign.",action:"Review page recommendations",path:"/app/pages"},"/app/campaigns":{step:1,title:"Keep one objective per campaign",description:"Confirm the target page and lane, then find and qualify the right prospects before outreach.",action:"Find recommended campaigns",path:"/app/pages"},"/app/outreach":{step:3,title:"Review before you contact anyone",description:"Drafts are assistance—not permission. Verify personalization, claims, recipient, and follow-up timing.",action:"Open campaign board",path:"/app/campaigns"},"/app/execution":{step:4,title:"Publish only through authorized paths",description:"Owned sites, approved directories, publisher outreach, and manual placements each keep their own evidence trail.",action:"Review outreach",path:"/app/outreach"},"/app/placements":{step:5,title:"Verify every earned placement",description:"Record the live URL and target page, then let scheduled checks surface changes or removals.",action:"Open impact",path:"/app/analytics"},"/app/analytics":{step:5,title:"Use evidence to choose the next cycle",description:"Review live placements and alerts, then return to Website Pages for the next highest-priority page.",action:"Choose next page",path:"/app/pages"},"/app/settings":{step:0,title:"Project context drives every recommendation",description:"Keep the domain, audience, topics, and goals accurate so scans and campaign suggestions remain relevant.",action:"Return to command center",path:"/app"},"/app/admin":{step:0,title:"Administration is oversight, not the workflow",description:"Monitor system health here; use the project command center to operate authority campaigns.",action:"Return to command center",path:"/app"}};function Ea(){const{activeProject:t}=Z(),[a,s]=z(),n=a.split("?")[0].split("#")[0],o=D.websiteAudit.latest.useQuery({projectId:t?.id??0},{enabled:!!t?.id,staleTime:3e4}),r=ce[n]??ce["/app"],i=n==="/app"&&o.data?.canResume?{...r,title:"Your website scan is in progress",description:`${o.data.crawledCount} of ${o.data.discoveredCount} discovered pages analyzed so far.`,action:"Continue scan"}:n==="/app"&&o.data?{...r,title:"Your website map is ready",description:`${o.data.discoveredCount} public pages are available for prioritization and campaign suggestions.`,action:"Review priority pages"}:r,d=Math.max(0,i.step),m=p=>{if(p.includes("#")){const[u,b]=p.split("#");s(u),window.setTimeout(()=>document.getElementById(b)?.scrollIntoView({behavior:"smooth",block:"start"}),80);return}s(p)};return e.jsxs("section",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:54",className:"mb-6 overflow-hidden rounded-2xl border border-violet-200/70 bg-[linear-gradient(105deg,rgba(245,243,255,.96),rgba(255,255,255,.98)_55%,rgba(255,248,235,.96))] shadow-[0_10px_34px_rgba(55,35,120,.07)]","aria-label":"Recommended next action",children:[e.jsxs("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:55",className:"flex flex-col gap-4 p-4 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:56",className:"flex min-w-0 items-start gap-3",children:[e.jsx("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:57",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-violet-600 text-white shadow-sm",children:e.jsx(V,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:57",className:"h-4 w-4"})}),e.jsxs("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:58",className:"min-w-0",children:[e.jsxs("p",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:59",className:"text-[10px] font-semibold uppercase tracking-[.18em] text-violet-700",children:["Recommended next action · Step ",d+1," of 6"]}),e.jsx("p",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:60",className:"mt-1 text-sm font-semibold text-slate-950",children:i.title}),e.jsx("p",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:61",className:"mt-1 max-w-3xl text-xs leading-5 text-slate-600",children:i.description})]})]}),e.jsxs("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:64",className:"flex shrink-0 flex-wrap gap-2",children:[e.jsxs(ze,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:65",children:[e.jsx(da,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:66",asChild:!0,children:e.jsxs(N,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:66",variant:"outline",size:"sm",className:"bg-white",children:[e.jsx(Et,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:66",className:"mr-2 h-3.5 w-3.5"}),"How it works"]})}),e.jsxs(Ie,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:67",className:"w-full overflow-y-auto sm:max-w-lg",children:[e.jsxs(Be,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:68",children:[e.jsx(Pe,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:68",children:"How Authority Engine works"}),e.jsx(Re,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:68",children:"Follow this order. Each workspace preserves the evidence and gives you the next action."})]}),e.jsx("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:69",className:"mt-7 space-y-3",children:$.map((p,u)=>e.jsxs("button",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:70",onClick:()=>m(p.path),className:`flex w-full items-start gap-3 rounded-2xl border p-4 text-left transition-colors ${u===d?"border-violet-300 bg-vi
2olet-50":"bg-white hover:border-violet-200"}`,children:[e.jsx("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:71",className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-xl ${u===d?"bg-violet-600 text-white":"bg-slate-100 text-slate-600"}`,children:e.jsx(p.icon,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:71",className:"h-4 w-4"})}),e.jsxs("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:72",className:"min-w-0",children:[e.jsxs("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:72",className:"flex items-center gap-2 text-sm font-semibold",children:[e.jsxs("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:72",children:[u+1,". ",p.label]}),u<d?e.jsx(ue,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:72",className:"h-4 w-4 text-emerald-600"}):null]}),e.jsx("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:72",className:"mt-1 block text-xs leading-5 text-muted-foreground",children:p.description})]})]},p.path))}),e.jsxs("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:75",className:"mt-6 rounded-2xl border border-amber-200 bg-amber-50 p-4 text-xs leading-5 text-amber-900",children:[e.jsx("strong",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:75",children:"Human control stays on."})," Authority Engine can research, organize, score, and draft. It does not bypass private pages, ignore robots rules, or contact/publish to third parties without approval."]})]})]}),e.jsxs(N,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:78",size:"sm",onClick:()=>m(i.path),children:[i.action,e.jsx(V,{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:78",className:"ml-2 h-3.5 w-3.5"})]})]})]}),e.jsx("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:81",className:"hidden border-t border-violet-100 bg-white/55 px-4 py-2.5 xl:flex",children:$.map((p,u)=>e.jsxs("div",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:82",className:"flex flex-1 items-center gap-2",children:[e.jsx("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:82",className:`h-1.5 w-1.5 rounded-full ${u===d?"bg-violet-600 ring-4 ring-violet-100":u<d?"bg-emerald-500":"bg-slate-300"}`}),e.jsx("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:82",className:`text-[10px] font-medium ${u===d?"text-violet-800":"text-slate-500"}`,children:p.label}),u<$.length-1?e.jsx("span",{"data-loc":"client/src/components/GuidedWorkflowBar.tsx:82",className:"ml-auto mr-2 h-px flex-1 bg-slate-200"}):null]},p.path))})]})}const ie=[{icon:zt,label:"Overview",path:"/app"},{icon:ke,label:"Website pages",path:"/app/pages"},{icon:Y,label:"Discovery",path:"/app/discovery"},{icon:Le,label:"Campaigns",path:"/app/campaigns"},{icon:De,label:"Outreach",path:"/app/outreach"},{icon:It,label:"Placement studio",path:"/app/execution"},{icon:_e,label:"Placements",path:"/app/placements"},{icon:Q,label:"Impact",path:"/app/analytics"}],le="sidebar-width",za=280,Ia=200,Ba=480;function Pa({children:t}){const[a,s]=c.useState(()=>{const r=localStorage.getItem(le);return r?parseInt(r,10):za}),{loading:n,user:o}=I();return c.useEffect(()=>{localStorage.setItem(le,a.toString())},[a]),n?e.jsx(H,{"data-loc":"client/src/components/DashboardLayout.tsx:67"}):o?e.jsx(va,{"data-loc":"client/src/components/DashboardLayout.tsx:95",style:{"--sidebar-width":`${a}px`},children:e.jsx(Ra,{"data-loc":"client/src/components/DashboardLayout.tsx:102",setSidebarWidth:s,children:t})}):e.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:72",className:"flex items-center justify-center min-h-screen",children:e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:73",className:"flex flex-col items-center gap-8 p-8 max-w-md w-full",children:[e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:74",className:"flex flex-col items-center gap-6",children:[e.jsx("h1",{"data-loc":"client/src/components/DashboardLayout.tsx:75",className:"text-2xl font-semibold tracking-tight text-center",children:"Sign in to continue"}),e.jsx("p",{"data-loc":"client/src/components/DashboardLayout.t
2sx:78",className:"text-sm text-muted-foreground text-center max-w-sm",children:"Access to this dashboard requires authentication. Continue to launch the login flow."})]}),e.jsx(N,{"data-loc":"client/src/components/DashboardLayout.tsx:82",onClick:()=>X(),size:"lg",className:"w-full shadow-lg hover:shadow-xl transition-all",children:"Sign in"})]})})}function Ra({children:t,setSidebarWidth:a}){const{user:s,logout:n}=I(),{organizations:o,projects:r,activeOrganization:i,activeProject:d,setActiveOrganizationId:m,setActiveProjectId:p}=Z(),[u,b]=z(),{state:x,toggleSidebar:k}=B(),v=x==="collapsed",[L,_]=c.useState(!1),j=c.useRef(null),y=[...ie,{icon:ee,label:"Settings",path:"/app/settings"},{icon:C,label:"Administration",path:"/app/admin"}].find(h=>h.path===u),Me=Oe(),P=h=>{b(h),Me&&k()};return c.useEffect(()=>{v&&_(!1)},[v]),c.useEffect(()=>{const h=Ge=>{if(!L)return;const Fe=j.current?.getBoundingClientRect().left??0,R=Ge.clientX-Fe;R>=Ia&&R<=Ba&&a(R)},S=()=>{_(!1)};return L&&(document.addEventListener("mousemove",h),document.addEventListener("mouseup",S),document.body.style.cursor="col-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect=""}},[L,a]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:170",className:"relative",ref:j,children:[e.jsxs(ja,{"data-loc":"client/src/components/DashboardLayout.tsx:171",collapsible:"icon",className:"border-r border-sidebar-border bg-sidebar text-sidebar-foreground",disableTransition:L,children:[e.jsx(Na,{"data-loc":"client/src/components/DashboardLayout.tsx:176",className:"border-b border-sidebar-border px-3 py-4",children:e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:177",className:"flex items-center gap-3 transition-all w-full",children:[e.jsx("button",{"data-loc":"client/src/components/DashboardLayout.tsx:178",onClick:k,className:"h-9 w-9 flex items-center justify-center hover:bg-sidebar-accent rounded-xl transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring shrink-0","aria-label":"Toggle navigation",children:e.jsx(ye,{"data-loc":"client/src/components/DashboardLayout.tsx:183",className:"h-4 w-4 text-sidebar-foreground/60"})}),v?null:e.jsx(Se,{"data-loc":"client/src/components/DashboardLayout.tsx:186",inverse:!0})]})}),e.jsxs(La,{"data-loc":"client/src/components/DashboardLayout.tsx:191",className:"gap-0 px-3 py-4",children:[!v&&e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:192",className:"mb-5 space-y-2",children:[e.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:193",className:"px-1 text-[9px] font-semibold uppercase tracking-[0.2em] text-sidebar-foreground/45",children:"Workspace"}),e.jsxs(ae,{"data-loc":"client/src/components/DashboardLayout.tsx:194",value:i?String(i.id):void 0,onValueChange:h=>m(Number(h)),children:[e.jsx(oe,{"data-loc":"client/src/components/DashboardLayout.tsx:195",className:"h-9 border-sidebar-border bg-sidebar-accent/55 text-xs text-sidebar-foreground",children:e.jsx(se,{"data-loc":"client/src/components/DashboardLayout.tsx:195",placeholder:"Workspace"})}),e.jsx(ne,{"data-loc":"client/src/components/DashboardLayout.tsx:196",children:o.map(h=>e.jsx(re,{"data-loc":"client/src/components/DashboardLayout.tsx:196",value:String(h.id),children:h.name},h.id))})]}),e.jsxs(ae,{"data-loc":"client/src/components/DashboardLayout.tsx:198",value:d?String(d.id):void 0,onValueChange:h=>p(Number(h)),children:[e.jsx(oe,{"data-loc":"client/src/components/DashboardLayout.tsx:199",className:"h-9 border-sidebar-border bg-sidebar-accent/55 text-xs text-sidebar-foreground",children:e.jsx(se,{"data-loc":"client/src/components/DashboardLayout.tsx:199",placeholder:"Client project"})}),e.jsx(ne,{"data-loc":"client/src/components/DashboardLayout.tsx:200",children:r.map(h=>e.jsx(re,{"data-loc":"client/src/components/DashboardLayout.tsx:200",value:String(h.id),children:h.name},h.id))})]})]}),e.jsx("p",{"data-loc":"client/src/components/DashboardLayout.t
2sx:203",className:"mb-2 px-2 text-[9px] font-semibold uppercase tracking-[0.2em] text-sidebar-foreground/40 group-data-[collapsible=icon]:hidden",children:"Operate"}),e.jsx(M,{"data-loc":"client/src/components/DashboardLayout.tsx:204",children:ie.map(h=>{const S=u===h.path;return e.jsx(G,{"data-loc":"client/src/components/DashboardLayout.tsx:208",children:e.jsxs(F,{"data-loc":"client/src/components/DashboardLayout.tsx:209",isActive:S,onClick:()=>P(h.path),tooltip:h.label,className:"h-10 rounded-xl font-medium text-sidebar-foreground/68 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-white data-[active=true]:shadow-sm",children:[e.jsx(h.icon,{"data-loc":"client/src/components/DashboardLayout.tsx:215",className:`h-4 w-4 ${S?"text-amber-300":""}`}),e.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:218",children:h.label})]})},h.path)})}),s?.role==="master_admin"?e.jsxs(e.Fragment,{children:[e.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:225",className:"mb-2 mt-6 px-2 text-[9px] font-semibold uppercase tracking-[0.2em] text-sidebar-foreground/40 group-data-[collapsible=icon]:hidden",children:"System"}),e.jsx(M,{"data-loc":"client/src/components/DashboardLayout.tsx:226",children:e.jsx(G,{"data-loc":"client/src/components/DashboardLayout.tsx:226",children:e.jsxs(F,{"data-loc":"client/src/components/DashboardLayout.tsx:226",onClick:()=>P("/app/admin"),tooltip:"Administration",isActive:u==="/app/admin",className:"h-10 rounded-xl font-medium text-sidebar-foreground/68 hover:bg-sidebar-accent hover:text-white data-[active=true]:bg-violet-500/25 data-[active=true]:text-white",children:[e.jsx(C,{"data-loc":"client/src/components/DashboardLayout.tsx:226",className:`h-4 w-4 ${u==="/app/admin"?"text-amber-300":""}`}),e.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:226",children:"Administration"})]})})})]}):null]}),e.jsxs(ka,{"data-loc":"client/src/components/DashboardLayout.tsx:230",className:"border-t border-sidebar-border p-3",children:[e.jsx(M,{"data-loc":"client/src/components/DashboardLayout.tsx:231",className:"mb-2",children:e.jsx(G,{"data-loc":"client/src/components/DashboardLayout.tsx:232",children:e.jsxs(F,{"data-loc":"client/src/components/DashboardLayout.tsx:233",onClick:()=>P("/app/settings"),tooltip:"Settings",isActive:u==="/app/settings",className:"h-10 rounded-xl text-sidebar-foreground/68 hover:bg-sidebar-accent hover:text-white data-[active=true]:bg-sidebar-accent data-[active=true]:text-white",children:[e.jsx(ee,{"data-loc":"client/src/components/DashboardLayout.tsx:234",className:"h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:234",children:"Settings"})]})})}),e.jsxs(oa,{"data-loc":"client/src/components/DashboardLayout.tsx:238",children:[e.jsx(na,{"data-loc":"client/src/components/DashboardLayout.tsx:239",asChild:!0,children:e.jsxs("button",{"data-loc":"client/src/components/DashboardLayout.tsx:240",className:"flex items-center gap-3 rounded-xl px-1 py-1 hover:bg-sidebar-accent transition-colors w-full text-left group-data-[collapsible=icon]:justify-center focus:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[e.jsx(aa,{"data-loc":"client/src/components/DashboardLayout.tsx:241",className:"h-9 w-9 border border-sidebar-border shrink-0",children:e.jsx(sa,{"data-loc":"client/src/components/DashboardLayout.tsx:242",className:"bg-violet-500/20 text-xs font-semibold text-violet-100",children:s?.name?.charAt(0).toUpperCase()})}),e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:246",className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:[e.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:247",className:"text-sm font-medium truncate leading-none text-sidebar-foreground",children:s?.name||"-"}),e.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:250",className:"text-[11px] text-sidebar-foreground/48 truncate mt-1.5",children:s?.email||"-"})]})]})}
2),e.jsx(ra,{"data-loc":"client/src/components/DashboardLayout.tsx:256",align:"end",className:"w-48",children:e.jsxs(ca,{"data-loc":"client/src/components/DashboardLayout.tsx:257",onClick:n,className:"cursor-pointer text-destructive focus:text-destructive",children:[e.jsx(Bt,{"data-loc":"client/src/components/DashboardLayout.tsx:261",className:"mr-2 h-4 w-4"}),e.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:262",children:"Sign out"})]})})]})]})]}),e.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:268",className:`absolute top-0 right-0 w-1 h-full cursor-col-resize hover:bg-amber-300/40 transition-colors ${v?"hidden":""}`,onMouseDown:()=>{v||_(!0)},style:{zIndex:50}})]}),e.jsxs(ya,{"data-loc":"client/src/components/DashboardLayout.tsx:278",children:[e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:279",className:"flex border-b h-16 items-center justify-between bg-background/88 px-4 backdrop-blur-xl supports-[backdrop-filter]:backdrop-blur-xl sticky top-0 z-40",children:[e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:280",className:"flex items-center gap-2",children:[e.jsx(wa,{"data-loc":"client/src/components/DashboardLayout.tsx:281",className:"h-9 w-9 rounded-xl bg-card shadow-sm"}),e.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:282",className:"flex items-center gap-3",children:e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:283",className:"flex flex-col gap-1",children:[e.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:284",className:"text-sm font-semibold tracking-tight text-foreground",children:y?.label??"Menu"}),e.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:287",className:"hidden text-[10px] text-muted-foreground sm:block",children:d?.domain})]})})]}),e.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:291",className:"flex items-center gap-2",children:[e.jsx(Ca,{"data-loc":"client/src/components/DashboardLayout.tsx:292",variant:"outline",className:"hidden border-emerald-200 bg-emerald-50 text-[10px] font-medium text-emerald-700 sm:inline-flex",children:"Quality-first"}),e.jsx(N,{"data-loc":"client/src/components/DashboardLayout.tsx:293",variant:"ghost",size:"icon",className:"relative h-9 w-9 rounded-xl","aria-label":"Notifications",children:e.jsx(Pt,{"data-loc":"client/src/components/DashboardLayout.tsx:293",className:"h-4 w-4"})})]})]}),e.jsxs("main",{"data-loc":"client/src/components/DashboardLayout.tsx:296",className:"flex-1 overflow-x-hidden p-4 sm:p-6 lg:p-8",children:[e.jsx(Ea,{"data-loc":"client/src/components/DashboardLayout.tsx:296"}),t]})]})]})}const Oa=c.lazy(()=>f(()=>import("./Onboarding-BX0xo_Hr.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),Ta=c.lazy(()=>f(()=>import("./Home-B7x_5gM3.js"),__vite__mapDeps([7,1,8,4,3,6]))),Wa=c.lazy(()=>f(()=>import("./Discovery-RtqJyvwL.js"),__vite__mapDeps([9,1,8,10,3,4,2,11,5,6]))),Ma=c.lazy(()=>f(()=>import("./Campaigns-Dj3uADCE.js"),__vite__mapDeps([12,1,8,2,3,4,11,5,13,6]))),Ga=c.lazy(()=>f(()=>import("./Outreach-uTm6qpT1.js"),__vite__mapDeps([14,1,8,2,3,4,15,5,6]))),Fa=c.lazy(()=>f(()=>import("./Execution-CRZ5vim2.js"),__vite__mapDeps([16,1,8,10,3,4,2,15,5,6]))),$a=c.lazy(()=>f(()=>import("./Placements-CjJhq7hQ.js"),__vite__mapDeps([17,1,8,2,3,4,18,11,6]))),Ua=c.lazy(()=>f(()=>import("./Analytics-8ug5p3oh.js"),__vite__mapDeps([19,1,8,4,3,20,6]))),Va=c.lazy(()=>f(()=>import("./Settings-Cg3epE2j.js"),__vite__mapDeps([21,1,8,4,3,2,15,5,6]))),Ha=c.lazy(()=>f(()=>import("./SignIn-DcMAydcn.js"),__vite__mapDeps([22,1,23,4,3,2,6]))),Ka=c.lazy(()=>f(()=>import("./SignUp-DhEdPI2G.js"),__vite__mapDeps([24,1,23,4,3,10,2,6]))),qa=c.lazy(()=>f(()=>import("./ClaimAccount-CiOd5Cn1.js"),__vite__mapDeps([25,1,23,4,3,2,6]))),Qa=c.lazy(()=>f(()=>import("./Admin-DAtilzL5.js"),__vite__mapDeps([26,1,8,2,3,4,11,15,6]))),Ya=c.lazy(()=>f(()=>import("./WebsitePages-CSJjDj63.js"),__vite__mapDeps([27,1,8,10,3,4,2,18,6])));function Ja(){const t=Z(),{user:a}=I();return t.loading?e.jsx(H,{"data-loc":"client/src/App.tsx:32"}):t.error?e.jsxs("div",{"data-loc":"client/src/App.tsx:33",className:"flex min-h-screen items-center justify-center p-6 text-sm text-destructive",children:["Unable to load your workspace: ",t.error.message]}):t.needsProject||!t.activeProject?e.jsx(c.Suspense,{"data-loc":"client/src/App.tsx:34",fallback:e.jsx(H,{"data-loc":"client/src/App.tsx:34"}),children:e.jsx(Oa,{"data-loc":"client/src/App.tsx:34"})}):e.jsx(Pa,{"data-loc":"client/src/App.tsx:36",children:e.jsx(c.Suspense,{"data-loc":"client/src/App.tsx:37",fallback:e.jsx("div",{"data-loc":"client/src/App.tsx:37",className:"min-h-[55vh] rounded-3xl border border-border/60 bg-card/80 animate-pulse","aria-label":"Loading workspace"}),children:e.jsxs(U,{"data-loc":"client/src/App.tsx:38",children:[e.jsx(g,{"data-loc":"client/src/App.tsx:39",path:"/app",component:Ta}),e.jsx(g,{"data-loc":"client/src/App.tsx:40",path:"/app/pages",component:Ya}),e.jsx(g,{"data-loc":"client/src/App.tsx:41",path:"/app/discovery",component:Wa}),e.jsx(g,{"data-loc":"client/src/App.tsx:42",path:"/app/campaigns",component:Ma}),e.jsx(g,{"data-loc":"client/src/App.tsx:43",path:"/app/outreach",component:Ga}),e.jsx(g,{"data-loc":"client/src/App.tsx:44",path:"/app/execution",component:Fa}),e.jsx(g,{"data-loc":"client/src/App.tsx:45",path:"/app/placements",component:$a}),e.jsx(g,{"data-loc":"client/src/App.tsx:46",path:"/app/analytics",component:Ua}
2),e.jsx(g,{"data-loc":"client/src/App.tsx:47",path:"/app/settings",component:Va}),a?.role==="master_admin"?e.jsx(g,{"data-loc":"client/src/App.tsx:48",path:"/app/admin",component:Qa}):null,e.jsx(g,{"data-loc":"client/src/App.tsx:49",component:Qt})]})})})}function Xa(){const{user:t,loading:a}=I();return a?e.jsx("div",{"data-loc":"client/src/App.tsx:58",className:"min-h-screen bg-background"}):t?e.jsx(ta,{"data-loc":"client/src/App.tsx:60",children:e.jsxs(U,{"data-loc":"client/src/App.tsx:60",children:[e.jsx(g,{"data-loc":"client/src/App.tsx:60",path:"/",children:e.jsx(A,{"data-loc":"client/src/App.tsx:60",to:"/app"})}),e.jsx(g,{"data-loc":"client/src/App.tsx:60",path:"/signin",children:e.jsx(A,{"data-loc":"client/src/App.tsx:60",to:"/app"})}),e.jsx(g,{"data-loc":"client/src/App.tsx:60",path:"/signup",children:e.jsx(A,{"data-loc":"client/src/App.tsx:60",to:"/app"})}),e.jsx(g,{"data-loc":"client/src/App.tsx:60",path:"/claim",children:e.jsx(A,{"data-loc":"client/src/App.tsx:60",to:"/app"})}),e.jsx(g,{"data-loc":"client/src/App.tsx:60",children:e.jsx(Ja,{"data-loc":"client/src/App.tsx:60"})})]})}):e.jsx(c.Suspense,{"data-loc":"client/src/App.tsx:59",fallback:e.jsx("div",{"data-loc":"client/src/App.tsx:59",className:"min-h-screen bg-background"}),children:e.jsxs(U,{"data-loc":"client/src/App.tsx:59",children:[e.jsx(g,{"data-loc":"client/src/App.tsx:59",path:"/",component:ea}),e.jsx(g,{"data-loc":"client/src/App.tsx:59",path:"/signin",component:Ha}),e.jsx(g,{"data-loc":"client/src/App.tsx:59",path:"/signup",component:Ka}),e.jsx(g,{"data-loc":"client/src/App.tsx:59",path:"/claim",component:qa}),e.jsx(g,{"data-loc":"client/src/App.tsx:59",children:e.jsx(A,{"data-loc":"client/src/App.tsx:59",to:"/"})})]})})}function Za(){return e.jsx(Yt,{"data-loc":"client/src/App.tsx:70",children:e.jsx(Xt,{"data-loc":"client/src/App.tsx:71",defaultTheme:"light",children:e.jsxs(J,{"data-loc":"client/src/App.tsx:75",children:[e.jsx(Ft,{"data-loc":"client/src/App.tsx:76"}),e.jsx(Xa,{"data-loc":"client/src/App.tsx:77"})]})})})}const E=new Ve,We=t=>{!(t instanceof de)||typeof window>"u"||!(t.message===Ot)||X()};E.getQueryCache().subscribe(t=>{if(t.type==="updated"&&t.action.type==="error"){const a=t.query.state.error;We(a),console.error("[API Query Error]",a)}});E.getMutationCache().subscribe(t=>{if(t.type==="updated"&&t.action.type==="error"){const a=t.mutation.state.error;We(a),console.error("[API Mutation Error]",a)}});const es=D.createClient({links:[He({url:"/api/trpc",transformer:qe,headers(){try{const t=sessionStorage.getItem("manus-cookie");if(t){const a=`${Rt}=`,n=t.split(";").find(o=>o.trim().startsWith(a))?.trim().slice(a.length);if(n)return{Authorization:`Bearer ${n}`}}}catch{}return{}},fetch(t,a){return globalThis.fetch(t,{...a??{},credentials:"include"})}})]});$e.createRoot(document.getElementById("root")).render(e.jsx(D.Provider,{"data-loc":"client/src/main.tsx:76",client:es,queryClient:E,children:e.jsx(Ke,{"data-loc":"client/src/main.tsx:77",client:E,children:e.jsx(Za,{"data-loc":"client/src/main.tsx:78"})})}));export{X as A,Se as B,Kt as C,ps as D,is as E,ls as F,ds as G,qt as H,w as S,N as a,Ca as b,rs as c,us as d,xs as e,ms as f,cs as g,gs as h,fs as i,hs as j,ae as k,oe as l,se as m,ne as n,re as o,ze as p,Ie as q,Be as r,Pe as s,D as t,Z as u,Re as v,I as w,l as x,Ht as y,ia as z};

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.