PageSourceSearch

https://www.geolity.ai/_next/static/chunks/0xsj9~.esevgc.js

js geolity.ai collected 2026-10-05 12:00:46 UTC 32,687 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,946752,e=>{"use strict";function t(e){let t=e.trim();return t?/^https?:\/\//i.test(t)?t:`https://${t}`:""}function a(e){return null!==function(e){let a=t(e);if(!a)return null;try{let e,t=new URL(a),r=t.hostname.toLowerCase();if(!["http:","https:"].includes(t.protocol)||(e=r.toLowerCase(),!("localhost"===e||!(!e||e.length>253||!e.includes(".")||e.includes("..")||/[\s%+:_]/.test(e))&&e.split(".").every(e=>/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(e)))))return null;return r.replace(/^www\./i,"")}catch{return null}}(e)}e.s(["WEBSITE_URL_ERROR_MESSAGE",0,"Please enter a valid website URL, e.g. yourbrand.com","deriveBrandNameFromWebsite",0,function(e){let a=t(e);if(!a)return"";try{let e=new URL(a).hostname.toLowerCase();e.startsWith("www.")&&(e=e.slice(4));let t=e.split(".")[0]??"";return t?t.charAt(0).toUpperCase()+t.slice(1):""}catch{return""}},"isLikelyPublicWebsiteUrl",0,a,"normalizeWebsiteUrl",0,t,"resolveBrandUrlIntent",0,function(e){let r=e?.trim()??"";if(!r)return{kind:"none"};let n=t(r);return a(n)?{kind:"url",brandUrl:n}:{kind:"keyword",keyword:r}},"resolveWorkspaceEntryView",0,function({envMode:e,search:t,showSetupFlow:a}){let r=new URLSearchParams(t);return r.has("flow")||r.has("brandUrl")||r.has("generating")||r.has("reportId")||"1"===r.get("autoGenerate")?"onboarding":"dashboard"===e?"dashboard":"onboarding"===e||a?"onboarding":"dashboard"}])},772986,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(174080);e.s(["ContactUsPopover",0,function(e){let n=e.initialEmail??"",l=e.triggerClassName??"flex h-[28px] cursor-pointer items-center justify-center rounded-full border border-white bg-transparent px-4 text-[14px] text-white transition-colors hover:bg-white hover:text-black",o=(0,a.useRef)(null),s=(0,a.useRef)(null),[i,c]=(0,a.useState)(n),[d,u]=(0,a.useState)(""),[p,m]=(0,a.useState)(!1),[x,h]=(0,a.useState)(!1),[f,b]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[w,v]=(0,a.useState)(null),[j,k]=(0,a.useState)({left:24,top:24,width:420});(0,a.useEffect)(()=>()=>{s.current&&window.clearTimeout(s.current)},[]);let N=(0,a.useCallback)(()=>{let e=window.innerWidth,t=Math.min(420,Math.max(280,e-48)),a=o.current;if(!a)return void k({left:24,top:24,width:t});let r=a.getBoundingClientRect(),n=Math.max(24,e-t-24);k({left:Math.min(Math.max(24,r.right-t),n),top:Math.max(24,r.top-430-12),width:t})},[]);function S(){s.current&&(window.clearTimeout(s.current),s.current=null)}function _(e){S(),N(),m(!0),h(e)}function C(){x||(S(),s.current=window.setTimeout(()=>{m(!1),v(null)},100))}async function E(e){e.preventDefault();let t=i.trim(),a=d.trim();if(!t||!a)return void v("Enter your email and message.");b(!0),y(!1),v(null);try{let e=await fetch("/api/contact-us",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,message:a,source_path:`${window.location.pathname}${window.location.search}`.slice(0,255)})}),r=await e.json();if(!e.ok)throw Error(r.message??"Failed to send your message.");y(!0),u("")}catch(e){v(e instanceof Error?e.message:"Failed to send your message.")}finally{b(!1)}}return(0,a.useEffect)(()=>{if(p)return N(),window.addEventListener("resize",N),window.addEventListener("scroll",N,!0),()=>{window.removeEventListener("resize",N),window.removeEventListener("scroll",N,!0)}},[p,N]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:l,onClick:function(){_(!0)},onMouseEnter:function(){window.matchMedia("(hover: hover) and (pointer: fine)").matches&&_(!1)},onMouseLeave:C,ref:o,type:"button",children:"Contact Us"}),p?(0,r.createPortal)((0,t.jsx)("div",{className:"fixed z-[80] rounded-[24px] border border-[#E5E5E5] bg-white p-6 text-[#202020] shadow-[0_24px_80px_rgba(0,0,0,0.22)]",onMouseEnter:S,onMouseLeave:C,style:{height:430,left:j.left,top:j.top,width:j.width},children:(0,t.jsxs)("form",{className:"flex h-full flex-col",onSubmit:E,children:[(0,t.jsx)("p",{className:"text-[12px] font-bold uppercase tracking-[0.28em] text-[#7E8695]",children:"Contact Us"}),(0,t.jsx)("h2",{className:"mt-3 text-[24px] font-bold leading-tight",children:"Tell us what you need"}),(0,t.jsx)("label",{className:"mt-5 text-[13px] font-semibold text-[#202020]",htmlFor:"contact-email",children:"Email"}),(0,t.jsx)("input",{className:"mt-2 min-h-[46px] rounded-[14px] border border-[#D8DDE8] px-4 py-[10px] text-[14px] leading-[20px] outline-none transition-colors focus:border-[#2F66F6]",disabled:f,id:"contact-email",onChange:e=>c(e.target.value),placeholder:"[email protected]",type:"email",value:i}),(0,t.jsx)("label",{className:"mt-4 text-[13px] font-semibold text-[#202020]",htmlFor:"contact-message",children:"Message"}),(0,t.jsx)("textarea",{className:"mt-2 min-h-[96px] flex-1 resize-none rounded-[14px] border border-[#D8DDE8] px-4 py-3 text-[14px] outline-none transition-colors focus:border-[#2F66F6]",disabled:f,id:"contact-message",maxLength:5e3,onChange:e=>u(e.target.value),placeholder:"Tell us about your question or request.",value:d}),(0,t.jsxs)("div",{className:"mt-4 min-h-[20px] text-[13px]",children:[g?(0,t.jsx)("span",{className:"text-[#008A5C]",children:"Thanks. We received your message."}):null,w?(0,t.jsx)("span",{className:"text-[#C93636]",children:w}):null]}),(0,t.jsxs)("div",{className:"mt-4 flex justify-end gap-3",children:[(0,t.jsx)("button",{className:"h-10 rounded-full border border-[#D8DDE8] px-5 text-[14px] font-semibold text-[#4A5568] transition-colors hover:border-[#202020] hover:text-[#202020]",disabled:f,onClick:function(){S(),m(!1),h(!1),v(null)},type:"button",children:"Back"}),(0,t.jsx)("button",{className:"h-10 rounded-full bg-[#2F66F6] px-5 text-[14px] font-bold text-white transition-colors hover:bg-[#2454D8] disabled:cursor-not-allowed disabled:bg-[#AAB6D8]",disabled:f,type:"submit",children:f?"
1Sending...":"Send"})]})]})}),document.body):null]})}])},495524,515028,341396,e=>{"use strict";var t=e.i(843476),a=e.i(618566),r=e.i(271645);let n="https://static.airwallex.com/components/sdk/v1/index.js",l=null;function o({intentId:e,clientSecret:a,currency:s,sdkEnv:i,methods:c=["card"],containerId:d="geo-airwallex-dropin",onSuccess:u,onError:p}){let[m,x]=(0,r.useState)(""),h=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let t=!1;return async function(){try{let r=await (l||(l=new Promise((e,t)=>{if(window.AirwallexComponentsSDK)return void e(window.AirwallexComponentsSDK);let a=document.querySelector(`script[src="${n}"]`);if(a){a.addEventListener("load",()=>{window.AirwallexComponentsSDK?e(window.AirwallexComponentsSDK):t(Error("Airwallex SDK failed to initialize"))}),a.addEventListener("error",()=>t(Error("Airwallex SDK failed to load")));return}let r=document.createElement("script");r.src=n,r.async=!0,r.onload=()=>{window.AirwallexComponentsSDK?e(window.AirwallexComponentsSDK):t(Error("Airwallex SDK failed to initialize"))},r.onerror=()=>t(Error("Airwallex SDK failed to load")),document.head.appendChild(r)})));if(t)return;await r.init({env:i,enabledElements:["payments"]});let o=await r.createElement("dropIn",{intent_id:e,client_secret:a,currency:s,methods:c});if(t)return;h.current=o,o.mount(d),o.on("success",()=>{u()}),o.on("error",e=>{let t=e&&"object"==typeof e&&"message"in e?String(e.message):"Payment failed. Please try again.";p(t)})}catch(e){if(!t){let t=e instanceof Error?e.message:"Unable to load payment form.";x(t),p(t)}}}(),()=>{t=!0,h.current?.unmount?.(),h.current=null}},[e,a,s,i,c,d,u,p]),(0,t.jsxs)("div",{className:"mt-6",children:[m?(0,t.jsx)("p",{className:"mb-3 text-[13px] text-[#b42318]",children:m}):null,(0,t.jsx)("div",{className:"min-h-[320px]",id:d})]})}var s=e.i(522016);function i(){return"terms-v2-refund-v1"}let c="geolity_legal_policy_consent";function d({accepted:e,onAcceptedChange:a}){return(0,t.jsxs)("div",{className:"space-y-3 rounded-[var(--radius-control)] border border-[var(--color-border-subtle)] bg-[var(--color-surface-muted)] px-4 py-3",children:[(0,t.jsxs)("p",{className:"text-[12px] leading-5 text-[var(--color-text-muted)]",children:["FANLI SINGAPORE PTE. LTD."," · ","112 Robinson Road, #03-01 Robinson 112, Singapore 068902"," · Governed by the laws of ","Singapore","."]}),(0,t.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5 text-[12px] leading-5 text-[var(--color-text-secondary)]",children:[(0,t.jsx)("input",{checked:e,className:"mt-0.5 h-4 w-4 shrink-0 accent-[#2563eb]",onChange:e=>{var t;a(t=e.target.checked),t&&function(){try{window.localStorage.setItem(c,i())}catch{}}()},type:"checkbox"}),(0,t.jsxs)("span",{children:["I agree to the"," ",(0,t.jsx)(s.default,{className:"text-[var(--color-accent-blue)] hover:underline",href:"/terms",children:"Terms of Service"}),","," ",(0,t.jsx)(s.default,{className:"text-[var(--color-accent-blue)] hover:underline",href:"/refund-policy",children:"Refund & Cancellation Policy"}),", and"," ",(0,t.jsx)(s.default,{className:"text-[var(--color-accent-blue)] hover:underline",href:"/privacy-policy",children:"Privacy Policy"}),"."]})]})]})}var u=e.i(878456);function p(){return(0,t.jsx)("svg",{"aria-hidden":"true",className:"mt-0.5 h-4 w-4 shrink-0 text-[var(--color-accent-green)]",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7",strokeLinecap:"round",strokeLinejoin:"round"})})}function m({plan:e,isMember:a,memberExpiresAt:n,submitting:l,error:s,dropInError:x,paymentIntent:h,dropInContainerId:f="geo-airwallex-dropin",onPayNow:b,onPaymentSuccess:g,onPaymentError:y,compact:w=!1}){let[v,j]=(0,r.useState)(()=>(function(){try{return window.localStorage.getItem(c)}catch{return null}})()===i()),k=(0,u.formatMemberDate)(n),N=e?.checkout,S=N?.kind==="already_active",_=N?.kind==="upgrade",C=N?.display_amount_due??e?.display_amount??"$XX.00";return a||S?(0,t.jsxs)("div",{className:"rounded-[var(--radius-control)] bg-[var(--color-surface-muted)] px-4 py-3 text-[14px] text-[var(--color-text-secondary)]",children:[(0,t.jsx)("p",{children:S?"You already have active access to this plan.":"You're already a member."}),k?(0,t.jsxs)("p",{className:"mt-1 text-[13px] text-[var(--color-text-muted)]",children:["Active until ",k]}):null]}):(0,t.jsxs)("div",{className:w?"space-y-4":"space-y-6",children:[w?null:(0,t.jsx)("ul",{className:"space-y-3",children:(e?.benefits??[]).map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5 text-[14px] leading-6 text-[var(--color-text-secondary)]",children:[(0,t.jsx)(p,{}),(0,t.jsx)("span",{children:e})]},e))}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex items-end gap-2",children:(0,t.jsx)("span",{className:"text-[36px] font-semibold leading-none tracking-[-1px] text-[var(--color-text-heading)]",children:C})}),(0,t.jsxs)("p",{className:"mt-2 text-[15px] text-[var(--color-text-secondary)]",children:[e?.access_days??30,"-day access"]}),(0,t.jsx)("p",{className:"mt-1 text-[13px] text-[var(--color-text-muted)]",children:"One-time payment"}),_?(0,t.jsxs)("div",{className:"mt-4 rounded-[var(--radius-control)] border border-[rgba(22,163,74,0.22)] bg-[rgba(22,163,74,0.08)] px-4 py-3 text-[13px] text-[var(--color-text-secondary)]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{children:"Plan price"}),(0,t.jsx)("span",{children:N.display_base_amount})]}),(0,t.jsxs)("div",{className:"mt-1.5 flex items-center justify-between gap-4 text-[var(--color-accent-green)]",children:[(0,t.jsx)("span",{children:"Upgrade credit"}),(0,t.jsxs)("span",{children:["-",N.display_credit_amount]})]}),(0,t.jsx)("div",{className:"mt-2 border-t border-[rgba(22,163,74,0.18)] pt-2 font-semibold text-[var(--color-text-heading)]",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{children:"Amount due today"}),(0,t.jsx)("span",{children:N.display_amount_due})]})}),N.message?(0,t.jsx)("p",{className:"mt-2 text-[12px] text-[var(--color-text-muted)]",children:N.message}):null]}):null]}),(0,t.jsx)(d,{accepted:v,onAcceptedChange:j}
1),h?.intent_id&&h.client_secret&&h.currency?v?(0,t.jsx)(o,{clientSecret:h.client_secret,containerId:f,currency:h.currency,intentId:h.intent_id,methods:h.drop_in_methods,onError:y,onSuccess:g,sdkEnv:h.sdk_env??"demo"}):(0,t.jsx)("p",{className:"text-[13px] text-[var(--color-text-muted)]",children:"Accept the policies above to continue to payment."}):(0,t.jsx)("button",{className:"flex h-11 w-full items-center justify-center rounded-full bg-[#252525] text-[15px] font-semibold text-white transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",disabled:l||!e||!v,onClick:b,type:"button",children:l?"Preparing checkout...":_?"Pay upgrade difference":"Pay now"}),x?(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-[13px] text-[#b42318]",children:x}),(0,t.jsx)("button",{className:"text-[14px] font-medium text-[var(--color-text-primary)] underline",onClick:b,type:"button",children:"Try again"})]}):null,s?(0,t.jsx)("p",{className:"text-[13px] text-[#b42318]",children:s}):null]})}e.s(["MembershipCheckoutPanel",0,m],515028);var x=e.i(869205),h=e.i(284067);function f(e={}){let{enabled:t=!0,planCode:a=h.GEO_MEMBER_ONETIME_PLAN_CODE,onSuccess:n,analyticsContext:l}=e,o=l?.pageType,s=l?.placement,[i,c]=(0,r.useState)(null),[d,u]=(0,r.useState)("idle"),[p,m]=(0,r.useState)(!1),[b,g]=(0,r.useState)(""),[y,w]=(0,r.useState)(""),[v,j]=(0,r.useState)(null),k=(0,r.useRef)(null),N=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(!t)return;let e=!1;return(async()=>{u("loading");try{let t=await fetch(`/api/v1/billing/plans?plan_code=${encodeURIComponent(a)}`),r=await t.json();if(e)return;if("OK"===r.code&&r.data?.plans?.[0]){c(r.data.plans[0]),u("ready");return}g("Unable to load membership details. Please refresh the page."),u("error")}catch{e||(g("Unable to load membership details. Please refresh the page."),u("error"))}})(),()=>{e=!0,u("idle")}},[t,a]);let S=t&&("idle"===d||"loading"===d),_=(0,r.useCallback)(()=>{m(!1),g(""),w(""),j(null),N.current=!1},[]),C=(0,r.useCallback)(()=>{let e=k.current;N.current||(N.current=!0,(0,x.trackPurchaseSuccess)({planCode:i?.plan_code,value:e?.amount,currency:e?.currency,transactionId:e?.merchant_order_id,newCustomer:e?.new_customer,pageType:o,placement:s})),n?.(k.current??void 0)},[o,s,n,i?.plan_code]),E=(0,r.useCallback)(e=>{w(e),m(!1)},[]),P=(0,r.useCallback)(async()=>{if(i){m(!0),g(""),w(""),j(null),N.current=!1;try{let e=await fetch("/api/v1/billing/payment-intents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan_code:i.plan_code})}),t=await e.json();if("OK"!==t.code||!t.data){g(t.message??"Unable to start checkout. Please try again."),m(!1);return}if(k.current=t.data,(0,x.trackCheckoutStart)({planCode:i.plan_code,value:t.data.amount,currency:t.data.currency,pageType:o,placement:s}),t.data.mock_activated)return void C();if(!t.data.intent_id||!t.data.client_secret){g(t.message??"Unable to start checkout. Please try again."),m(!1);return}j(t.data)}catch{g("Unable to start checkout. Please try again."),m(!1)}}},[o,s,i,C]);return{plan:i,loading:S,submitting:p,error:b,dropInError:y,paymentIntent:v,resetCheckout:_,handlePayNow:P,handlePaymentSuccess:C,handlePaymentError:E}}e.s(["useMembershipCheckout",0,f],341396),e.s(["MembershipPaywallModal",0,function({open:e,onOpenChange:n,onMembershipActivated:l,successHref:o="/subscribe/success",analyticsPlacement:s="paywall_modal",triggerReason:i="feature_locked"}){let c=(0,a.useRouter)(),d=(0,r.useRef)(null),u=(0,r.useId)(),p=`geo-airwallex-dropin-${u.replace(/:/g,"")}`,{plan:h,loading:b,submitting:g,error:y,dropInError:w,paymentIntent:v,resetCheckout:j,handlePayNow:k,handlePaymentSuccess:N,handlePaymentError:S}=f({analyticsContext:{pageType:"workspace",placement:s},enabled:e,onSuccess:(0,r.useCallback)(()=>{l?.(),n(!1),c.push(o)},[l,n,c,o])}),_=(0,r.useCallback)(()=>{j(),n(!1)},[j,n]);(0,r.useEffect)(()=>{let t=d.current;if(t){if(e){(0,x.trackPaywallView)({placement:s,triggerReason:i,pageType:"workspace"}),j(),t.open||t.showModal();return}t.open&&t.close()}},[s,e,j,i]);let C=(0,r.useCallback)(()=>{(0,x.trackPaywallCtaClick)({placement:s,planCode:h?.plan_code,pageType:"workspace"}),k()},[s,k,h?.plan_code]);return(0,t.jsx)("dialog",{"aria-labelledby":"membership-paywall-title","aria-modal":"true",className:"fixed inset-0 z-50 m-0 h-dvh w-full max-h-none max-w-none border-0 bg-transparent p-0 backdrop:bg-black/40 open:flex open:items-center open:justify-center open:p-4",onCancel:e=>{e.preventDefault(),_()},onClick:e=>{e.target===d.current&&_()},onClose:_,ref:d,children:(0,t.jsxs)("div",{className:"relative w-full max-w-[440px] rounded-[var(--radius-card)] bg-white p-7 shadow-2xl max-sm:max-h-[90dvh] max-sm:overflow-y-auto",children:[(0,t.jsx)("button",{"aria-label":"Close",className:"absolute right-4 top-4 inline-flex h-8 w-8 items-center justify-center rounded-full text-[20px] leading-none text-[var(--color-text-muted)] transition-colors hover:bg-[var(--color-surface-muted)] hover:text-[var(--color-text-primary)]",onClick:_,type:"button",children:"×"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"text-[36px]",children:"🔒"}),(0,t.jsx)("h2",{className:"mt-2 text-[22px] font-semibold tracking-[-0.4px] text-[var(--color-text-heading)]",id:"membership-paywall-title",children:"Become a Geo Member"}),(0,t.jsx)("p",{className:"mt-2 text-[14px] leading-7 text-[var(--color-text-secondary)]",children:h?.description??"Unlock full GEO analytics, monitoring, and actionable insights across AI answer engines."})]}),(0,t.jsx)("div",{className:"mt-6",children:b?(0,t.jsx)("p",{className:"text-center text-[14px] text-[var(--color-text-secondary)]",children:"Loading..."}):(0,t.jsx)(m,{compact:!0,dropInContainerId:p,dropInError:w,error:y,isMember:!1,onPayNow:C,onPaymentError:S,onPaymentSuccess:N,paymentIntent:v,plan:h,submitting:g})}),(0,t.jsx)("button",{className:"mt-4 w-full text-[13px] text-[var(--color-text-muted)] underline transition-colors hover:text-[var(--color-text-secondary)]",onClick:_,type:"button",children:"Not now"})]})})}],495524)},69153,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(618566),n=e.i(271645),l=e.i(495524),o=e.i(869205),s=e.i(589909),i=e.i(717236),c=e.i(878456),d=e.i(459780),u=e.i(816043);function p(){let e=(0,r.useRouter)();return(0,t.jsx)("div",{className:"relative inline-flex p-4 -m-4",children:(0,t.jsx)("button",{className:"rounded-[var(--radius-pill)] bg-[#252525] px-5 py-2.5 text-[14px] font-semibold leading-none text-white transition-colors hover:bg-black",onClick:function(){let t=(0,u.getSafeClientDashboardWorkspaceUrl)();(0,o.trackCtaClick)({ctaName:"Get started",placement:"header_get_started",targetPath:t,pageType:"/"===window.location.pathname?"home":"marketing",flowType:"signup"}),e.push(`/auth?redirect=${encodeURIComponent(t)}`)},type:"button",children:"Get started"})})}e.s(["HeaderAuthSection",0,function({initialEmail:e=null,variant:o="marketing"}){(0,r.useRouter)();
1let[m,x]=(0,n.useState)(e?{user:{email:e}}:null),[h,f]=(0,n.useState)(!1),[b,g]=(0,n.useState)(!1),[y,w]=(0,n.useState)(!1);async function v(){try{let e=await (0,d.fetchWithWindowSession)("/api/auth/me");if(401===e.status){(0,s.syncAnalyticsTestAccountFlag)(!1),x(null);return}let t=await e.json();"OK"===t.code&&t.data&&((0,s.syncAnalyticsTestAccountFlag)(t.data.user?.is_test_account),x(t.data))}catch{(0,s.syncAnalyticsTestAccountFlag)(!1),x(null)}}async function j(){g(!0);try{(0,d.markWindowSignedOut)(),(0,s.syncAnalyticsTestAccountFlag)(!1),x(null),await fetch("/api/auth/logout",{method:"POST",cache:"no-store"}).catch(()=>{});{let e=new URL((0,u.getSafeClientDashboardWorkspaceUrl)(),window.location.href);e.searchParams.set("window_logout","1"),e.searchParams.set("redirect",`${window.location.origin}/`),window.location.assign(e.toString());return}}finally{g(!1)}}(0,n.useEffect)(()=>{let e=!1;{let t=new URL(window.location.href);if("1"===t.searchParams.get("window_logout"))return(0,d.markWindowSignedOut)(),(0,s.syncAnalyticsTestAccountFlag)(!1),t.searchParams.delete("window_logout"),window.history.replaceState(null,"",`${t.pathname}${t.search}${t.hash}`),queueMicrotask(()=>{x(null),f(!0)}),()=>{e=!0}}return(async()=>{try{let t=await (0,d.fetchWithWindowSession)("/api/auth/me");if(e)return;if(401===t.status){(0,s.syncAnalyticsTestAccountFlag)(!1),x(null);return}let a=await t.json();"OK"===a.code&&a.data?((0,s.syncAnalyticsTestAccountFlag)(a.data.user?.is_test_account),x(a.data)):((0,s.syncAnalyticsTestAccountFlag)(!1),x(null))}catch{e||((0,s.syncAnalyticsTestAccountFlag)(!1),x(null))}finally{e||f(!0)}})(),()=>{e=!0}},[]),(0,n.useEffect)(()=>{if(!h||!m?.user?.email||!m.workspace?.has_report_data||"/"!==window.location.pathname)return;let e=new URL((0,u.getSafeClientDashboardWorkspaceUrl)(m.workspace.dashboard_url),window.location.href);e.searchParams.set("window_login","1"),window.location.assign(e.toString())},[h,m]);let k=m?.user?.email,N=(0,c.isActiveMemberFromMe)(m),S=(0,c.formatMemberDate)((0,c.getMemberExpiry)(m));return h?k?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 text-[14px] max-sm:gap-2 max-sm:text-[13px]",children:[(0,t.jsxs)("span",{className:"marketing"===o?"hidden text-[var(--color-text-primary)] sm:inline":"hidden text-[var(--color-text-secondary)] sm:inline",children:["Hi, ",(0,i.emailLocalPart)(k)]}),N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"rounded-full bg-[var(--color-accent-green)] px-2.5 py-0.5 text-[12px] font-semibold text-white",children:"Member"}),S?(0,t.jsxs)("span",{className:"hidden text-[var(--color-text-muted)] md:inline",children:["Expires ",S]}):null]}):null,"marketing"===o?(0,t.jsx)(a.default,{className:"rounded-[var(--radius-pill)] bg-[#252525] px-4 py-2 text-[13px] font-semibold leading-none text-white transition-colors hover:bg-black max-sm:px-3 max-sm:py-1.5",href:(0,u.getSafeClientDashboardWorkspaceUrl)(),children:"Dashboard"}):N?null:(0,t.jsx)("button",{className:"font-medium text-[var(--color-text-primary)] transition-opacity hover:opacity-70",onClick:()=>w(!0),type:"button",children:"Subscribe"}),(0,t.jsx)("button",{className:"marketing"===o?"rounded-[var(--radius-pill)] border border-[#252525] px-4 py-2 text-[13px] font-medium leading-none text-[var(--color-text-primary)] transition-colors hover:bg-[#252525] hover:text-white disabled:opacity-60 max-sm:px-3 max-sm:py-1.5":"text-[var(--color-text-secondary)] transition-opacity hover:opacity-70",disabled:b,onClick:()=>void j(),type:"button",children:"Sign out"})]}),(0,t.jsx)(l.MembershipPaywallModal,{analyticsPlacement:"header_subscribe",onMembershipActivated:()=>void v(),onOpenChange:w,open:y,triggerReason:"manual_subscribe"})]}):"marketing"===o?(0,t.jsx)(p,{}):(0,t.jsx)(a.default,{className:"font-medium text-[var(--color-text-primary)] transition-opacity hover:opacity-70",href:"/auth",children:"Sign in"}):(0,t.jsx)("span",{className:"text-[14px] text-[var(--color-text-muted)]",children:"..."})}])},851340,e=>{"use strict";var t=e.i(843476),a=e.i(69153);e.s(["default",0,function({email:e}){return(0,t.jsx)(a.HeaderAuthSection,{initialEmail:e,variant:"marketing"})}])},926517,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(271645);function n({item:e,onSelect:r}){return"href"in e?(0,t.jsxs)(a.default,{"aria-label":e.label,className:"block rounded-[var(--radius-control)] px-3 py-2.5 transition-colors hover:bg-white focus:bg-white focus:outline-none",href:e.href,onClick:r,children:[(0,t.jsx)("span",{className:"block text-[14px] font-semibold text-[var(--color-text-heading)]",children:e.label}),e.description?(0,t.jsx)("span",{className:"mt-1 block text-[12px] leading-5 text-[var(--color-text-secondary)]",children:e.description}):null]}):(0,t.jsxs)("div",{"aria-disabled":"true",className:"rounded-[var(--radius-control)] px-3 py-2.5 text-[var(--color-text-muted)]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[14px] font-medium text-[var(--color-text-secondary)]",children:e.label}),(0,t.jsx)("span",{className:"rounded-full border border-[var(--color-border-subtle)] px-2 py-0.5 text-[10px] font-semibold uppercase text-[var(--color-text-muted)]",children:"Planned"})]}),(0,t.jsx)("p",{className:"mt-1 text-[12px] leading-5",children:e.description})]})}e.s(["default",0,function({links:e,activeLabel:l}){let[o,s]=(0,r.useState)(!1),i=()=>s(!1);return(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("button",{"aria-controls":"mobile-nav-menu","aria-expanded":o,"aria-label":"Open navigation menu",className:"flex h-10 w-10 items-center justify-center rounded-full text-[var(--color-text-heading)] transition-colors hover:bg-[var(--color-border)]/40",onClick:()=>s(e=>!e),type:"button",children:(0,t.jsx)("svg",{"aria-hidden":"true",fill:"none",height:"22",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"22",children:o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M6 6l12 12"}),(0,t.jsx)("path",{d:"M18 6L6 18"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})})}),o?(0,t.jsx)("nav",{className:"absolute inset-x-0 top-full border-b border-[var(--color-border)] bg-[var(--color-page)] px-8 py-3 shadow-[var(--shadow-control)] max-sm:px-5",id:"mobile-nav-menu",children:(0,t.jsx)("ul",{className:"flex flex-col",children:e.map(e=>{if("sections"in e)return(0,t.jsxs)("li",{className:"border-y border-[var(--color-border-subtle)] py-3",children:[(0,t.jsx)("div",{className:"px-1 text-[13px] font-bold uppercase text-[var(--color-text-heading)]",children:e.label}),(0,t.jsx)("div",{className:"mt-3 grid gap-4",children:e.sections.map(e=>(0,t.jsxs)("section",{children:[(0,t.jsx)("h2",{className:"px-1 text-[12px] font-semibold uppercase text-[var(--color-text-muted)]",children:e.title}),(0,t.jsx)("div",{className:"mt-1 space-y-1",children:e.items.map(e=>(0,t.jsx)(n,{item:e,onSelect:i},e.label))})]},e.title))})]},e.label);let r=l===e.label;return(0,t.jsx)("li",{children:(0,t.jsx)(a.default,{className:`block py-3 text-[15px] transition-colors hover:text-[var(--color-text-heading)] ${r?"font-medium text-[var(--color-text-heading)]":"text-[var(--color-text-secondary)]"}`,href:e.href,onClick:i,children:e.label})},e.label)})})}):null]})}])},462647,e=>{"use strict";var t=e.i(271645),a=e.i(869205);let r="google-identity-services";async function n(e,t){let a=await fetch("/api/auth/google/onetap",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({credential:e,redirect:t})}
1),r=await a.json().catch(()=>null);if(!a.ok||r?.code!=="OK"||!r.data?.redirect)throw Error("Google One Tap sign-in failed");return r.data.redirect}e.s(["GoogleOneTap",0,function({disabled:e=!1,isAuthenticated:l,onBeforePrompt:o,pageType:s,redirect:i="/workspace"}){let c=(0,t.useRef)(!1),d=(0,t.useRef)(o);return(0,t.useEffect)(()=>{d.current=o},[o]),(0,t.useEffect)(()=>{let t="434283696818-jbl21q8bfsj3cfrjm8hsro49v3p6jb8e.apps.googleusercontent.com";if(!t||l||e)return void window.google?.accounts?.id?.cancel();let o=!1;return(function(){if(window.google?.accounts?.id)return Promise.resolve();let e=document.getElementById(r);return new Promise(e?(t,a)=>{e.addEventListener("load",()=>t(),{once:!0}),e.addEventListener("error",()=>a(Error("Failed to load Google Identity Services")),{once:!0})}:(e,t)=>{let a=document.createElement("script");a.id=r,a.async=!0,a.src="https://accounts.google.com/gsi/client",a.onload=()=>e(),a.onerror=()=>t(Error("Failed to load Google Identity Services")),document.head.appendChild(a)})})().then(()=>{if(o||e||l)return;let r=window.google?.accounts?.id;r&&(r.initialize({client_id:t,context:"signup",use_fedcm_for_prompt:!0,callback:e=>{let t=e.credential;t&&!c.current&&(c.current=!0,(0,a.trackAuthStart)({method:"google",redirectTarget:i,pageType:`google_one_tap_${s}`}),n(t,i).then(e=>{window.location.assign(e)}).catch(e=>{c.current=!1,console.warn("[auth] google one tap failed",{error:e instanceof Error?e.message:"unknown"})}))}}),d.current?.(),r.prompt())}).catch(e=>{console.warn("[auth] failed to load google one tap",{error:e instanceof Error?e.message:"unknown"})}),()=>{o=!0,window.google?.accounts?.id?.cancel()}},[e,l,s,i]),null}])},681001,e=>{"use strict";var t=e.i(843476),a=e.i(618566),r=e.i(271645),n=e.i(495524),l=e.i(869205),o=e.i(459780),s=e.i(878456),i=e.i(946752);let c="home_brand_url",d="brand_url",u={lg:{shell:"h-[68px] p-[10px] max-sm:h-[58px]",input:"pl-5 pr-3 text-[17px] max-sm:pl-2 max-sm:text-[14px]",button:"h-[48px] min-w-[126px] text-[14px] max-sm:min-w-[104px]"},md:{shell:"h-[60px] p-[9px] max-sm:h-[54px]",input:"pl-5 pr-3 text-[16px] max-sm:pl-2 max-sm:text-[14px]",button:"h-[42px] min-w-[148px] text-[13px] max-sm:min-w-[110px]"}};async function p(){try{let e=await (0,o.fetchWithWindowSession)("/api/auth/me");if(!e.ok)return{authenticated:!1,showPaywall:!1};let t=await e.json();if("OK"!==t.code||!t.data)return{authenticated:!1,showPaywall:!1};let a=!!t.data.user?.email;if(!a||(0,s.isActiveMemberFromMe)(t.data))return{authenticated:a,showPaywall:!1};return{authenticated:a,showPaywall:t.data.quota?.free_report_used===!0}}catch{return{authenticated:!1,showPaywall:!1}}}e.s(["default",0,function({size:e="lg",placeholder:o="Enter your website, e.g. yourbrand.com",buttonLabel:s="Analyze free",className:m="",analyticsPlacement:x="unknown"}){let h=(0,a.useRouter)(),f=(0,a.useSearchParams)(),[b,g]=(0,r.useState)(()=>(f.get("domain")??f.get("brandUrl")??"").trim()),[y,w]=(0,r.useState)({kind:"idle"}),[v,j]=(0,r.useState)(!1),k=(0,r.useRef)(!1),N=(0,r.useRef)(!1),S=b.trim(),_=S.length>0&&"loading"!==y.kind,C=u[e],E=(0,i.normalizeWebsiteUrl)(S),P=new URLSearchParams;P.set("flow","quick"),P.set("autoGenerate","1"),P.set("brandUrl",E);let A=`/workspace?${P.toString()}`;async function T(e){if(e.preventDefault(),!_)return;if(!(0,i.isLikelyPublicWebsiteUrl)(S))return void w({kind:"error",message:i.WEBSITE_URL_ERROR_MESSAGE});(0,l.trackCtaClick)({ctaName:s,placement:x,targetPath:"/workspace",pageType:"home",flowType:"quick"}),w({kind:"loading"});let t=await p();if(!t.authenticated)return void h.push(`/auth?redirect=${encodeURIComponent(A)}`);if(t.showPaywall){w({kind:"idle"}),j(!0);return}h.push(A)}return(0,t.jsxs)("div",{className:m,children:[(0,t.jsxs)("form",{className:`flex items-center rounded-[var(--radius-pill)] border border-[var(--color-border)] bg-[var(--color-surface)] shadow-[var(--shadow-control)] ${C.shell}`,onSubmit:e=>void T(e),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"pl-4 pr-1 text-[var(--color-text-muted)]",children:(0,t.jsxs)("svg",{fill:"none",height:"20",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",width:"20",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,t.jsx)("path",{d:"m21 21-4.3-4.3",strokeLinecap:"round"})]})}),(0,t.jsx)("input",{"aria-label":"Enter your website URL",className:`h-full min-w-0 flex-1 rounded-full bg-transparent font-medium text-[var(--color-text-primary)] outline-none placeholder:text-[var(--color-text-muted)] ${C.input}`,onChange:e=>{let t=e.target.value,a=t.trim();g(t),!k.current&&a.length>0&&(k.current=!0,(0,l.trackFormStart)({formName:c,fieldName:d,placement:x,pageType:"home",flowType:"quick"})),!N.current&&(0,i.isLikelyPublicWebsiteUrl)(a)&&(N.current=!0,(0,l.trackUrlInputValid)({formName:c,fieldName:d,placement:x,pageType:"home",flowType:"quick"})),"idle"!==y.kind&&w({kind:"idle"})},placeholder:o,type:"text",value:b}),(0,t.jsx)("button",{className:`ml-auto flex items-center justify-center gap-2 rounded-full bg-[#252525] px-5 font-semibold text-white transition-opacity hover:bg-black disabled:cursor-not-allowed disabled:opacity-50 ${C.button}`,disabled:!_,type:"submit",children:"loading"===y.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"h-4 w-4 animate-spin rounded-full border-2 border-white/40 border-t-white"}),"Analyzing"]}):(0,t.jsxs)(t.Fragment,{children:[s,(0,t.jsx)("span",{"aria-hidden":"true",children:"→"})]})})]}),(0,t.jsx)("p",{"aria-live":"polite",className:`min-h-[20px] pl-2 pt-2 text-[13px] ${"error"===y.kind?"text-red-600":"text-[var(--color-text-secondary)]"}`,children:"error"===y.kind?y.message:"blocked"===y.kind?"Live report generation is launching soon — we'll analyze your brand the moment it's available.":""}),(0,t.jsx)(n.MembershipPaywallModal,{analyticsPlacement:x,onOpenChange:j,open:v,successHref:A,triggerReason:"free_quota_used"})]})}])}]);

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.