PageSourceSearch

https://trueval.ai/_next/static/chunks/9001-91ab80f816b58b17.js

js trueval.ai collected 2026-10-05 14:46:10 UTC 43,109 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9001],{15019:(e,t,s)=>{s.d(t,{BK:()=>l,eu:()=>o,q5:()=>d});var a=s(4118),r=s(78870),n=s(86728),i=s(61363);let o=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.bL,{ref:t,className:(0,i.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",s),...r})});o.displayName=n.bL.displayName;let l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n._V,{ref:t,className:(0,i.cn)("aspect-square h-full w-full",s),...r})});l.displayName=n._V.displayName;let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.H4,{ref:t,className:(0,i.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",s),...r})});d.displayName=n.H4.displayName},28542:(e,t,s)=>{s.d(t,{w:()=>g});var a=s(4118),r=s(8735),n=s.n(r),i=s(62400),o=s(72443),l=s(59550),d=s(86482),c=s(85505),u=s(57126),m=s(12799),h=s(61363);function g(e){let{adminShell:t=!1}=e,s=(0,i.usePathname)(),{user:r}=(0,m.J)(),g=(0,u.OY)(null==r?void 0:r.role),f=s===u.__||(null==s?void 0:s.startsWith("".concat(u.__,"/")))||(null==s?void 0:s.startsWith("/admin/student-cohorts")),b="/dashboard/leaderboard"===s||(null==s?void 0:s.startsWith("/dashboard/leaderboard/")),p=null==s?void 0:s.startsWith("/admin/hosts"),x=t?"text-violet-700 dark:text-violet-300":"bg-blue-50 text-blue-600",v=t?"text-muted-foreground hover:text-violet-700 dark:hover:text-violet-300":"text-gray-600 hover:bg-blue-50 hover:text-blue-600",w=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-5 sm:gap-8",children:[(0,a.jsx)(n(),{href:u.__,className:"flex items-center gap-2","aria-label":"Cebos admin home",children:(0,a.jsx)("img",{src:"/CEBOS_logo.svg",alt:"CEBOS",className:"h-auto w-32 sm:w-40"})}),(0,a.jsxs)("nav",{"aria-label":"Host navigation",className:"flex items-center gap-1 sm:gap-2",children:[(0,a.jsxs)(n(),{href:u.__,className:(0,h.cn)("inline-flex items-center gap-2 whitespace-nowrap rounded-md px-3 py-2 text-sm font-medium transition-colors",f?x:v),children:[(0,a.jsx)(o.A,{className:"h-4 w-4","aria-hidden":!0}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Manage Cohort"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Cohorts"})]}),(0,a.jsxs)(n(),{href:"/dashboard/leaderboard",className:(0,h.cn)("inline-flex items-center gap-2 whitespace-nowrap rounded-md px-3 py-2 text-sm font-medium transition-colors",b?x:v),children:[(0,a.jsx)(l.A,{className:"h-4 w-4","aria-hidden":!0}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Leaderboard"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Board"})]}),g?(0,a.jsxs)(n(),{href:"/admin/hosts",className:(0,h.cn)("inline-flex items-center gap-2 whitespace-nowrap rounded-md px-3 py-2 text-sm font-medium transition-colors",p?x:v),children:[(0,a.jsx)(d.A,{className:"h-4 w-4","aria-hidden":!0}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Manage host"}),(0,a.jsx)("span",{className:"sm:hidden",children:"Hosts"})]}):null]})]}),(0,a.jsx)(c.M,{})]});return t?(0,a.jsx)("header",{className:"border-b border-border bg-card",children:(0,a.jsx)("div",{className:"mx-auto flex max-w-7xl items-center justify-between px-4 py-4 sm:px-6 sm:py-5",children:w})}):(0,a.jsx)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:(0,a.jsx)("div",{className:"container flex h-16 items-center justify-between",children:w})})}},36048:(e,t,s)=>{s.d(t,{a:()=>n,w:()=>r});var a=s(62400);let r="/dashboard/invite-friends";function n(){let e=(0,a.useRouter)();return{openReferralModal:()=>e.push(r)}}},45401:(e,t,s)=>{s.d(t,{SQ:()=>m,_2:()=>h,lp:()=>g,mB:()=>f,rI:()=>c,ty:()=>u});var a=s(4118),r=s(78870),n=s(41995),i=s(8208),o=s(51040),l=s(82120),d=s(61363);let c=n.bL,u=n.l9;n.YJ,n.ZL,n.Pb,n.z6,r.forwardRef((e,t)=>{let{className:s,inset:r,children:o,...l}=e;return(0,a.jsxs)(n.ZP,{ref:t,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",s),...l,children:[o,(0,a.jsx)(i.A,{className:"ml-auto"})]})}).displayName=n.ZP.displayName,r.forwardRef((e,t)=>
1{let{className:s,...r}=e;return(0,a.jsx)(n.G5,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",s),...r})}).displayName=n.G5.displayName;let m=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,sideOffset:r,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",s),...i})})});m.displayName=n.UC.displayName;let h=r.forwardRef((e,t)=>{let{className:s,inset:r,...i}=e;return(0,a.jsx)(n.q7,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 [&_img]:opacity-100 [&_img]:shrink-0",r&&"pl-8",s),...i})});h.displayName=n.q7.displayName,r.forwardRef((e,t)=>{let{className:s,children:r,checked:i,...l}=e;return(0,a.jsxs)(n.H_,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:i,...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})}),r]})}).displayName=n.H_.displayName,r.forwardRef((e,t)=>{let{className:s,children:r,...i}=e;return(0,a.jsxs)(n.hN,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(l.A,{className:"h-2 w-2 fill-current"})})}),r]})}).displayName=n.hN.displayName;let g=r.forwardRef((e,t)=>{let{className:s,inset:r,...i}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",s),...i})});g.displayName=n.JU.displayName;let f=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",s),...r})});f.displayName=n.wv.displayName},49935:(e,t,s)=>{s.d(t,{x:()=>i});var a=s(4118);s(78870);var r=s(33099),n=s(61363);function i(e){let{className:t,alt:s="Logo",height:i=32,width:o="auto"}=e,{theme:l}=(0,r.D)();return"cebos"===l?(0,a.jsx)("img",{src:"/CEBOS_logo.svg",alt:"CEBOS Logo",className:(0,n.cn)("h-6 w-30",t),height:i,width:o}):(0,a.jsx)("img",{src:"/TV-logo-new.svg",alt:"TrueVal Logo",className:(0,n.cn)("h-8 w-auto",t),height:i,width:o})}},55670:(e,t,s)=>{s.d(t,{m:()=>l});var a=s(4118),r=s(21291),n=s(78870),i=s(7786),o=s(78890);function l(e){let{className:t="",iconClassName:s="h-7 w-7 sm:h-8 sm:w-8"}=e,l=function(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>t(null!=(0,i.n8)());return e(),window.addEventListener(i.er,e),window.addEventListener("storage",e),()=>{window.removeEventListener(i.er,e),window.removeEventListener("storage",e)}},[]),e}(),[d,c]=(0,n.useState)(!1);return l?(0,a.jsx)("button",{type:"button",onClick:()=>{d||(c(!0),(0,o.Ez)().finally(()=>c(!1)))},disabled:d,className:"rounded-lg p-1 transition hover:opacity-90 disabled:opacity-60 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 ".concat(t),"aria-label":"Open Founder Journey in CEBOS",title:"Founder Journey",children:(0,a.jsx)(r.default,{src:"/assets/workspace-switch.svg",alt:"",width:32,height:32,className:s,"aria-hidden":!0})}):null}},57126:(e,t,s)=>{function a(e){return String(null!=e?e:"").trim().toLowerCase()}function r(e){return"admin"===a(e)}function n(e){let t=a(e);return"admin"===t||"host"===t}s.d(t,{LI:()=>o,OY:()=>r,__:()=>i,dI:()=>d,rg:()=>l,y8:()=>n});let i="/admin/cohorts";function o(e){let t=((null==e?void 0:e.trim())||"").replace(/\/+$/,"")||"";return"/dashboard/leaderboard"===t||t.startsWith("/dashboard/leaderboard/")}function l(e){return n(e)?i:"/dashboard"}function d(e,t){let s=((null==e?void 0:e.trim())||"/dashboard").replace(/\/+$/,"")||"/dashboard";return n(t)?s.startsWith("/admin")||o(s)?s:i:s||"/dashboard"}},66813:(e,t,s)=>{s.d(t,{Y:()=>o,v:()=>n});var a=s(34024),r=s(6957);function n(e){var t,s;return Math.max(null!==(t=e.viewersCount)&&void 0!==t?t:0,null!==(s=e.totalViews)&&void 0!==s?s:0)}class i{getAuthHeaders(){var e;let t=localStorage.getItem("token")||(null===(e=document.cookie.split("; ").find(e=>e.startsWith("token=")))||void 0===e?void 0:e.split("=")[1]);return t?{Authorization:"Bearer ".concat(t)}:{}}async trackView(e){try{return(await a.A.post("".concat(this.baseUrl,"/track-view"),e)).data}catch(e){throw console.error("Error tracking view:",e),e}}
1async confirmShare(e,t,s){try{return(await a.A.post("".concat(this.baseUrl,"/confirm-share"),{valuationId:e,sharePlatform:t,publicLink:s||void 0},{headers:this.getAuthHeaders()})).data}catch(e){throw console.error("Error confirming share:",e),e}}async getViewersByValuationId(e){try{return(await a.A.get("".concat(this.baseUrl,"/valuation/").concat(e,"/viewers"),{headers:this.getAuthHeaders()})).data}catch(e){throw console.error("Error getting viewers:",e),e}}async getViewerStats(e){let t=this.viewerStatsPromises.get(e);if(t)return t;let s=(async()=>{try{return(await a.A.get("".concat(this.baseUrl,"/valuation/").concat(e,"/stats"),{headers:this.getAuthHeaders()})).data}catch(e){throw console.error("Error getting viewer stats:",e),e}finally{this.viewerStatsPromises.delete(e)}})();return this.viewerStatsPromises.set(e,s),s}async getPublicViewerStats(e){return(await a.A.get("".concat(r.JR,"/public/valuations/").concat(e,"/viewer-stats"))).data}async getValuationsViewedByUser(){try{return(await a.A.get("".concat(this.baseUrl,"/user/viewed-valuations"),{headers:this.getAuthHeaders()})).data}catch(e){throw console.error("Error getting viewed valuations:",e),e}}async getSharedWithMe(){let e=this.sharedWithMeListInflight;if(e)return e;let t=(async()=>{try{return(await a.A.get("".concat(this.baseUrl,"/user/shared-with-me"),{headers:this.getAuthHeaders()})).data}catch(e){throw console.error("Error getting shared-with-me valuations:",e),e}finally{this.sharedWithMeListInflight=null}})();return this.sharedWithMeListInflight=t,t}async getSharedWithMeCount(){let e=this.sharedWithMeCountInflight;if(e)return e;let t=(async()=>{try{var e,t;let s=await a.A.get("".concat(this.baseUrl,"/user/shared-with-me/count"),{headers:this.getAuthHeaders()});return null!==(t=null===(e=s.data)||void 0===e?void 0:e.count)&&void 0!==t?t:0}catch(e){return 0}finally{this.sharedWithMeCountInflight=null}})();return this.sharedWithMeCountInflight=t,t}constructor(){this.baseUrl="".concat(r.JR,"/valuation-viewers"),this.sharedWithMeCountInflight=null,this.sharedWithMeListInflight=null,this.viewerStatsPromises=new Map}}let o=new i},69001:(e,t,s)=>{s.r(t),s.d(t,{DashboardNav:()=>V});var a=s(4118),r=s(8735),n=s.n(r),i=s(62400),o=s(61363),l=s(75797),d=s(34916),c=s(72443),u=s(30623),m=s(65125),h=s(24176),g=s(67487),f=s(40732),b=s(37560),p=s(59550),x=s(433),v=s(78967),w=s(45401),y=s(78870),j=s(15019),N=s(12799),S=s(66926),k=s(49935),C=s(52880),I=s(7662),_=s(66813),A=s(36048),L=s(44291),P=s(55670),B=s(57126),F=s(28542);function V(){var e,t,s,r,V,W,E;let{forceActive:U}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},M=(0,i.usePathname)(),R=(0,i.useSearchParams)(),[z,q]=(0,y.useState)(!1),{openReferralModal:O}=(0,A.a)(),[Y,D]=(0,y.useState)(!1),[H,T]=(0,y.useState)(!1),[G,J]=(0,y.useState)(!1),[K,Q]=(0,y.useState)(0),{user:Z,logout:$}=(0,N.J)();if((0,B.y8)(null==Z?void 0:Z.role))return(0,a.jsx)(F.w,{adminShell:!0});let{companies:X,loading:ee,valuations:et,getDataIfNeeded:es}=(0,S.e6)(),[ea,er]=(0,y.useState)(!1),[en,ei]=(0,y.useState)(!1);(0,y.useLayoutEffect)(()=>{er((0,o.NA)())},[]);let[eo,el]=(0,y.useState)(!1);(0,y.useLayoutEffect)(()=>{if(!(null==Z?void 0:Z.id)){el(!1);return}el("true"===localStorage.getItem("trueval_new_signup_".concat(Z.id)))},[null==Z?void 0:Z.id]),(0,y.useLayoutEffect)(()=>{ei("true"===sessionStorage.getItem(o.TS))},[M]);let{trackButtonClick:ed,trackNavigationMenuClicked:ec}=(0,I.p)(),{creditsData:eu,creditsLoading:em}=(0,C.I)(),eh=()=>{sessionStorage.setItem("creditPurchaseReturnUrl","/dashboard"),localStorage.setItem("creditPurchaseReturnUrl","/dashboard"),sessionStorage.setItem("fromCreditPurchase","true"),localStorage.setItem("fromCreditPurchase","true"),window.location.href="/dashboard/buy-credits"},eg=()=>{var e,t;if(eA||M.includes("/dashboard/buy-credits"))return;let s=null!==(t=null==eu?void 0:null===(e=eu.data)||void 0===e?void 0:e.totalCredits)&&void 0!==t?t:0;if((null==eu?void 0:eu.success)&&s>0){eh();return}D(!0)};(0,y.useEffect)(()=>(G?(document.body.style.overflow="hidden",document.body.style.height="100vh",document.body.style.position="fixed",document.body.style.width="100%",document.body.classList.add("mobile-nav-open")):(document.body.style.overflow="",document.body.style.height="",document.body.style.position="",document.body.style.width="",document.body.classList.remove("mobile-nav-open")),()=>{document.body.style.overflow="",document.body.style.height="",document.body.style.position="",document.body.style.width="",document.body.classList.remove("mobile-nav-open")}),[G]);let ef=M.includes("/dashboard/shared/valuations/");(0,y.useEffect)(()=>{{T("true"===new URLSearchParams(window.location.search).get("shared")&&!M.includes("/dashboard/shared/valuations/"));let e=M.includes("/dashboard/valuations/new/"),t="/dashboard/companies/new"===M,s="/dashboard"===M&&!ee&&0===X.length&&0===et.length&&!ea&&eo;if(t||e||s||"/dashboard"===M&&ee)return;try{sessionStorage.removeItem("fromSignupYes"),sessionStorage.removeItem("fromFocusSelection"),sessionStorage.removeItem("fromValuationSelection")}catch(e){console.warn("Failed to clean up session storage:",e)}}},[M,ee,X.length,et.length,ea,eo]),(0,y.useEffect)(()=>
1{if(!(null==Z?void 0:Z.id))return;let e=!1;return _.Y.getSharedWithMeCount().then(t=>{e||Q(t)}).catch(()=>{}),()=>{e=!0}},[null==Z?void 0:Z.id,M]),(0,y.useEffect)(()=>{if(!(null==Z?void 0:Z.id))return;let e=window.setInterval(()=>{_.Y.getSharedWithMeCount().then(Q).catch(()=>{})},45e3);return()=>clearInterval(e)},[null==Z?void 0:Z.id]),(0,y.useEffect)(()=>{let e=()=>{_.Y.getSharedWithMeCount().then(Q).catch(()=>{})},t=()=>{_.Y.getSharedWithMeCount().then(Q).catch(()=>{})};return window.addEventListener("shared-valuation-viewed",e),window.addEventListener("shared-with-me-invalidate",t),()=>{window.removeEventListener("shared-valuation-viewed",e),window.removeEventListener("shared-with-me-invalidate",t)}},[]);let eb="/dashboard"===M&&0===X.length&&0===et.length&&!ea&&eo,ep="/dashboard/companies/new"===M&&"true"===sessionStorage.getItem("fromFocusSelection"),ex="/dashboard/companies/new"===M&&"true"===sessionStorage.getItem("fromSignupYes"),ev="/dashboard/companies/new"===M&&"true"===sessionStorage.getItem("fromValuationSelection");"true"===sessionStorage.getItem("fromNewValuation")||new URLSearchParams(window.location.search).get("fromNewValuation"),M.includes("/dashboard/valuations/new/");let ew="/dashboard/companies/new"===M&&("true"===new URLSearchParams(window.location.search).get("fromNewValuation")||"true"===new URLSearchParams(window.location.search).get("fromValuation")),ey="/dashboard/companies/new"===M&&!ew&&("true"===sessionStorage.getItem("fromSignupYes")||"true"===sessionStorage.getItem("fromFocusSelection")||"true"===sessionStorage.getItem("fromValuationSelection")),ej="true"===new URLSearchParams(window.location.search).get("edit"),eN=!sessionStorage.getItem("fromSignupYes")&&!sessionStorage.getItem("fromFocusSelection")&&!sessionStorage.getItem("fromValuationSelection"),eS=H&&!U&&!ef||eb||ep&&!ej&&!eN||ex&&!ej&&!eN||ev&&!ej&&!eN,ek=!("/dashboard/companies/new"===M&&!ep&&!ex&&!ev)&&!ew&&eS,eC=H&&!U&&!ef||ey;(0,y.useEffect)(()=>{"/valuate-idea"===M&&es()},[M,es]);let eI=(0,L.o2)(null==Z?void 0:Z.id,X),e_=(0,L.RR)(null==Z?void 0:Z.id,{pathname:null!=M?M:"",searchParams:new URLSearchParams(null!==(r=null==R?void 0:R.toString())&&void 0!==r?r:"")},{hasExistingIdeas:eI}),eA=e_||(0,l.xF)({pathname:null!=M?M:"",searchParams:new URLSearchParams(null!==(V=null==R?void 0:R.toString())&&void 0!==V?V:"")}),eL=[{id:"dashboard",href:"/dashboard",label:"Dashboard",icon:(0,a.jsx)(c.A,{className:"mr-2 h-4 w-4 sm:mr-0"}),active:"/dashboard"===M||"dashboard"===U},{id:"companies",href:"/dashboard/companies",label:"Assets",icon:(0,a.jsx)(u.A,{className:"mr-2 h-4 w-4"}),active:M.includes("/dashboard/companies")||M.includes("/dashboard/ideas")||"companies"===U},{id:"valuations",href:"/dashboard/valuations",label:"My Valuation",icon:(0,a.jsx)(m.A,{className:"mr-2 h-4 w-4 sm:mr-0"}),active:M.includes("/dashboard/valuations")||M.includes("/dashboard/career-comparison")||M.includes("/dashboard/reports")||"valuations"===U},{id:"sharedWithMe",href:"/dashboard/shared-with-me",label:"Shared with me",icon:(0,a.jsx)(h.A,{className:"mr-2 h-4 w-4 sm:mr-0"}),active:M.includes("/dashboard/shared-with-me")||M.includes("/dashboard/shared/valuations")||"sharedWithMe"===U},{id:"quick",href:"/quick-peep",label:"Quick Look",icon:(0,a.jsx)(g.A,{className:"mr-2 h-4 w-4 sm:mr-0"}),active:M.includes("/quick-peep")},{id:"payments",href:"/dashboard/payments",label:"My Payments",icon:(0,a.jsxs)("div",{className:"mr-2 h-4 w-4",children:[(0,a.jsx)("img",{src:M.includes("/dashboard/payments")?"/assets/payments.svg":"/assets/payment-grey.svg",alt:"Payments",className:"h-4 w-4 transition-all duration-200 group-hover:hidden"}),(0,a.jsx)("img",{src:"/assets/payments.svg",alt:"Payments",className:"h-4 w-4 hidden group-hover:block"})]}),active:M.includes("/dashboard/payments")||"payments"===U}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 hidden md:block",children:(0,a.jsxs)("div",{className:"container flex h-16 items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[e_?(0,a.jsx)("div",{className:"pointer-events-none flex cursor-default items-center gap-2",children:(0,a.jsx)(k.x,{})}):(0,a.jsx)(n(),{href:"/dashboard",className:"flex items-center gap-2 cursor-pointer hover:opacity-80 transition-opacity focus:outline-none focus-visible:outline-none",onClick:()=>ed("Logo Click",{current_page:M,user_id:null==Z?void 0:Z.id}),children:(0,a.jsx)(k.x,{})}),!ek&&(0,a.jsx)("nav",{className:"flex items-center space-x-1",children:eL.filter(e=>"payments"!==e.id&&"quick"!==e.id).map(e=>{let t="companies"===e.id&&M.includes("valuate-idea")?"/dashboard/companies?tab=idea":e.href;return(0,a.jsxs)(n(),{href:t,onClick:()=>
1{if("companies"===e.id&&M.includes("valuate-idea"))try{sessionStorage.setItem("companiesTab","idea")}catch(e){}if(ec(e.label,{destination:t,current_page:M,user_id:null==Z?void 0:Z.id,navigation_type:"header_menu"}),"valuations"!==e.id)try{sessionStorage.removeItem("lastViewedValuationStatus"),sessionStorage.removeItem("lastViewedValuationType")}catch(e){}},className:(0,o.cn)("flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-md transition-colors group focus:outline-none focus-visible:outline-none focus-visible:ring-0",e.active?"bg-blue-50 text-blue-600":"text-gray-600 hover:bg-blue-50 hover:text-blue-600"),children:[e.icon,e.label,"sharedWithMe"===e.id?K>0?" (".concat(K,")"):"":"badgeCount"in e&&null!=e.badgeCount&&" (".concat(e.badgeCount,")")]},e.id)})})]}),(0,a.jsx)("div",{className:"flex items-center gap-4",children:!eC&&(0,a.jsxs)(a.Fragment,{children:[(!eb||en)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.m,{className:"hover:bg-slate-100"}),em?(0,a.jsxs)(d.Button,{variant:"outline",className:"bg-white border-gray-200 rounded-full text-black font-medium px-4 py-2 h-9 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",disabled:!0,children:[(0,a.jsx)(f.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Loading..."]}):(null==eu?void 0:eu.success)&&(null==eu?void 0:eu.data)?(0,a.jsxs)(d.Button,{variant:"outline",className:(0,o.cn)("bg-white border-gray-200 rounded-full text-black font-medium px-4 py-2 h-9 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",M.includes("/dashboard/buy-credits")?"opacity-50 cursor-not-allowed":eA?"cursor-default":"hover:bg-gray-50",eA&&"pointer-events-none"),onClick:eg,disabled:M.includes("/dashboard/buy-credits"),children:[(0,a.jsx)("img",{src:"/assets/buycredits.png",alt:"Credits",className:"h-4 w-4 mr-2"}),null!==(W=eu.data.totalCredits)&&void 0!==W?W:0," Credits"]}):(0,a.jsxs)(d.Button,{variant:"outline",className:(0,o.cn)("bg-white border-gray-200 rounded-full text-black font-medium px-4 py-2 h-9 focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",M.includes("/dashboard/buy-credits")?"opacity-50 cursor-not-allowed":eA?"cursor-default":"hover:bg-gray-50",eA&&"pointer-events-none"),onClick:eg,disabled:M.includes("/dashboard/buy-credits"),children:[(0,a.jsx)("img",{src:"/assets/buycredits.png",alt:"Credits",className:"h-4 w-4 mr-2"}),"Buy Credits"]})]}),(0,a.jsxs)(w.rI,{children:[(0,a.jsx)(w.ty,{asChild:!0,children:(0,a.jsx)(d.Button,{variant:"ghost",className:"relative h-8 w-8 rounded-full focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",children:(0,a.jsxs)(j.eu,{className:"h-8 w-8 border border-blue-200",children:[(0,a.jsx)(j.BK,{src:null==Z?void 0:Z.image,alt:null==Z?void 0:Z.name}),(0,a.jsx)(j.q5,{className:"bg-gradient-to-r from-blue-600 to-cyan-500 text-white text-sm font-semibold",style:{textTransform:"uppercase"},children:(()=>{var e,t;if(!((null==Z?void 0:Z.authProvider)==="GOOGLE"||(null==Z?void 0:Z.image)&&Z.image.includes("googleusercontent.com")||(null==Z?void 0:Z.image)&&Z.image.includes("googleapis.com")))return(null==Z?void 0:null===(t=Z.name)||void 0===t?void 0:t.charAt(0).toUpperCase())||"U";{let t=(null==Z?void 0:null===(e=Z.name)||void 0===e?void 0:e.split(" "))||[];return 1===t.length?t[0].substring(0,2).toUpperCase():t.map(e=>e[0]).join("").toUpperCase()}})()})]})})}),(0,a.jsxs)(w.SQ,{className:"w-56 lg:block hidden",align:"end",children:[(0,a.jsx)(w.lp,{className:"font-normal",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none capitalize",children:null==Z?void 0:Z.name}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:null==Z?void 0:Z.email})]})}),(0,a.jsx)(w.mB,{}),(0,a.jsx)(w._2,{asChild:!0,className:"cursor-pointer",children:(0,a.jsxs)("a",{href:"/quick-peep",className:"flex items-center gap-2",onClick:()=>{ec("Quick",{destination:"/quick-peep",current_page:M,user_id:null==Z?void 0:Z.id,navigation_type:"avatar_dropdown"})},children:[(0,a.jsx)(g.A,{className:"mr-2 h-4 w-4"}
1),(0,a.jsx)("span",{children:"Quick Look"})]})}),(0,a.jsxs)(w._2,{className:"cursor-pointer",onClick:()=>O(),children:[(0,a.jsx)(b.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Invite Friends"})]}),(0,a.jsx)(w._2,{asChild:!0,className:"cursor-pointer",children:(0,a.jsxs)("a",{href:"/dashboard/leaderboard",className:"flex items-center gap-2",onClick:()=>{ec("Leaderboard",{destination:"/dashboard/leaderboard",current_page:M,user_id:null==Z?void 0:Z.id,navigation_type:"avatar_dropdown"})},children:[(0,a.jsx)(p.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Leaderboard"})]})}),(0,B.y8)(null==Z?void 0:Z.role)?(0,a.jsx)(w._2,{asChild:!0,className:"cursor-pointer",children:(0,a.jsxs)("a",{href:"/admin/cohorts",className:"flex items-center gap-2",children:[(0,a.jsx)(x.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:(null==Z?void 0:Z.role)==="host"?"Host portal":"Admin portal"})]})}):null,(0,a.jsx)(w._2,{asChild:!0,className:"cursor-pointer",children:(0,a.jsxs)("a",{href:"/dashboard/payments",className:"flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"mr-2 h-4 w-4",children:[(0,a.jsx)("img",{src:"/assets/payment-black.svg",alt:"Payments",className:"h-4 w-4 transition-all duration-200 group-hover:hidden"}),(0,a.jsx)("img",{src:"/assets/payments.svg",alt:"Payments",className:"h-4 w-4 hidden group-hover:block"})]}),(0,a.jsx)("span",{children:"My Payments"})]})}),(0,a.jsxs)(w._2,{onClick:()=>q(!0),className:"cursor-pointer",children:[(0,a.jsx)(v.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Log out"})]})]})]})]})})]})}),(0,a.jsxs)("header",{className:(0,o.cn)("sticky top-0 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 md:hidden",G?"z-30":"z-50"),children:["        ",(0,a.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",children:[(0,a.jsx)("div",{className:"flex items-center",children:e_?(0,a.jsx)("div",{className:"pointer-events-none flex cursor-default items-center gap-2",children:(0,a.jsx)(k.x,{})}):(0,a.jsx)(n(),{href:"/dashboard",className:"flex items-center gap-2 focus:outline-none focus-visible:outline-none",children:(0,a.jsx)(k.x,{})})}),(0,a.jsx)("div",{className:"flex items-center gap-2",children:!eC&&(0,a.jsxs)(a.Fragment,{children:[(!eb||en)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P.m,{className:"hover:bg-slate-100",iconClassName:"h-6 w-6 sm:h-7 sm:w-7"}),em?(0,a.jsxs)(d.Button,{variant:"outline",className:"bg-white border-gray-200 rounded-full text-black font-medium px-3 py-1.5 h-8 text-xs focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",disabled:!0,children:[(0,a.jsx)(f.A,{className:"h-3 w-3 mr-1 animate-spin"}),"Loading..."]}):(null==eu?void 0:eu.success)&&(null==eu?void 0:eu.data)?(0,a.jsxs)(d.Button,{variant:"outline",className:(0,o.cn)("bg-white border-gray-200 rounded-full text-black font-medium px-3 py-1.5 h-8 text-xs focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",M.includes("/dashboard/buy-credits")?"opacity-50 cursor-not-allowed":eA?"cursor-default":"hover:bg-gray-50",eA&&"pointer-events-none"),onClick:eg,disabled:M.includes("/dashboard/buy-credits"),children:[(0,a.jsx)("img",{src:"/assets/buycredits.png",alt:"Credits",className:"h-3 w-3 mr-1"}),null!==(E=eu.data.totalCredits)&&void 0!==E?E:0," Credits"]}):(0,a.jsxs)(d.Button,{variant:"outline",className:(0,o.cn)("bg-white border-gray-200 rounded-full text-black font-medium px-3 py-1.5 h-8 text-xs focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",M.includes("/dashboard/buy-credits")?"opacity-50 cursor-not-allowed":eA?"cursor-default":"hover:bg-gray-50",eA&&"pointer-events-none"),onClick:eg,disabled:M.includes("/dashboard/buy-credits"),children:[(0,a.jsx)("img",{src:"/assets/buycredits.png",alt:"Credits",className:"h-3 w-3 mr-1"}),"Buy Credits"]})]}),(0,a.jsx)("button",{onClick:()=>J(!G),className:"relative h-8 w-8 rounded-full focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0",children:(0,a.jsxs)(j.eu,{className:"h-8 w-8 border border-blue-200",children:[(0,a.jsx)(j.BK,{src:null==Z?void 0:Z.image,alt:null==Z?void 0:Z.name}),(0,a.jsx)(j.q5,{className:"bg-gradient-to-r from-blue-600 to-cyan-500 text-white text-sm font-semibold",style:{textTransform:"uppercase"},children:(()=>{var e,t;if(!((null==Z?void 0:Z.authProvider)==="GOOGLE"||(null==Z?void 0:Z.image)&&Z.image.includes("googleusercontent.com")||(null==Z?void 0:Z.image)&&Z.image.includes("googleapis.com")))return(null==Z?void 0:null===(t=Z.name)||void 0===t?void 0:t.charAt(0).toUpperCase())||"U";{let t=(null==Z?void 0:null===(e=Z.name)||void 0===e?void 0:e.split(" "))||[];return 1===t.length?t[0].substring(0,2).toUpperCase():t.map(e=>e[0]).join("").toUpperCase()}})()})]})})]})})]})]}),G&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/70 z-[55] md:hidden h-[100dvh]",onClick:()=>J(!1),onTouchMove:e=>e.preventDefault(),onWheel:e=>e.preventDefault()}),(0,a.jsx)("div",{className:"fixed inset-y-0 right-0 z-[60] flex h-[100dvh] w-full max-w-[20rem] flex-col bg-white shadow-lg md:hidden",onTouchMove:e=>e.preventDefault(),onWheel:e=>e.preventDefault(),children:(0,a.jsxs)("div",{className:"flex flex-col h-full min-h-0",children:[(0,a.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b bg-white p-4",children:(0,a.jsx)(k.x,{})}),!ek&&(0,a.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-4",children:(0,a.jsxs)("nav",{className:"flex flex-col gap-2",children:[eL.map(e=>{let t="companies"===e.id&&M.includes("valuate-idea")?"/dashboard/companies?tab=idea":e.href;return(0,a.jsxs)(n(),{href:t,onClick:()=>
1{if("companies"===e.id&&M.includes("valuate-idea"))try{sessionStorage.setItem("companiesTab","idea")}catch(e){}if(ec(e.label,{destination:t,current_page:M,user_id:null==Z?void 0:Z.id,navigation_type:"mobile_menu",device:"mobile"}),"valuations"!==e.id)try{sessionStorage.removeItem("lastViewedValuationStatus"),sessionStorage.removeItem("lastViewedValuationType")}catch(e){}J(!1)},className:(0,o.cn)("flex items-center px-3 py-3 text-sm font-medium rounded-md transition-colors",e.active?"bg-gradient-to-r from-blue-50 to-cyan-50 text-blue-700 border-l-2 border-blue-600":"hover:bg-accent hover:text-accent-foreground"),children:[e.icon,e.label,"sharedWithMe"===e.id?K>0?" (".concat(K,")"):"":"badgeCount"in e&&null!=e.badgeCount&&" (".concat(e.badgeCount,")")]},e.id)}),(0,a.jsxs)(n(),{href:A.w,onClick:()=>{ec("Invite Friends",{destination:A.w,current_page:M,user_id:null==Z?void 0:Z.id,navigation_type:"mobile_menu",device:"mobile"}),J(!1)},className:(0,o.cn)("flex items-center px-3 py-3 text-sm font-medium rounded-md transition-colors",M.includes(A.w)?"bg-gradient-to-r from-blue-50 to-cyan-50 text-blue-700 border-l-2 border-blue-600":"hover:bg-accent hover:text-accent-foreground"),children:[(0,a.jsx)(b.A,{className:"mr-2 h-4 w-4"}),"Invite Friends"]}),(0,a.jsxs)(n(),{href:"/dashboard/leaderboard",onClick:()=>{ec("Leaderboard",{destination:"/dashboard/leaderboard",current_page:M,user_id:null==Z?void 0:Z.id,navigation_type:"mobile_menu",device:"mobile"}),J(!1)},className:(0,o.cn)("flex items-center px-3 py-3 text-sm font-medium rounded-md transition-colors",M.includes("/dashboard/leaderboard")||"leaderboard"===U?"bg-gradient-to-r from-blue-50 to-cyan-50 text-blue-700 border-l-2 border-blue-600":"hover:bg-accent hover:text-accent-foreground"),children:[(0,a.jsx)(p.A,{className:"mr-2 h-4 w-4"}),"Leaderboard"]})]})}),(0,a.jsx)("div",{className:"mt-auto shrink-0 border-t bg-white p-4 pb-[max(1rem,env(safe-area-inset-bottom,0px))]",children:(0,a.jsxs)("div",{className:"bg-white border border-gray-200 rounded-lg p-4 shadow-sm",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 leading-none capitalize",children:null==Z?void 0:Z.name}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:null==Z?void 0:Z.email})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 pt-3 space-y-1",children:(0,a.jsxs)("button",{type:"button",onClick:()=>{J(!1),q(!0)},className:"flex items-center w-full px-3 py-2 text-sm font-medium text-gray-700 rounded-md transition-colors hover:bg-gray-50 cursor-pointer",children:[(0,a.jsx)(v.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Log out"})]})})]})})]})})]}),z&&(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/80",onClick:()=>q(!1)}),(0,a.jsx)("div",{className:"relative z-10 bg-white rounded-lg p-6 w-full max-w-lg mx-4",children:(0,a.jsxs)("div",{className:"text-left",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-black mb-2",children:"Logout"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mb-6",children:"Are you sure you want to logout?"}),(0,a.jsxs)("div",{className:"flex justify-end space-x-3",children:[(0,a.jsx)(d.Button,{onClick:()=>q(!1),variant:"outline",className:"bg-white text-black border border-gray-300 hover:bg-gray-50 px-8",children:"No"}),(0,a.jsx)(d.Button,{onClick:()=>{q(!1),$()},className:"bg-blue-600 text-white hover:bg-blue-700 px-8",children:"Yes"})]})]})})]}),Y&&(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/50",onClick:()=>D(!1)}),(0,a.jsx)("div",{className:"relative z-10 bg-white rounded-3xl p-8 w-full max-w-lg mx-4 shadow-xl",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"flex justify-center items-center mb-6 relative",children:(0,a.jsx)("img",{src:"/assets/Unlockcredits.svg",alt:"Credits",className:"h-25 w-25 relative z-10"})}),(null==eu?void 0:eu.success)&&(null===(e=eu.data)||void 0===e?void 0:e.totalCredits)==0&&(null===(t=eu.data)||void 0===t?void 0:t.totalPurchases)>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-black mb-3",children:"Oops! Out of credits"}),(0,a.jsxs)("p",{className:"text-base text-gray-600 mb-6",children:["You’ve used up all your credits. Add more to"," ",(0,a.jsx)("br",{className:"hidden md:block"}),"continue your journey."]})]}),(null==eu?void 0:eu.success)&&(null===(s=eu.data)||void 0===s?void 0:s.totalPurchases)==0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-black mb-3",children:"Unlock Valuation Experience!"}),(0,a.jsxs)("p",{className:"text-base text-gray-600 mb-6",children:["Add credits to explore AI autofill and cover ",(0,a.jsx)("br",{})," ","payments when needed."]})]}),!(null==eu?void 0:eu.success)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-black mb-3",children:"Unlock Valuation Experience!"}),(0,a.jsxs)("p",{className:"text-base text-gray-600 mb-6",children:["Add credits to explore AI autofill and cover ",(0,a.jsx)("br",{})," ","payments when needed."]})]}),(0,a.jsxs)("div",{className:"flex gap-3 justify-center",children:[(0,a.jsx)(d.Button,{onClick:()=>D(!1),variant:"outline",className:"bg-white border-gray-300 hover:bg-gray-50 text-black font-medium px-6 py-2 rounded-sm w-[140px]",children:"Not now"}),(0,a.jsx)(d.Button,{onClick:()=>{D(!1),eh()},className:"bg-gradient-to-r from-[#004EF9] to-[#26DFFE] text-white font-medium px-6 py-2 rounded-sm w-[140px]",children:"Proceed"})]})]})})]})]})}},75797:(e,t,s)=>{s.d(t,{Zb:()=>u,kw:()=>c,xF:()=>d});var a=s(50511),r=s(40568),n=s(25535),i=s(85564),o=s(61363);function l(e){return!!(e.startsWith("/valuate-idea")||e.startsWith("/career-valuation")||e.startsWith("/quick-peep")||e.startsWith("/hackathon-valuation")||e.startsWith("/founder-valuation")||e.startsWith("/valuate-business")||e.includes("/dashboard/valuations/new"))||"/dashboard/companies/new"===e||"/valuation-selection"===e||"/signup-valuation-selection"===e}function d(e){let{pathname:t,searchParams:s}=e;if(t.includes("/potential-score")||t.includes("/market-readiness/score")||t.includes("/market-readiness/result")||t.includes("/idea-results")||t.includes("/career-results")||t.includes("/startup-potential-results")||t.includes("/founder-results")||t.includes("/hackathon-valuation/potential-score")||function(){try{if((0,r.gj)()||(0,n.kg)()||"true"===sessionStorage.getItem("businessWelcomeBonusFullAccess")||"true"===sessionStorage.getItem("growthReadinessWelcomeBonusFullAccess")||"true"===sessionStorage.getItem("careerWelcomeBonusFullAccess")||"true"===sessionStorage.getItem("ideaWelcomeBonusFullAccess"))return!0}catch(e){}return!1}()||function(e){if(!e)return!1;if("true"===e.get("fromDashboard")||"true"===e.get("fromCompanies")||"true"===e.get("fromValuationsPage")||"true"===e.get("fromSelectCompany"))return!0;
1if("true"===e.get("fromSelectCareer")||"true"===e.get("fromSelectIdea"))return"true"!==e.get(o.eF);if("true"===e.get("fromSelectMarketReadiness"))return!0;try{if("true"===sessionStorage.getItem("fromDashboard")||"true"===sessionStorage.getItem("fromValuationsPage"))return!0}catch(e){}return!1}(s))return!1;if((0,a.kv)({pathname:t,searchParams:s})||(0,i._G)({pathname:t,searchParams:s}))return!0;let d=(null==s?void 0:s.get(o.eF))==="true",c=(null==s?void 0:s.get("fromNewValuation"))==="true";return!!(d&&l(t)||function(){try{return"true"===sessionStorage.getItem("fromSignupYes")||"true"===sessionStorage.getItem("fromFocusSelection")||"true"===sessionStorage.getItem("fromValuationSelection")||"true"===sessionStorage.getItem(o.qF)}catch(e){return!1}}()&&l(t)&&(d||c))}function c(){try{sessionStorage.setItem("careerWelcomeBonusFullAccess","true")}catch(e){}}function u(){try{sessionStorage.setItem("ideaWelcomeBonusFullAccess","true")}catch(e){}}},85505:(e,t,s)=>{s.d(t,{M:()=>c});var a=s(4118),r=s(78870),n=s(78967),i=s(15019),o=s(34916),l=s(45401),d=s(12799);function c(){let{user:e,logout:t}=(0,d.J)(),[s,c]=(0,r.useState)(!1);return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(l.rI,{children:[(0,a.jsx)(l.ty,{asChild:!0,children:(0,a.jsx)(o.Button,{variant:"ghost",className:"relative h-10 w-10 rounded-full focus:outline-none focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0","aria-label":"Open profile menu",children:(0,a.jsxs)(i.eu,{className:"h-10 w-10 border border-blue-200",children:[(0,a.jsx)(i.BK,{src:e.image,alt:e.name}),(0,a.jsx)(i.q5,{className:"bg-gradient-to-r from-blue-600 to-cyan-500 text-sm font-semibold text-white",style:{textTransform:"uppercase"},children:function(e){var t,s,a;if(!(null==e?void 0:null===(t=e.name)||void 0===t?void 0:t.trim()))return"U";let r="GOOGLE"===e.authProvider||(null===(s=e.image)||void 0===s?void 0:s.includes("googleusercontent.com"))||(null===(a=e.image)||void 0===a?void 0:a.includes("googleapis.com")),n=e.name.trim().split(/\s+/).filter(Boolean);return r?1===n.length?n[0].substring(0,2).toUpperCase():n.map(e=>e[0]).join("").toUpperCase():e.name.charAt(0).toUpperCase()}(e)})]})})}),(0,a.jsxs)(l.SQ,{className:"w-56",align:"end",children:[(0,a.jsx)(l.lp,{className:"font-normal",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none capitalize",children:e.name}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:e.email})]})}),(0,a.jsx)(l.mB,{}),(0,a.jsxs)(l._2,{className:"cursor-pointer",onClick:()=>c(!0),children:[(0,a.jsx)(n.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:"Log out"})]})]})]}),s&&(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/80",onClick:()=>c(!1)}),(0,a.jsxs)("div",{className:"relative z-10 mx-4 w-full max-w-lg rounded-lg bg-white p-6",children:[(0,a.jsx)("h3",{className:"mb-2 text-lg font-semibold text-black",children:"Logout"}),(0,a.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Are you sure you want to logout?"}),(0,a.jsxs)("div",{className:"flex justify-end space-x-3",children:[(0,a.jsx)(o.Button,{onClick:()=>c(!1),variant:"outline",className:"border border-gray-300 bg-white px-8 text-black hover:bg-gray-50",children:"No"}),(0,a.jsx)(o.Button,{onClick:()=>{c(!1),t()},className:"bg-blue-600 px-8 text-white hover:bg-blue-700",children:"Yes"})]})]})]})]}):null}},85564:(e,t,s)=>{s.d(t,{Dw:()=>d,IJ:()=>n,Kn:()=>r,Lh:()=>u,Uw:()=>m,W5:()=>c,_G:()=>f,dr:()=>o,gT:()=>l,pK:()=>g});var a=s(61363);let r=["Idea Stage","Prototype","MVP","Beta","Live Product"];function n(e){var t;if(null==e||"string"!=typeof e)return"";let s=e.trim();return s?r.includes(s)?s:null!==(t=({"idea stage":"Idea Stage","mvp built":"MVP","beta product":"Beta","live product":"Live Product",prototype:"Prototype",mvp:"MVP",beta:"Beta"})[s.toLowerCase()])&&void 0!==t?t:s:""}let i=["/assets/search-normal.svg","/assets/element-plus.svg","/assets/code.svg"];function o(e){var t;return null!==(t=i[e])&&void 0!==t?t:"/assets/element-plus.svg"}let l=["No customers yet","Early testers","Few Paying customers","Growing customer base"],d=["No compliance required for this product","Compliance in progress","Compliance required but not implemented yet","Compliance already implemented"],c=["No analytics tools yet","Basic analytics tools implemented","Advanced analytics and tracking setup"],u=["Solo foun
1der handling support","Small team providing customer support","Dedicated customer support team","Customer support planned but not set up yet"];function m(e,t){return(0,a.cn)("inline-flex w-fit max-w-full min-w-0 shrink-0 items-center gap-3 rounded-lg border bg-white px-4 py-3 text-left cursor-pointer transition-colors [&>span]:min-w-0 [&>span]:max-w-full [&>span]:break-words",t?"cebos"===e?"border-2 border-[#5c3a8f] bg-white":"border-2 border-[#004ef9] bg-white":"border-gray-200 hover:border-gray-300")}let h="growthReadinessWelcomeBonusFullAccess";function g(){try{sessionStorage.setItem(h,"true")}catch(e){}}function f(e){let{pathname:t,searchParams:s}=e;if(!t.includes("/dashboard/valuations/new/market-readiness")||t.includes("/market-readiness/score")||t.includes("/market-readiness/result")||function(){try{return"true"===sessionStorage.getItem(h)}catch(e){return!1}}())return!1;let r=(null==s?void 0:s.get("fromDashboard"))==="true"||"true"===sessionStorage.getItem("fromDashboard"),n=(null==s?void 0:s.get("fromCompanies"))==="true",i=(null==s?void 0:s.get("fromSelectMarketReadiness"))==="true";if(r||n||i)return!1;let o=(null==s?void 0:s.get(a.eF))==="true",l="true"===sessionStorage.getItem("fromSignupYes")||"true"===sessionStorage.getItem("fromFocusSelection")||"true"===sessionStorage.getItem("fromValuationSelection")||"true"===sessionStorage.getItem(a.qF);return o||l}}}]);

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.