PageSourceSearch

https://my.liminary.io/_next/static/chunks/7467.9f645a994fdec65c.js

js liminary.io collected 2026-09-24 12:01:02 UTC 20,785 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72a7e7bf-4190-4b87-a1d2-64ba03c4e66b",e._sentryDebugIdIdentifier="sentry-dbid-72a7e7bf-4190-4b87-a1d2-64ba03c4e66b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7467,8211],{3372:(e,t,r)=>{r.d(t,{s:()=>i});var a=r(74092),s=r(78042),n=r(82451);function i(e){let[t,r]=(0,a.useState)({phase:"idle"});return(0,a.useEffect)(()=>{if(!e)return void r({phase:"idle"});r({phase:"connecting"});let t=new EventSource("".concat((0,n.$_)()).concat(s.Yd.ReportStatus(e)));return t.onmessage=e=>{try{let a=JSON.parse(e.data);"completed"===a.status?(r({phase:"completed",data:a}),t.close()):"failed"===a.status?(r({phase:"failed",data:a}),t.close()):r({phase:"polling",data:a})}catch(e){r({phase:"error",error:"Failed to parse status update"}),t.close()}},t.onerror=()=>{r({phase:"error",error:"Failed to check report status"}),t.close()},()=>{t.close()}},[e]),t}},4858:(e,t,r)=>{r.d(t,{aD:()=>a,hs:()=>n,iI:()=>s});let a={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function s(e){if(e.startsWith("below-")){let t=e.slice(6);return"(max-width: ".concat(a[t]-1,"px)")}return"(min-width: ".concat(a[e],"px)")}function n(e){var t;return((t=e).startsWith("below-")?t.slice(6)in a:t in a)?s(e):e}},8211:(e,t,r)=>
1{r.r(t),r.d(t,{SquiggleBackground:()=>o});var a=r(41527),s=r(74092),n=r(13797);function i(e){switch(e){case"curve":return 0;case"line":return 1;case"circle":return 2}}let l=[[128,187,235],[128,187,235],[128,187,235],[188,217,250],[188,217,250],[253,202,173],[253,202,173],[253,202,173],[253,202,173],[188,217,250],[188,217,250],[128,187,235],[128,187,235],[128,187,235]];function o(e){let{animationState:t="curve"}=e,r=(0,s.useRef)(null),o=(0,s.useRef)(null),c=(0,s.useRef)(i(t));return(0,s.useEffect)(()=>{c.current=i(t)},[t]),(0,s.useEffect)(()=>{if(r.current)return o.current=new n.A(e=>{let t=0,a=0;e.setup=()=>{e.createCanvas(e.windowWidth,e.windowHeight).parent(r.current),e.pixelDensity(2),e.frameRate(60),e._handleMotion=()=>{}},e.windowResized=()=>{e.resizeCanvas(e.windowWidth,e.windowHeight)},e.draw=()=>{var r;let s=c.current;e.background(250,248,246),e.noStroke(),t!==s&&(a+=.03)>=1&&(a=0,t=s);let n=(r=a)<.5?4*r*r*r:1-Math.pow(-2*r+2,3)/2,i=e.width/2,o=e.height/2,d=Math.min(e.width/380,e.height/500),u=.008*e.frameCount,m=.003*e.frameCount%1,p=0===t&&0===s?1:0===t||0===s?1-n:.1,x=40*Math.sin(u)*d*p,h=35*Math.sin(1.3*u+1)*d*p,f=45*Math.sin(.9*u+2)*d*p,g=30*Math.sin(1.1*u+3)*d*p,w=35*Math.cos(.8*u)*d*p,y=40*Math.cos(1.2*u+1.5)*d*p,b=500*d,v=200*d,j=.5523*v,N=[[[i+(40+x)*d,o+-320*d,i+(120+h)*d,o+-300*d,i+(80+f)*d,o+-200*d,i+(-60+x)*d,o+-160*d],[i+(-60+x)*d,o+-160*d,i+(-200+g)*d,o+-120*d,i+(-180+w)*d,o+-20*d,i+(-40+h)*d,o+0*d],[i+(-40+h)*d,o+0*d,i+(100+y)*d,o+20*d,i+(120+f)*d,o+120*d,i+(-20+g)*d,o+160*d],[i+(-20+g)*d,o+160*d,i+(-160+w)*d,o+200*d,i+(-120+x)*d,o+300*d,i+(0+y)*d,o+340*d]],[[i-.5*b,o,i-.35*b,o,i-.3*b,o,i-.25*b,o],[i-.25*b,o,i-.15*b,o,i-.05*b,o,i,o],[i,o,i+.1*b,o,i+.2*b,o,i+.25*b,o],[i+.25*b,o,i+.35*b,o,i+.45*b,o,i+.5*b,o]],[[i,o-v,i+j,o-v,i+v,o-j,i+v,o],[i+v,o,i+v,o+j,i+j,o+v,i,o+v],[i,o+v,i-j,o+v,i-v,o+j,i-v,o],[i-v,o,i-v,o-j,i-j,o-v,i,o-v]]],k=N[t],C=N[s],S=k.map((t,r)=>{let a=C[r];return t.map((t,r)=>e.lerp(t,a[r],n))}),E=200*d,P=300/S.length,R=e.drawingContext;for(let t=0;t<300;t++){let r=Math.floor(t/P),a=t%P/P;if(r>=S.length)continue;let s=S[r],n=e.bezierPoint(s[0],s[2],s[4],s[6],a),i=e.bezierPoint(s[1],s[3],s[5],s[7],a),[o,c,d]=function(e,t){var r,a,s;let n=Math.max(0,Math.min(1,t));if(1===e.length)return e[0];let i=n*(e.length-1),l=Math.floor(i);return l>=e.length-1?e[e.length-1]:(r=e[l],a=e[l+1],s=i-l,[r[0]+(a[0]-r[0])*s,r[1]+(a[1]-r[1])*s,r[2]+(a[2]-r[2])*s])}(l,(t/300+m)%1),u=E/2,p=R.createLinearGradient(n-u,i-u,n+u,i+u);p.addColorStop(0,"rgb(".concat(o,", ").concat(c,", ").concat(d,")")),p.addColorStop(1,"rgb(".concat(.85*o,", ").concat(.85*c,", ").concat(.85*d,")")),R.fillStyle=p,e.ellipse(n,i,E,E)}}}),()=>{o.current&&(o.current.remove(),o.current=null)}},[]),(0,a.jsx)("div",{ref:r,className:"absolute inset-0 overflow-hidden",style:{zIndex:0}
1,"data-sentry-component":"SquiggleBackground","data-sentry-source-file":"SquiggleBackground.tsx"})}},8892:(e,t,r)=>{r.d(t,{sanitizeHtml:()=>s,sanitizeHtmlWithConfig:()=>n});var a=r(6087);function s(e){if(!e||"string"!=typeof e)return"";let t=a.A.sanitize(e);return"string"==typeof t?t:""}function n(e,t){if(!e||"string"!=typeof e)return"";let r=a.A.sanitize(e,t);return"string"==typeof r?r:""}},17131:(e,t,r)=>{r.d(t,{s:()=>n});var a=r(62877),s=r(88451);let n=()=>{let{userProfile:e,isAuthenticated:t,isLoadingSession:r}=(0,s.w)(),n=(0,a.jE)();return{userProfile:null!=e?e:void 0,isLoading:r,isSuccess:t,isPending:r,setUserProfileData:e=>{n.setQueryData(s.u,e)}}}},19100:(e,t,r)=>{r.d(t,{Q:()=>n});var a=r(4858),s=r(24369);let n=()=>{let e=(0,s.U)("only screen and (max-width: ".concat(a.aD.sm-1,"px)")),t=(0,s.U)("only screen and (min-width: ".concat(a.aD.sm,"px) and (max-width: ").concat(a.aD.md-1,"px)")),r=(0,s.U)("only screen and (min-width: ".concat(a.aD.md,"px) and (max-width: ").concat(a.aD.lg-1,"px)")),n=(0,s.U)("only screen and (min-width: ".concat(a.aD.lg,"px)"));return{isSmallScreen:e,isMediumScreen:t,isLargeScreen:r,isExtraLargeScreen:n,isMobile:e,isTablet:t,isDesktop:r||n}}},24369:(e,t,r)=>{r.d(t,{U:()=>n,X:()=>i});var a=r(74092),s=r(4858);function n(e){let t=(0,a.useCallback)(t=>{let r=window.matchMedia(e);return r.addEventListener("change",t),()=>r.removeEventListener("change",t)},[e]);return(0,a.useSyncExternalStore)(t,()=>window.matchMedia(e).matches,()=>!1)}function i(e){return n((0,s.iI)(e))}},31842:(e,t,r)=>{r.d(t,{DT:()=>d,hD:()=>u,iV:()=>m,ov:()=>c});var a=r(52091),s=r(41281),n=r(78042),i=r(82451);let l=s.Yj().trim().min(1,"Please enter your email").transform(e=>e.toLowerCase()).pipe(s.Yj().email("Please enter a valid email address").max(254,"Email is too long")),o=s.Yj().trim().min(1,"Please enter a website URL").max(2048,"URL is too long").transform(e=>/^https?:\/\//i.test(e)?e:"https://".concat(e)).pipe(s.Yj().refine(e=>{try{return new URL(e),!0}catch(e){return!1}},{message:"Please enter a valid website address"}).refine(e=>["http:","https:"].includes(new URL(e).protocol),{message:"URL must be http or https"}).refine(e=>new URL(e).hostname.length>=2,{message:"Please enter a valid website address"}).refine(e=>new URL(e).hostname.includes("."),{message:"Please enter a valid website address (e.g. notion.com)"}).transform(e=>new URL(e).toString()));function c(e){var t;let r=o.safeParse(e);if(r.success)return{ok:!0,url:r.data};let a=null==(t=r.error.issues[0])?void 0:t.message;return{ok:!1,error:"string"==typeof a?a:"Please enter a valid website address"}}function d(e){var t;let r=l.safeParse(e);if(r.success)return{ok:!0,email:r.data};let a=null==(t=r.error.issues[0])?void 0:t.message;return{ok:!1,error:"string"==typeof a?a:"Please enter a valid email address"}}class u extends Error{constructor(e,t){super(e),this.name="ApiError",this.status=t}}function m(){return(0,a.n)({mutationFn:async e=>{let t=function(e){let t=c(e.url),r=d(e.email);if(t.ok&&r.ok)return{ok:!0,url:t.url,email:r.email};let a={};return t.ok||(a.url=t.error),r.ok||(a.email=r.error),{ok:!1,errors:a}}(e);if(!t.ok){var r,a;throw Error(null!=(a=null!=(r=t.errors.url)?r:t.errors.email)?a:"Validation failed")}let s={report_type:"brand_strategy",url:t.url,email:t.email};e.collectionId&&(s.collection_id=e.collectionId);let l={"Content-Type":"application/json"};e.accessToken&&(l.Authorization="Bearer ".concat(e.accessToken));let o=await fetch("".concat((0,i.$_)()).concat(n.Yd.Reports),{method:"POST",headers:l,credentials:"include",body:JSON.stringify(s)});if(!o.ok)throw new u("Failed to generate report",o.status);let m=await o.json();return{jobId:m.job_id,message:m.message}}})}},87467:(e,t,r)=>{r.r(t),r.d(t,{BrandReportFlow:()=>E});var a=r(41527),s=r(74092),n=r(54123),i=r(1123),l=r(32632),o=r(26960),c=r.n(o),d=r(88451),u=r(17131),m=r(78042),p=r(31842),x=r(3372),h=r(60663),f=r(607),g=r(19100),w=r(96876);function y(e){let{className:t,value:r,onChange:n,onSubmit:i,onClearError:l,disabled:o=!1,error:c}=e,{isSmallScreen:d}=(0,g.Q)(),[u,m]=(0,s.useState)(""),p=null!=r?r:u;return(0,a.jsxs)("div",{className:(0,w.cn)("flex flex-col items-center gap-2",t),"data-sentry-component":"BrandReportSearchInput","data-sentry-source-file":"BrandReportSearchInput.tsx",children:[(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let t=p.trim();t&&!o&&(null==i||i(t))},action:"#",className:"flex w-full flex-col items-center gap-2",children:(0,a.jsxs)("div",{className:(0,w.cn)("flex w-[360px] items-center gap-4 roun
1ded-[52px] border bg-white px-8 py-5 sm:h-[77px] sm:w-[584px]",c?"border-[#D65C45]":"border-[rgba(0,0,0,0.078)]",o&&"opacity-50"),children:[(0,a.jsx)("button",{type:"submit",disabled:!p.trim()||o,className:"shrink-0 transition-opacity hover:opacity-70 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"Submit search",children:(0,a.jsx)(h.$,{size:20,className:"text-[#2C2C2C]","data-sentry-element":"MagnifyingGlassIcon","data-sentry-source-file":"BrandReportSearchInput.tsx"})}),(0,a.jsx)("div",{className:"h-8 w-px bg-[#2C2C2C]/25"}),(0,a.jsx)("input",{type:"text",inputMode:"url",required:!0,value:p,onChange:e=>{var t;return t=e.target.value,void(void 0===r&&m(t),null==l||l(),null==n||n(t))},placeholder:d?"Paste a company website":"Paste a company website (e.g., notion.com)",disabled:o,autoFocus:!0,"aria-invalid":!!c,"aria-describedby":c?"brand-report-url-error":void 0,className:"flex-1 bg-transparent text-base font-medium leading-[1.3] tracking-[-0.375px] text-[#2C2C2C] outline-none placeholder:text-[#2C2C2C]/60 disabled:cursor-not-allowed sm:text-[22px]"})]})}),c&&(0,a.jsxs)("div",{id:"brand-report-url-error",className:"flex w-full items-center gap-2 text-sm text-[#D65C45] sm:w-[584px]",role:"alert",children:[(0,a.jsx)(f.i,{size:16,weight:"fill",className:"shrink-0"}),(0,a.jsx)("p",{children:c})]})]})}var b=r(34300),v=r(83639),j=r(93969),N=r(31134),k=r(88321);function C(e){let{className:t,url:r,displayUrl:o,reportStatus:d,onReset:u,onViewReport:x,onJobCreated:h,isAuthenticated:g,accessToken:y,userEmail:C}
1=e,[S,E]=(0,s.useState)(null!=C?C:""),[P,R]=(0,s.useState)(null),_=(0,s.useRef)(null),z=(0,p.iV)();(0,s.useEffect)(()=>{!C||z.isPending||z.isSuccess||E(C)},[C,z.isPending,z.isSuccess]),(0,s.useEffect)(()=>{if(z.isError){var e;null==(e=_.current)||e.select()}},[z.isError]);let D=!S.trim()||z.isPending||z.isSuccess,I=z.isPending||z.isSuccess,B=z.isSuccess&&"completed"!==d.phase&&"failed"!==d.phase&&"error"!==d.phase,L="completed"===d.phase,M="failed"===d.phase||"error"===d.phase,F=z.isError,U=z.error instanceof p.hD&&401===z.error.status;return(0,a.jsxs)("div",{className:(0,w.cn)("flex w-[496px] max-w-full flex-col items-center justify-center gap-[25px] rounded-2xl bg-white px-4 pb-8 pt-4",t),"data-sentry-component":"EmailNotificationCard","data-sentry-source-file":"EmailNotificationCard.tsx",children:[(0,a.jsx)("div",{className:"aspect-[496/272] w-full overflow-hidden rounded-lg",children:(0,a.jsx)(l.default,{src:"/images/brand-report/report-illustration-large.jpg",alt:"Report preview",width:496,height:272,className:"h-full w-full object-cover","data-sentry-element":"Image","data-sentry-source-file":"EmailNotificationCard.tsx"})}),L?(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,a.jsx)("h2",{className:"text-center text-[28px] font-semibold leading-[1.3] tracking-[-0.75px] text-[#335742]",children:d.data.message||"Your report is ready"}),(0,a.jsx)("p",{className:"px-4 text-center text-[15px] leading-[1.3] tracking-[-0.375px] text-[#335742]",children:"Click the link below to view your report."})]}),(0,a.jsx)("button",{onClick:x,className:"flex h-[50px] w-full items-center justify-center gap-2 rounded-xl bg-[#80BBEB] px-8 text-lg font-semibold text-white transition-opacity hover:opacity-90",children:"View report"})]}):(0,a.jsxs)(a.Fragment,{children:[!M&&(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,a.jsx)("h2",{className:"text-center text-[28px] font-semibold leading-[1.3] tracking-[-0.75px] text-[#335742]",children:"Your report is being generated"}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-center gap-2 px-4",children:[(0,a.jsx)(b.p,{size:20,weight:"fill",className:"shrink-0 text-[#335742]"}),(0,a.jsx)("p",{className:"text-[15px] leading-[1.3] tracking-[-0.375px] text-[#335742]",children:"We'll email you when it's ready (usually under 5 minutes)."})]})]}),M&&(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[#D65C45]",children:[(0,a.jsx)(f.i,{size:20,weight:"fill",className:"shrink-0"}),(0,a.jsx)("p",{className:"text-[15px] leading-[1.3] tracking-[-0.375px]",children:"Something went wrong while trying to compile your report on ".concat(o,". Please try again later.")})]}),(0,a.jsx)("button",{onClick:u,className:"flex h-[50px] w-3/4 items-center justify-center gap-2 rounded-lg bg-[#80BBEB] px-8 text-lg font-semibold text-white transition-opacity hover:opacity-90",children:"Try again"})]}),B&&(0,a.jsx)("div",{className:"flex w-full items-center justify-center py-2",children:(0,a.jsx)(k.a,{message:"polling"===d.phase?d.data.message:void 0})}),!B&&!M&&(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),R(null);let t=(0,p.DT)(S);if(!t.ok)return void R(t.error);z.mutate({url:r,email:t.email,accessToken:null!=y?y:void 0},{onSuccess:e=>{(0,n.sendGAEvent)("event","brand_report_email_submitted",{page:"try",url:r}),h(e.jobId)}})},action:"#",className:"relative flex w-full flex-col gap-2",children:[(0,a.jsxs)("div",{className:(0,w.cn)("relative h-[62px] w-full overflow-hidden rounded-[52px] border bg-[#FAF8F6]",P||F?"border-[#D65C45]":"border-[rgba(0,0,0,0.078)]"),children:[(0,a.jsx)("div",{className:"absolute left-[34.5px] top-1/2 h-[25px] w-px -translate-y-1/2 bg-[#2C2C2C]/25"}),(0,a.jsx)("input",{ref:_,type:"email",value:S,onChange:e=>{E(e.target.value),R(null),z.isError&&z.reset()},placeholder:"Enter your email",disabled:I,readOnly:g&&!!C,autoFocus:!g,"aria-invalid":!!P||F,"aria-describedby":P||F?"brand-report-email-error":void 0,className:(0,w.cn)("h-full w-full bg-transparent pl-[43.5px] pr-[60px] text-lg font-medium leading-[1.3] tracking-[-0.375px] text-[#2C2C2C] outline-none placeholder:text-[#2C2C2C]/60 disabled:opacity-50",g&&C&&"cursor-default select-none opacity-70")}),(0,a.jsx)("button",{type:"submit",disabled:D,className:(0,w.cn)("absolute right-[14.5px] top-1/2 -translate-y-1/2 roun
1ded-full bg-[#80BBEB] p-2 transition-opacity",D&&"opacity-50"),children:z.isPending?(0,a.jsx)(i.P.div,{className:"flex items-center justify-center",animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},children:(0,a.jsx)(v.E,{size:20,weight:"bold",className:"text-white"})}):z.isSuccess?(0,a.jsx)(j.S,{size:20,weight:"bold",className:"text-white"}):(0,a.jsx)(N.f,{size:20,weight:"bold",className:"text-white"})})]}),P&&(0,a.jsxs)("div",{id:"brand-report-email-error",className:"flex items-center gap-2 text-sm text-[#D65C45]",role:"alert",children:[(0,a.jsx)(f.i,{size:16,weight:"fill",className:"shrink-0"}),(0,a.jsx)("p",{children:P})]}),F&&!P&&(0,a.jsxs)("div",{id:"brand-report-email-error",className:"flex items-center justify-center gap-2 text-sm text-[#D65C45]",role:"alert",children:[(0,a.jsx)(f.i,{size:16,weight:"fill",className:"shrink-0"}),U&&g?(0,a.jsx)("p",{children:"Your session may have expired. Please refresh the page and try again."}):U?(0,a.jsxs)("p",{children:["This email is already tied to an account."," ",(0,a.jsx)(c(),{href:m.bw.LOGIN,className:"font-semibold underline",children:"Log in"})," ","to generate a report."]}):(0,a.jsxs)("p",{children:["Something went wrong initiating your report. ",(0,a.jsx)("br",{}),"Please try again with a different email."]})]})]})]})]})}var S=r(8211);function E(){let{isAuthenticated:e}=(0,d.w)(),{userProfile:t}
1=(0,u.s)(),[r,o]=(0,s.useState)(null),[h,f]=(0,s.useState)(null),[g,w]=(0,s.useState)(null),[b,v]=(0,s.useState)(null),j=(0,x.s)(b),N="completed"===j.phase?j.data.url:null;(0,s.useEffect)(()=>{(0,n.sendGAEvent)("event","brand_report_page_viewed",{page:"try"})},[]);let k=h?"analyzing":"idle";return(0,a.jsxs)("main",{className:"relative flex h-screen flex-col overflow-hidden","data-sentry-component":"BrandReportFlow","data-sentry-source-file":"BrandReportFlow.tsx",children:[(0,a.jsx)(S.SquiggleBackground,{animationState:"idle"===k?"curve":"circle","data-sentry-element":"SquiggleBackground","data-sentry-source-file":"BrandReportFlow.tsx"}),(0,a.jsx)("div",{className:"absolute left-6 top-6 z-20 xl:left-9 xl:top-8",children:(0,a.jsx)(c(),{href:m.bw.HOME,"data-sentry-element":"Link","data-sentry-source-file":"BrandReportFlow.tsx",children:(0,a.jsx)(l.default,{src:"/images/liminary-logo.svg",alt:"Liminary",width:m.zV,height:m.A5,className:"h-auto w-auto",priority:!0,"data-sentry-element":"Image","data-sentry-source-file":"BrandReportFlow.tsx"})})}),(0,a.jsx)("header",{className:"relative z-20 flex shrink-0 justify-end px-6 pt-6 xl:px-9 xl:pt-8",children:(0,a.jsx)("nav",{className:"flex items-center gap-2",children:e?(0,a.jsx)(c(),{href:m.bw.HOME,className:"flex h-10 items-center rounded-xl bg-primary-cta px-3.5 text-sm font-semibold tracking-normal text-white transition-colors hover:bg-primary-cta/90",children:"Home"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c(),{href:m.bw.LOGIN,className:"flex h-10 items-center rounded-xl px-3.5 text-sm font-semibold tracking-normal text-on-surface transition-colors hover:bg-surface-hover",children:"Log in"}),(0,a.jsx)(c(),{href:"".concat(m.bw.SIGNUP,"?ref=try"),className:"flex h-10 items-center rounded-xl bg-primary-cta px-3.5 text-sm font-semibold tracking-normal text-white transition-colors hover:bg-primary-cta/90",children:"Sign up"})]})})}),"idle"===k&&(0,a.jsxs)("section",{className:"relative z-10 mb-10 flex flex-1 flex-col items-center justify-center px-4 text-center sm:mb-20",children:[(0,a.jsx)("h1",{className:"max-w-[633px] text-[36px] font-extrabold leading-[0.95] tracking-[-1.75px] text-[#5A4235] sm:text-[52px] lg:text-[68px]",children:"Client research in minutes, not weeks"}),(0,a.jsx)("p",{className:"mt-4 max-w-[741px] text-base font-semibold leading-[1.4] tracking-[-0.4px] text-[#5A4235] sm:mt-6 sm:text-lg lg:text-[22px]",children:"Paste any company's website and get a structured analysis—leadership, positioning, competitive landscape, and strategic recommendations."}),(0,a.jsx)(y,{className:"mt-6 sm:mt-12",onSubmit:e=>{w(null);let t=(0,p.ov)(e);if(!t.ok)return void w(t.error);(0,n.sendGAEvent)("event","brand_report_url_submitted",{page:"try",url:t.url}),o(e),f(t.url)},onClearError:()=>w(null),error:null!=g?g:void 0})]}),"analyzing"===k&&h&&(0,a.jsx)(i.P.section,{className:"relative z-10 flex flex-1 items-center justify-center px-4",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.3,ease:"easeOut"},children:(0,a.jsx)(C,{url:h,displayUrl:r,reportStatus:j,onReset:()=>{o(null),f(null),w(null),v(null)},onViewReport:()=>{N&&(window.location.href=N)},onJobCreated:v,isAuthenticated:e,accessToken:null,userEmail:null==t?void 0:t.email})})]})}},88451:(e,t,r)=>{r.d(t,{u:()=>c,w:()=>d});var a=r(79575),s=r(62877),n=r(85296),i=r(91829),l=r(78042),o=r(82451);let c=["session"],d=()=>{let e=(0,i.useRouter)(),t=(0,s.jE)(),{data:r,isLoading:d}=(0,n.I)({queryKey:c,queryFn:async()=>{let e={},{access_token:t}=await (0,o.W1)();t&&(e.Authorization="Bearer ".concat(t));let r=await fetch("".concat((0,o.$_)(),"/api/users/me"),{headers:e,credentials:"include"});return r.ok?r.json():null},gcTime:0,staleTime:5e3,retry:!1});return{userProfile:null!=r?r:null,isAuthenticated:!!r,isLoadingSession:d,mutateSession:()=>{t.invalidateQueries({queryKey:["session"]})},logOut:async()=>{try{await (0,o.Yj)();try{await fetch("".concat((0,o.$_)(),"/api/v2/auth/logout"),{method:"POST",credentials:"include"})}catch(e){}(0,a.I9)(),localStorage.setItem("force_account_selection","true"),(0,o.Ci)({message:l.X_.LOGOUT}).catch(()=>{}),await t.invalidateQueries({queryKey:["session"]}
1),e.push(l.bw.LOGIN)}catch(t){console.error("Logout failed:",t instanceof Error&&!t.message.includes("token")?t:Error("Logout operation failed")),e.push(l.bw.LOGIN)}}}}},96876:(e,t,r)=>{r.d(t,{cn:()=>i,p:()=>n.sanitizeHtml});var a=r(23477),s=r(89232),n=r(8892);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.