PageSourceSearch

https://futuresummit.ai/assets/SpeakerProfile-Ikq3axBj.js

js futuresummit.ai collected 2026-10-05 11:59:32 UTC 9,408 bytes, 1 lines download raw bytes

1import{g as N,j as r,a as _,r as p,L as v}from"./index-Cb0uFkxi.js";import{u as S}from"./useQuery-CKh03oH0.js";import{H as f,F as h}from"./Footer-17KnCj-2.js";import{S as j}from"./Seo-CIpCEP-3.js";import{S as L}from"./SpeakerVideoShowcase-C9xrRyJD.js";import{P}from"./PageBreadcrumb-ROuCwuwV.js";import{a as $}from"./useSpeakers-IAKy3Fxg.js";import{s as F}from"./client-3Rgyq3FX.js";import{s as I}from"./slug-DGhkVI3i.js";import{t as z}from"./speakerProfile-D9KA5aXA.js";import{R as w}from"./ResponsiveImage-D5MpvFHD.js";import{L as B}from"./loader-circle-DoSMiK1s.js";import{G as C}from"./globe-rk7kRW71.js";import{E}from"./external-link-FpV9g0JK.js";import"./button-BXT4L8KI.js";import"./siteNavigation-xQOaOE9I.js";import"./index-DSefd6az.js";import"./tslib.es6-CmEaCU22.js";import"./chevron-down-CNHxCdIc.js";import"./sheet-CL-fb0Ux.js";import"./index-DAxeAWUx.js";import"./input-CyLPhXcX.js";import"./chevron-right-1Co9RUio.js";function H(t){return new Promise(e=>{try{const o=new Image;o.crossOrigin="anonymous",o.onload=()=>{try{const l=document.createElement("canvas");l.width=64,l.height=64;const s=l.getContext("2d");if(!s)return e(null);s.drawImage(o,0,0,64,64);const{data:c}=s.getImageData(0,0,64,64);let u=0,x=0;for(let m=0;m<c.length;m+=4)c[m+3]<32||(u+=(.2126*c[m]+.7152*c[m+1]+.0722*c[m+2])/255,x+=1);e(x?u/x:null)}catch{e(null)}},o.onerror=()=>e(null),o.src=t}catch{e(null)}})}const q=({src:t,alt:e})=>{const[o,a]=p.useState(!1);return p.useEffect(()=>{let l=!0;return a(!1),H(t).then(s=>{l&&a(s!==null&&s>.7)}),()=>{l=!1}},[t]),r.jsx("div",{className:`mt-5 flex h-14 w-44 shrink-0 items-center justify-center rounded-sm border px-3 py-2 lg:mt-1 ${o?"border-foreground
1/15":"border-transparent bg-white"}`,style:o?{backgroundColor:"#1a1a1a"}:void 0,children:r.jsx(w,{src:t,alt:e,width:320,height:100,className:"h-full w-full object-contain"})})},T=()=>r.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"currentColor",children:r.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})});function n(t){return!!(t!=null&&t.trim())}function O(t){return t.split(/\n\s*\n/).filter(n)}const R=/^(dr|mr|mrs|ms|prof)\.?$/i;function y(t){const e=t.trim().split(/\s+/).filter(Boolean);return R.test(e[0]??"")?e.slice(1):e}function U(t){const e=y(t);return(e.length>1?[e[0],e[e.length-1]]:e).map(a=>a[0]).join("").toUpperCase()||"S"}function X(t){return y(t)[0]||t}function A(t){const e=(t==null?void 0:t.trim().toLowerCase())??"";return/^he(?:\b|\/)/.test(e)?"In his words":/^she(?:\b|\/)/.test(e)?"In her words":"In their words"}function D({src:t,name:e}){const[o,a]=p.useState(!1),l=t==null?void 0:t.trim();return p.useEffect(()=>{a(!1)},[l]),r.jsx("div",{className:"aspect-[3/4] w-full overflow-hidden border border-border/50 bg-muted",children:l&&!o?r.jsx(w,{src:l,alt:`Portrait of ${e}`,width:800,height:1067,className:"h-full w-full object-cover",onError:()=>a(!0)}):r.jsx("div",{className:"flex h-full w-full items-center justify-center bg-card text-center font-heading text-6xl tracking-wide text-primary/80",role:"img","aria-label":`${e} initials`,children:U(e)})})}function G(){return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(j,{title:"Speaker Not Found | Future Summit 2026",description:"This speaker profile could not be found.",path:window.location.pathname,noIndex:!0}),r.jsx(f,{}),r.jsxs("main",{className:"container mx-auto flex min-h-[60vh] flex-col items-center justify-center px-6 pt-20 text-center",children:[r.jsx("p",{className:"eyebrow",children:"Future Summit 2026"}),r.jsx("h1",{className:"mt-4 font-heading text-5xl uppercase tracking-wide text-foreground",children:"Speaker not found"}),r.jsx("p",{className:"mt-4 max-w-md text-muted-foreground",children:"This profile may no longer be published."}),r.jsx(v,{to:"/speakers",className:"mt-8 border border-primary/50 px-6 py-3 font-body text-sm font-semibold uppercase tracking-wider text-primary transition-colors hover:bg-primary hover:text-primary-foreground",children:"Back to speakers"})]}),r.jsx(h,{})]})}function fe(){const{slug:t}=N(),{data:e,isLoading:o}=$(t),{data:a,isLoading:l}=S({queryKey:["public-speaker-video",e==null?void 0:e.id],enabled:!!(e!=null&&e.id),retry:!1,queryFn:async()=>{const{data:i,error:d}=await F.functions.invoke("get-public-speaker-video",{body:{speaker_id:e.id}});return d?null:i??null}});if(o||e!=null&&e.id&&l)return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(f,{}),r.jsx("main",{className:"flex min-h-[60vh] items-center justify-center pt-20","aria-label":"Loading speaker profile",children:r.jsx(B,{className:"h-8 w-8 animate-spin text-primary"})}),r.jsx(h,{})]});if(!e||!t)return r.jsx(G,{});const s=n(e.full_name)?e.full_name.trim():"Speaker",c=s.split(/\s+/),u=[e.title,e.company].filter(n).map(i=>i.trim()).join(" · "),x=n(e.bio_short)?e.bio_short.trim():`${s} is speaking at Future Summit 2026.`,m=`/speakers/${I(s)}`,g=n(e.bio_short)?e.bio_short.trim():n(e.bio_long)?e.bio_long.trim():null,b=[n(e.linkedin_url)&&{href:e.linkedin_url,label:`${s} on LinkedIn`,text:"on LinkedIn",icon:r.jsx(_,{className:"h-4 w-4"})},n(e.x_url)&&{href:e.x_url,label:`${s} on X`,text:"on X",icon:r.jsx(T,{})},n(e.website_url)&&{href:e.website_url,label:`${s}'s website`,text:"Website",icon:r.jsx(C,{className:"h-4 w-4"})}].filter(Boolean),k=n(e.talk_format);return r.jsxs("div",{className:"min-h-screen bg-background",children:[r.jsx(j,{title:`${s} — Speaker | Future Summit 2026`,description:x.slice(0,158),path:m,ogImage:e.headshot_url||void 0,jsonLd:{"@context":"https://schema.org","@type":"Person",name:s,jobTitle:e.title||void 0,worksFor:e.company?{"@type":"Organization",name:e.company}:void 0,image:e.headshot_url||void 0,url:`https://futuresummit.ai${m}`}}),r.jsx(f,{}),r.jsx("main",{className:"pt-20",children:r.jsx("section",{className:"border-b border-border/40",children:r.jsxs("div",{className:"mx-auto max-w-[1440px] px-5 py-10 sm:px-8 lg:px-14 lg:py-11",children:[r.jsx(P,{items:[{label:"Agenda",to:"/schedule"},{label:"Speakers",to:"/speakers"},{label:s}]}),r.jsx("p",{className:"eyebrow mt-6",children:"Future Summit 2026 speaker · Confirmed"}),r.jsxs("div",{className:"mt-5 border-b border-border/50 pb-7 lg:flex lg:items-start lg:justify-between lg:gap-10",children:[r.jsxs("div",{className:"min-w-0",children:[r.jsx("h1",{className:"break-words font-heading text-[clamp(3.25rem,6.2vw,4.5rem)] leading-[0.86] tracking-wide text-foreground lg:max-w-[46rem]",children:c.map((i,d)=>r.jsxs(p.Fragment,{children:[r.jsx("span",{className:"inline-block max-w-full break-words",children:i}),d<c.length-1?" ":null]},`${i}-${d}`))}),u&&r.jsx("p",{className:"mt-4 break-words font-heading text-2xl uppercase leading-tight tracking-[0.1em] text-primary",children:u})]}),n(e.company_logo_url)&&r.jsx(q,{src:e.company_logo_url,alt:e.company?`${e.company} logo`:"Company logo"})]}),r.jsxs("div",{className:`mt-9 grid gap-9 lg:items-start lg:gap-x-12 ${a!=null&&a.iframe_url?"lg:grid-cols-[minmax(0,18.875rem)_minmax(0,1fr)_minmax(0,26rem)]":"lg:grid-cols-[minmax(0,18.875rem)_minmax(0,42rem)]"}`,children:[r.jsx("div",{className:"mx-auto w-full max-w-[22rem] lg:mx-0 lg:max-w-none",children:r.jsx(D,{src:e.headshot_url,name:s})}),r.jsxs("div",{className:"min-w-0 max-w-[42rem]",children:[g&&r.jsx("div",{className:"space-y-5",children:O(g).map((i,d)=>r.jsx("p",{className:"whitespace-pre-line break-words text-base leading-relaxed text-foreground
1/85 sm:text-[1.05rem]",children:i},d))}),b.length>0&&r.jsx("nav",{"aria-label":`${s} public links`,className:"mt-7 flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:gap-3",children:b.map(i=>r.jsxs("a",{href:i.href,target:"_blank",rel:"noreferrer","aria-label":i.label,className:"inline-flex min-h-10 items-center justify-center gap-2 rounded-sm border border-border/60 px-4 py-2 text-sm text-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-primary sm:justify-start",children:[i.icon,r.jsx("span",{children:i.text}),r.jsx(E,{className:"h-3 w-3","aria-hidden":"true"})]},i.href))}),n(e.marketing_quote)&&r.jsxs("figure",{className:"mt-8 border-t border-border/50 pt-6",children:[r.jsx("figcaption",{className:"eyebrow",children:A(e.pronouns)}),r.jsxs("blockquote",{className:"mt-3 break-words text-xl leading-relaxed text-foreground sm:text-2xl",children:["“",e.marketing_quote.trim(),"”"]}),r.jsxs("p",{className:"mt-3 text-sm text-muted-foreground",children:["— ",s]})]}),k&&r.jsxs("section",{"aria-label":"Session details",className:"mt-8 border border-border/50 bg-card/30 px-6 py-5",children:[r.jsx("p",{className:"eyebrow",children:"On stage"}),n(e.talk_format)&&r.jsx("p",{className:"mt-4 inline-flex rounded-full border border-primary/50 px-3 py-1 text-xs font-semibold uppercase tracking-[0.18em] text-primary",children:z(e.talk_format)})]})]}),(a==null?void 0:a.iframe_url)&&r.jsxs("aside",{className:"w-full min-w-0 lg:justify-self-end",children:[r.jsxs("h2",{className:"mb-4 break-words text-2xl leading-none text-foreground",children:["A note from ",X(s)]}),r.jsx(L,{iframeUrl:a.iframe_url,width:a.width,height:a.height,name:s,title:e.title,company:e.company})]})]})]})})}),r.jsx(h,{})]})}export{fe 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.