1import{j as e}from"./vendor-ui-x7D0iLe8.js";import{f as P,r as c,L as m}from"./vendor-react-aMKJrssV.js";import{s as N,ab as $,l as h,B as p,f as g,S as b,A as E}from"./index-CgmaCIwJ.js";import{P as x}from"./PublicNav-DqzjaHuJ.js";import{P as f}from"./PublicFooter-C4PEGJjI.js";import{P as T}from"./PatentAttribution-DP9QYsB1.js";import{S as A}from"./SocialShareButtons-CPEVK1Gn.js";import{M as L}from"./MoreFreeTools-X9F4pCJB.js";import{C as F}from"./CreatorPersonalityChips-BhXXqgYK.js";import{c as q,T as M}from"./profile-completeness-DgJq72QS.js";import{m as O}from"./vendor-motion-C3azNPMs.js";import{E as y}from"./external-link-Dqa1uBA5.js";import{I as Q}from"./instagram-BK64gUkR.js";import{Y as R}from"./youtube-C9-jz1Ur.js";import{T as U}from"./twitter-CiWe9foJ.js";import{M as B}from"./music-2-DvNzxJug.js";import{G as D}from"./globe-F05gZjBR.js";import{M as Y}from"./message-circle-CZb9xIxV.js";import{L as G}from"./link-2-B2hTukVE.js";import"./vendor-data-LOeL2b27.js";import"./AiLaunchBanner-B3rl9x5a.js";import"./dropdown-menu-D9ymlLQy.js";import"./chevron-right-WJXQXbda.js";import"./circle-DHIZtG_M.js";import"./BrandLogo-CMdGoIe5.js";import"./index-CMCAsyqu.js";import"./sun-Bn04Fmp8.js";import"./moon-CzA-2q5t.js";import"./rocket-8HI0C91g.js";import"./chevron-down-D2v2TI3O.js";import"./compatibility-engine-29IBmdkI.js";import"./textarea-CTff0F6p.js";import"./utm-BhjQOAJA.js";import"./copy-to-clipboard-DmNaz9C9.js";import"./share-2-BaxZ1n_3.js";import"./copy-CA-Ve0ej.js";import"./facebook-sazrddlz.js";import"./smartphone-ByouCCHO.js";import"./mail-Du-dpIAW.js";import"./briefcase-Oh51XId3.js";import"./framework-links-BM2dGudM.js";import"./trait-reads-CA9CVTz0.js";import"./score-band-DmdY1aX0.js";const j="eqiqs_creator_session_id";function z(){try{let t=sessionStorage.getItem(j);return t||(t=crypto.randomUUID?crypto.randomUUID():`sess_${Date.now()}_${Math.random().toString(36).slice(2)}`,sessionStorage.setItem(j,t)),t}catch{return`sess_${Date.now()}`}}function w(t){const r={creator_id:t.creatorId,slug:t.slug,event_type:t.eventType,session_id:z(),amount:t.amount,user_email:t.userEmail};N.functions.invoke("track-creator-event",{body:r}).catch(l=>console.warn("[creator-analytics] failed",l))}const K=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"",_={instagram:Q,youtube:R,twitter:U,tiktok:B,website:D,discord:Y,other:G},v={instagram:"from-pink-500 to-purple-500",youtube:"from-red-500 to-red-600",twitter:"from-sky-400 to-sky-500",tiktok:"from-slate-800 to-slate-900",website:"from-primary to-primary/80",discord:"from-indigo-500 to-indigo-600",other:"from-muted-foreground/80 to-muted-foreground"},Me=()=>{const{slug:t}=P(),[r,l]=c.useState(null),[k,u]=c.useState(!0);if(c.useEffect(()=>{if(!t)return;let o=!1;return(async()=>{u(!0);try{const{data:a,error:i}=await N.rpc("get_creator_public_profile",{p_slug:t});if(o)return;i&&console.error("[PublicCreatorProfile] load error:",i);const s=a??null;if(l(s),s?.id&&($(s.id),w({creatorId:s.id,eventType:"view"})),s?.affiliate_code&&typeof window<"u"&&!o)try{localStorage.setItem("eqiqs_pending_affiliate",s.affiliate_code),localStorage.setItem("eqiqs_pending_affiliate_source",`creator:${t??""}`)}catch(I){console.warn("[PublicCreatorProfile] attribution skipped:",I)}}catch(a){console.error("[PublicCreatorProfile] unexpected error:",a),o||l(null)}finally{o||u(!1)}})(),()=>{o=!0}},[t]),k)return e.jsxs(e.Fragment,{children:[e.jsx(x,{}),e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-primary border-t-transparent"})}),e.jsx(f,{})]});if(!r)return e.jsxs(e.Fragment,{children:[e.jsx(h,{title:"Creator Not Found â EQIQs",description:"This creator profile is no longer available.",path:`/c/${t}`,noindex:!0}),e.jsx(x,{}),e.jsxs("div",{className:"text-center py-32 min-h-dvh",children:[e.jsx("p",{className:"text-muted-foreground text-lg mb-4",children:"Creator not found."}),e.jsx(m,{to:"/find-creators",children:e.jsx(p,{variant:"outline",children:"Browse Creators"})})]}),e.jsx(f,{})]});const d=r.person_profiles,n=Array.isArray(r.social_links)?r.social_links:[],C=d?q(d):0,S=`Check out ${r.display_name}'s compatibility profile on EQIQs! ð`;return e.jsxs(e.Fragment,{children:[e.jsx(h,{title:`${r.display_name} â Creator Compatibility Profile | EQIQs`,description:r.tagline||r.bio||`See ${r.display_name}'s personality profile and test your compatibility.`,path:`/c/${t}`,jsonLd:{"@context":"https://schema.org","@type":"ProfilePage",mainEntity:{"@type":"Person",name:r.display_name,...r.tagline?{jobTitle:r.tagline}:{},...r.bio?{description:r.bio}:{},...r.photo_url?{image:r.photo_url}:{},url:`https://www.eqiqs.com/c/${t}`,...n.length>0?{sameAs:n.map(o=>o.url)}:{}}}}),e.jsx(x,{}),e.jsx("main",{className:"min-h-dvh bg-background pt-24 pb-20",children:e.jsxs("div",{className:"container mx-auto max-w-3xl px-4",children:[e.jsxs(O.div,{initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{duration:.4},className:"rounded-2xl border border-border bg-gradient-to-br from-card via-card to-primary/5 p-5 md:p-7",children:[e.jsxs("div",{className:"flex items-start gap-4 md:gap-5",children:[r.photo_url?e.jsx("img",{src:r.photo_url,alt:r.display_name,className:"h-20 w-20 md:h-24 md:w-24 rounded-2xl object-cover border border-border shrink-0",loading:"eager",decoding:"async"}):e.jsx("div",{className:"h-20 w-20 md:h-24 md:w-24 rounded-2xl bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center font-display font-bold text-2xl text-primary border border-border shrink-0",children:r.display_name?.slice(0,2).toUpperCase()}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs(g,{variant:"outline",className:"gap-1.5 mb-2",children:[e.jsx(b,{className:"h-3 w-3 text-primary"})," Creator profile"]}),e.jsx("h1",{className:"font-display text-2xl md:text-3xl font-bold tracking-tight",children:r.display_name}),r.tagline&&e.jsx("p",{className:"text-sm text-primary font-body font-medium mt-1",children:r.tagline}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-3",children:[e.jsxs(g,{variant:"secondary",className:"text-xs",children:[C,"/",M," frameworks shared"]}),(r.categories||[]).slice(0,4).map((o,a)=>{const i=["bg-primary/10 text-primary border-primary/20","bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20","bg-sky-500/10 text-sky-600 dark:text-sky-400 border-sky-500/20","bg-rose-500/10 text-rose-600 dar
1k:text-rose-400 border-rose-500/20"];return e.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] font-body font-medium ${i[a%i.length]}`,children:o},o)}),e.jsxs(m,{to:`/match/${t}`,className:"text-xs text-primary hover:underline",children:["Match with ",r.display_name?.split(" ")[0]," â"]})]})]})]}),r.bio&&e.jsx("p",{className:"text-sm text-muted-foreground font-body mt-4 leading-relaxed",children:r.bio}),e.jsxs("div",{className:"mt-5",children:[e.jsx(m,{to:`/signup?redirect=${encodeURIComponent(`/match/${t}`)}`,className:"block",onClick:()=>{r?.id&&w({creatorId:r.id,eventType:"start"})},children:e.jsxs(p,{size:"lg",className:"w-full gap-2 text-base py-6 rounded-xl bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary/70 shadow-lg",children:[e.jsx(b,{className:"h-5 w-5"})," Get my live score with ",r.display_name?.split(" ")[0]," ",e.jsx(E,{className:"h-4 w-4"})]})}),e.jsxs("p",{className:"text-xs text-muted-foreground text-center mt-2 font-body",children:["60-second signup · Free · You land right on your score ·"," ",e.jsx(m,{to:`/match/${t}`,className:"underline hover:text-primary",children:"preview first"})]})]}),n.length>0&&e.jsx("div",{className:"mt-5 grid sm:grid-cols-2 gap-2.5",children:n.map((o,a)=>{const i=_[o.platform]||_.other,s=o.label||K(o.platform);return e.jsxs("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 w-full rounded-xl border border-border bg-card hover:bg-muted/50 p-3 transition-all hover:shadow-md group",children:[e.jsx("div",{className:`h-9 w-9 rounded-lg bg-gradient-to-br ${v[o.platform]||v.other} flex items-center justify-center shrink-0`,children:e.jsx(i,{className:"h-4 w-4 text-white"})}),e.jsx("span",{className:"text-sm font-body font-medium flex-1 truncate",children:s}),e.jsx(y,{className:"h-3.5 w-3.5 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]},a)})}),!n.length&&r.external_url&&e.jsx("div",{className:"mt-5",children:e.jsx("a",{href:r.external_url,target:"_blank",rel:"noopener noreferrer",className:"block",children:e.jsxs(p,{variant:"outline",className:"w-full gap-2 rounded-xl",children:[e.jsx(y,{className:"h-4 w-4"})," Visit my profile"]})})})]}),e.jsx(F,{pp:d}),e.jsx("div",{className:"mt-6 rounded-2xl border border-border bg-card p-5 md:p-6",children:e.jsx(A,{title:`${r.display_name} â EQIQs Compatibility`,text:S,url:`https://eqiqs.com/c/${t}`})}),e.jsx(L,{title:"Tools to try while you're here",subtitle:`Same engine behind ${r.display_name}'s profile. All free, no signup.`,max:6}),e.jsx("div",{className:"mt-8",children:e.jsx(T,{})})]})}),e.jsx(f,{})]})};export{Me as default};
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.