PageSourceSearch

https://presencebydesignmethod.com/assets/diagnostic-Dwe4F2Zh.js

js presencebydesignmethod.com collected 2026-10-09 22:03:30 UTC 28,256 bytes, 7 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zapier.functions-HgbUWDHe.js","assets/index-DORr86OB.js","assets/chunk-QTnfLwEv.js","assets/client-DiqT91F_.js","assets/link-C3OJdXwL.js","assets/useRouter-taNZoCdo.js","assets/react-xd4aoMiW.js","assets/jsx-runtime-DsKLSDJq.js","assets/invariant-BeDuhpwN.js","assets/createServerFn-C5j2_UvV.js","assets/notifications.functions-BEZYeuYW.js","assets/participant-email.functions-Dy3gGcyP.js","assets/brevo.functions-WrNsGGtq.js","assets/hubspot-assessment.functions-Ct4UauzL.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./chunk-QTnfLwEv.js";import{t}from"./react-xd4aoMiW.js";import{t as n}from"./link-C3OJdXwL.js";import{t as r}from"./jsx-runtime-DsKLSDJq.js";import{n as i,r as a}from"./client-DiqT91F_.js";import{A as o,P as s,f as c,s as l}from"./index-DORr86OB.js";import{a as u,i as ee,l as te,o as ne,r as d}from"./diagnostic-data-BjMuk1Z_.js";import{t as f}from"./arrow-left-D_POL03-.js";import{t as p}from"./arrow-right-CtKDHKag.js";import{t as m}from"./check-CofJLF9h.js";import{n as h,r as g}from"./types-Ck9BYy3q.js";import{t as _}from"./utils-DXalBF5w.js";import{n as v,r as y,t as re}from"./button-CgGtVBWy.js";var b=e(t(),1),x=`pbd_leads_v1`;function S(e){if(!(typeof window>`u`))try{let t=JSON.parse(localStorage.getItem(x)??`[]`);t.push(e),localStorage.setItem(x,JSON.stringify(t))}catch{}}var C=new Map;async function ie(e){let t=e.submissionId,n=Date.now();if(!C.get(t)){if(C.set(t,n),typeof window<`u`)try{let e=`pbd_submitted_${t}`;if(Number(localStorage.getItem(e)??0))return;localStorage.setItem(e,String(n))}catch{}S(e);try{let{sendLeadToZapier:t}=await a(async()=>{let{sendLeadToZapier:e}=await import(`./zapier.functions-HgbUWDHe.js`);return{sendLeadToZapier:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),n=typeof window<`u`?window.location.origin:``;t({data:{...e,pattern:e.patternName,situation:e.situationKey===`other`?e.situationOther:e.situationKey,recommendedOffer:e.recommendation,triggered_from:n}}).catch(e=>{console.error(`Zapier post failed`,e)})}catch(e){console.error(`Zapier import failed`,e)}try{let{supabase:t}=await a(async()=>{let{supabase:e}=await import(`./client-DiqT91F_.js`).then(e=>e.t);return{supabase:e}},__vite__mapDeps([3,2]));await t.from(`diagnostic_leads`).insert({first_name:e.firstName,last_name:e.lastName,email:e.email,company:e.company,title:e.title,overall:e.overall,strongest:e.strongest,opportunity:e.opportunity,primary_pattern:e.patternName??null,situation:e.situationKey===`other`&&e.situationOther?e.situationOther:e.situationKey||null,recommended_offer:e.recommendation??null,answers:e.answers,marketing_opt_in:e.marketingOptIn===!0})}catch(e){console.error(`Failed to save lead to backend`,e)}try{let{notifyDiagnosticLead:t}=await a(async()=>{let{notifyDiagnosticLead:e}=await import(`./notifications.functions-BEZYeuYW.js`);return{notifyDiagnosticLead:e}},__vite__mapDeps([10,1,2,3,4,5,6,7,8,9]));t({data:{firstName:e.firstName,lastName:e.lastName,email:e.email,company:e.company,title:e.title,overall:e.overall,strongest:e.strongest,opportunity:e.opportunity}}).catch(e=>console.error(`Lead notification failed`,e))}catch(e){console.error(`Lead notification import failed`,e)}try{let{sendParticipantResults:t}=await a(async()=>{let{sendParticipantResults:e}=await import(`./participant-email.functions-Dy3gGcyP.js`);return{sendParticipantResults:e}},__vite__mapDeps([11,1,2,3,4,5,6,7,8,9]));t({data:{firstName:e.firstName,email:e.email,answers:e.answers,marketingOptIn:e.marketingOptIn===!0,submissionId:e.submissionId}}).catch(e=>console.error(`Participant results email failed`,e))}catch(e){console.error(`Participant results email import failed`,e)}if(e.marketingOptIn===!0)try{let{subscribeToBrevoList:t}=await a(async()=>{let{subscribeToBrevoList:e}=await import(`./brevo.functions-WrNsGGtq.js`);return{subscribeToBrevoList:e}},__vite__mapDeps([12,1,2,3,4,5,6,7,8,9]));t({data:{firstName:e.firstName,lastName:e.lastName,email:e.email,company:e.company,title:e.title}}).catch(e=>console.error(`Brevo subscribe failed`,e))}catch(e){console.error(`Brevo subscribe import failed`,e)}}}var w=r();function T(e,t=[]){let n=[];function r(t,r){let i=b.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=b.useMemo(()=>o,Object.values(o));return(0,w.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=b.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>b.createContext(e));return function(n){let r=n?.[e]||t;return b.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,E(i,...t)]}function E(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}s();var D=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>
2{let n=y(`Primitive.${t}`),r=b.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,w.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),O=`Progress`,k=100,[A,j]=T(O),[M,N]=A(O),P=b.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=L,...o}=e;(i||i===0)&&!B(i)&&console.error(H(`${i}`,`Progress`));let s=B(i)?i:k;r!==null&&!V(r,s)&&console.error(U(`${r}`,`Progress`));let c=V(r,s)?r:null,l=z(c)?a(c,s):void 0;return(0,w.jsx)(M,{scope:n,value:c,max:s,children:(0,w.jsx)(D.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":z(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":R(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});P.displayName=O;var F=`ProgressIndicator`,I=b.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=N(F,n);return(0,w.jsx)(D.div,{"data-state":R(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});I.displayName=F;function L(e,t){return`${Math.round(e/t*100)}%`}function R(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function z(e){return typeof e==`number`}function B(e){return z(e)&&!isNaN(e)&&e>0}function V(e,t){return z(e)&&!isNaN(e)&&e<=t&&e>=0}function H(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${k}\`.`}function U(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
3  - a positive number
4  - less than the value passed to \`max\` (or ${k} if no \`max\` prop is set)
5  - \`null\` or \`undefined\` if the progress is indeterminate.
6
7Defaulting to \`null\`.`}var W=P,ae=I,G=b.forwardRef(({className:e,value:t,...n},r)=>(0,w.jsx)(W,{ref:r,className:_(`relative h-2 w-full overflow-hidden rounded-full bg-primary/20`,e),...n,children:(0,w.jsx)(ae,{className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));G.displayName=W.displayName;var K=b.forwardRef(({className:e,type:t,...n},r)=>(0,w.jsx)(`input`,{type:t,className:_(`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));K.displayName=`Input`;var oe=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=y(`Primitive.${t}`),r=b.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,w.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),se=`Label`,q=b.forwardRef((e,t)=>(0,w.jsx)(oe.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));q.displayName=se;var J=q,ce=v(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Y=b.forwardRef(({className:e,...t},n)=>(0,w.jsx)(J,{ref:n,className:_(ce(),e),...t}));Y.displayName=J.displayName;var le=`pbd_session_id`;function ue(){if(typeof window>`u`)return`ssr`;try{let e=sessionStorage.getItem(le);return e||(e=crypto.randomUUID(),sessionStorage.setItem(le,e)),e}catch{return`unknown`}}var de=new Set,fe=`pbd_human`,pe=/bot|crawler|spider|crawling|preview|scan|monitor|slurp|headless|phantom|lighthouse|proofpoint|mimecast|barracuda|symantec|bingpreview|facebookexternalhit|whatsapp|telegram|skype|curl|wget|python|java\//i,X=!1,Z=[];function me(){try{let e=navigator.userAgent||``;return!!(pe.test(e)||navigator.webdriver)}catch{return!1}}function he(){if(!X){X=!0;try{sessionStorage.setItem(fe,`1`)}catch{}for(;Z.length;)Z.shift()?.()}}if(typeof window<`u`){try{sessionStorage.getItem(fe)===`1`&&(X=!0)}catch{}let e=e=>{`isTrusted`in e&&!e.isTrusted||me()||he()};for(let t of[`pointerdown`,`pointermove`,`keydown`,`touchstart`,`wheel`,`scroll`])window.addEventListener(t,e,{passive:!0})}var ge=`pbd_variant`;function _e(){if(typeof window>`u`)return null;try{let e=new URLSearchParams(window.location.search),t=e.get(`v`)||e.get(`variant`)||e.get(`utm_campaign`)||e.get(`utm_content`);return t?(sessionStorage.setItem(ge,t.slice(0,60)),t.slice(0,60)):sessionStorage.getItem(ge)}catch{return null}}function ve(e,t){try{c(`assessment_${e}`,{assessment_step:t??null,assessment_variant:_e()??`default`}),i.from(`assessment_events`).insert({session_id:ue(),event:e,step:t??null,variant:_e(),referrer:document.referrer||null,user_agent:navigator.userAgent}).then(()=>void 0,()=>void 0)}catch{}}function Q(e,t){if(typeof window>`u`||me())return;let n=`${e}:${t??``}`;de.has(n)||(de.add(n),X?ve(e,t):Z.push(()=>ve(e,t)))}var ye=h({firstName:g().trim().min(1,`Required`).max(60),lastName:g().trim().min(1,`Required`).max(60),email:g().trim().email(`Enter a valid email`).max(200),company:g().trim().min(1,`Required`).max(120),title:g().trim().min(1,`Required`).max(120)});function be(){let e=o(),{start:t}=l.useSearch(),[r,i]=(0,b.useState)(+!!t),[s,c]=(0,b.useState)({}),[d,h]=(0,b.useState)(``),[g,_]=(0,b.useState)(``),[v,y]=(0,b.useState)({firstName:``,lastName:``,email:``,company:``,title:``}),[x,S]=(0,b.useState)(!1),[C,T]=(0,b.useState)(null),[E,D]=(0,b.useState)({}),[O,k]=(0,b.useState)(!1),A=(0,b.useRef)(!1),j=(0,b.useRef)(``),M=ee.length,N=r===0,P=r===M+1,F=r===M+2,I=r-1,L=!N&&!P&&!F?ee[I]:null,R=N?0:Math.min(100,r/(M+2)*100),z=L?s[L.id]:void 0,B=L?z!==void 0:!0;(0,b.useEffect)(()=>{r===0?Q(`intro_view`):r===1?Q(`start`):r===M+1?Q(`situation_view`):r===M+2?Q(`form_view`):r%3==0&&Q(`question_reached`,r)},[r,M]);function V(){F||i(e=>e+1)}function H(){i(e=>Math.max(0,e-1))}function U(e,t){c(n=>({...n,[e]:t})),setTimeout(()=>i(e=>e+1),180)}async function W(t){if(t.preventDefault(),A.current)return;j.current||=crypto.randomUUID();let n=ye.safeParse(v);if(!n.success){let e={};
7n.error.issues.forEach(t=>e[t.path[0]]=t.message),D(e),Q(`form_error`);return}A.current=!0,k(!0),T(null);let r=te(s);Q(`submit`);try{let{submitAssessmentToHubSpot:e}=await a(async()=>{let{submitAssessmentToHubSpot:e}=await import(`./hubspot-assessment.functions-Ct4UauzL.js`);return{submitAssessmentToHubSpot:e}},__vite__mapDeps([13,1,2,3,4,5,6,7,8,9])),t=document.cookie.match(/(?:^|;\s*)hubspotutk=([^;]+)/)?.[1];if(!(await e({data:{...n.data,resultCategory:r.pattern.name,marketingOptIn:x,pageUri:window.location.href.split(`?`)[0],hutk:t&&/^[a-f0-9]{32}$/i.test(t)?t:void 0}})).ok)throw Error(`HubSpot rejected the submission`)}catch(e){console.error(`Assessment submission failed`,e),A.current=!1,k(!1),T(`We couldn't save your details just now. Your answers are kept. Please try again.`);return}try{await ie({...n.data,answers:s,overall:r.total,strongest:r.pattern.name,opportunity:r.lowest.name,patternKey:r.pattern.key,patternName:r.pattern.name,lowestName:r.lowest.name,recommendation:r.recommendation,situationKey:d,situationOther:g,marketingOptIn:x,submissionId:j.current,submittedAt:new Date().toISOString()})}catch(e){console.error(`Lead submit failed`,e)}typeof window<`u`&&(sessionStorage.setItem(`pbd_answers`,JSON.stringify(s)),sessionStorage.setItem(`pbd_lead`,JSON.stringify(n.data)),sessionStorage.setItem(`pbd_situation`,JSON.stringify({key:d,other:g})),sessionStorage.removeItem(`pbd_results_viewed`)),e({to:`/results`})}return(0,w.jsx)(`div`,{className:`min-h-screen hero-bg`,children:(0,w.jsxs)(`section`,{className:`relative flex min-h-screen flex-col overflow-hidden`,children:[(0,w.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-[color:var(--gold)]/[0.06] to-transparent`}),(0,w.jsxs)(`div`,{className:`relative flex flex-1 flex-col lg:flex-row`,children:[(0,w.jsxs)(`div`,{className:`hidden lg:flex w-24 flex-none flex-col items-center justify-between border-r border-[color:var(--gold)]/10 py-10`,children:[(0,w.jsx)(`span`,{className:`-rotate-90 whitespace-nowrap text-[10px] uppercase tracking-[0.4em] text-gold/50`,children:`Vol. 02 · The Diagnostic`}),(0,w.jsx)(`div`,{className:`h-24 w-px bg-[color:var(--gold)]/20`})]}),(0,w.jsxs)(`div`,{className:`flex flex-1 flex-col`,children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-6 md:px-12 lg:px-20`,children:[(0,w.jsxs)(n,{to:`/`,className:`inline-flex items-center gap-2 text-[10px] uppercase tracking-[0.25em] text-muted-foreground transition hover:text-foreground`,children:[(0,w.jsx)(f,{className:`h-3.5 w-3.5`}),` Back to Presence By Design`]}),N?(0,w.jsx)(`a`,{href:`https://modernamericanadvisor.com`,target:`_blank`,rel:`noopener noreferrer`,className:`text-[10px] uppercase tracking-[0.25em] text-muted-foreground transition hover:text-foreground`,children:`Modern American Advisor`}):(0,w.jsx)(`div`,{className:`text-[10px] uppercase tracking-[0.25em] text-muted-foreground`,children:F?`Almost there`:P?`One more question`:`Question ${r} of ${M}`})]}),!N&&(0,w.jsx)(`div`,{className:`px-6 md:px-12 lg:px-20`,children:(0,w.jsx)(G,{value:R,className:`h-1`})}),(0,w.jsx)(`div`,{className:`flex flex-1 flex-col justify-center px-6 py-10 md:px-12 lg:px-20 lg:py-16`,children:(0,w.jsxs)(`div`,{className:`max-w-5xl`,children:[N&&(0,w.jsx)(xe,{onStart:()=>i(1)}),L&&(0,w.jsxs)(`div`,{className:`w-full animate-in fade-in slide-in-from-bottom-3 duration-500`,children:[(0,w.jsxs)(`div`,{className:`mb-8 flex items-center gap-4`,children:[(0,w.jsx)(`span`,{className:`h-px w-10 bg-gold`}),(0,w.jsxs)(`span`,{className:`text-[10px] font-semibold uppercase tracking-[0.35em] text-gold`,children:[`Question `,r,` of `,M]})]}),(0,w.jsx)(`h2`,{className:`max-w-4xl font-display text-2xl leading-tight text-foreground md:text-4xl lg:text-5xl`,children:L.prompt}),(0,w.jsx)(`p`,{className:`mt-4 text-[10px] uppercase tracking-[0.25em] text-muted-foreground`,children:`Think about your last 30 days of important meetings. How often was each statement true?`}),(0,w.jsx)(`div`,{className:`mt-10 grid gap-3 md:grid-cols-2 lg:grid-cols-3`,children:u.map(e=>{let t=z===e.value;return(0,w.jsxs)(`button`,{type:`button`,onClick:()=>U(L.id,e.value),className:`group flex items-center justify-between gap-4 border px-5 py-4 text-left transition active:scale-[0.99] ${t?`border-gold bg-gold/10 text-foreground`:`border-border bg-card text-muted-foreground hover:border-gold/40 hover:text-foreground`}`,children:[(0,w.jsxs)(`span`,{className:`flex items-center gap-3`,children:[(0,w.jsx)(`span`,{className:`font-display text-sm text-gold/70`,children:e.value}),(0,w.jsx)(`span`,{className:`text-sm sm:text-base`,children:e.label})]}),(0,w.jsx)(`span`,{className:`flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border transition ${t?`border-gold bg-gold text-primary-foreground`:`border-border`}`,children:t&&(0,w.jsx)(m,{className:`h-3.5 w-3.5`})})]},e.value)})})]},L.id),P&&(0,w.jsxs)(`div`,{className:`w-full animate-in fade-in slide-in-from-bottom-3 duration-500`,children:[(0,w.jsxs)(`div`,{className:`mb-8 flex items-center gap-4`,children:[(0,w.jsx)(`span`,{className:`h-px w-10 bg-gold`}),(0,w.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-[0.35em] text-gold`,children:`One more question`})]}),(0,w.jsx)(`h2`,{className:`max-w-4xl font-display text-2xl leading-tight text-foreground md:text-4xl lg:text-5xl`,children:`What's the most important situation you want to handle differently?`}),(0,w.jsx)(`p`,{className:`mt-4 text-sm leading-relaxed text-muted-foreground`,children:`Your answer personalizes the action steps in your results.`}),(0,w.jsx)(`div`,{className:`mt-10 grid gap-3 md:grid-cols-2`,children:ne.map(e=>{let t=d===e.key;return(0,w.jsxs)(`button`,{type:`button`,onClick:()=>{h(e.key),e.key!==`other`&&setTimeout(()=>i(e=>e+1),180)},"aria-pressed":t,className:`flex items-center justify-between gap-4 border px-5 py-4 text-left transition active:scale-[0.99] ${t?`border-gold bg-gold/10 text-foreground`:`border-border bg-card text-muted-foreground hover:border-gold/40 hover:text-foreground`}`,children:[(0,w.jsx)(`span`,{className:`text-sm sm:text-base`,children:e.label}),(0,w.jsx)(`span`,{className:`flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-full border transition ${t?`border-gold bg-gold text-primary-foreground`:`border-border`}`,children:t&&(0,w.jsx)(m,{className:`h-3.5 w-3.5`})})]},e.key)})}),d===`other`&&(0,w.jsxs)(`div`,{className:`mt-6 max-w-xl`,children:[(0,w.jsx)(Y,{htmlFor:`situation-other`,className:`text-[10px] uppercase tracking-[0.2em] text-muted-foreground`,children:`Describe the situation`}),(0,w.jsx)(K,{id:`situation-other`,value:g,onChange:e=>_(e.target.value),maxLength:120,placeholder:`For example: board negotiations`,className:`mt-2 h-12 rounded-none border-0 border-b border-border bg-transparent px-0 text-base text-foreground focus-visible:border-gold focus-visible:ring-0`}),(0,w.jsx)(re,{type:`button`,onClick:()=>i(e=>e+1),disabled:!g.trim(),className:`mt-6 h-12 rounded-none bg-gold px-8 text-[11px] font-semibold uppercase tracking-[0.25em] text-primary-foreground hover:bg-gold/90`,children:`Continue`})]})]}),F&&(0,w.jsxs)(`div`,{className:`w-full animate-in fade-in slide-in-from-bottom-3 duration-500`,children:[(0,w.jsxs)(`div`,{className:`mb-8 flex items-center gap-4`,children:[(0,w.jsx)(`span`,{className:`h-px w-10 bg-gold`}),(0,w.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-[0.35em] text-gold`,children:`Your Results`})]}),(0,w.jsxs)(`div`,{className:`grid grid-cols-1 gap-10 lg:grid-cols-12 lg:gap-12`,children:[(0,w.jsxs)(`div`,{className:`lg:col-span-7 space-y-4`,children:[(0,w.jsx)(`h2`,{className:`font-display text-3xl leading-tight text-foreground md:text-5xl`,children:`Your Meeting Pattern Is Ready.`}),(0,w.jsx)(`p`,{className:`text-base leading-relaxed text-muted-foreground md:text-lg`,children:`Enter your details to reveal your primary pattern, what it costs you in the room, and the one change to make in your next meeting. We'll also send a copy of your results to your inbox s
7o you can return to them later.`}),(0,w.jsx)(Se,{answers:s})]}),(0,w.jsxs)(`div`,{className:`lg:col-span-5 lg:border-l lg:border-[color:var(--gold)]/20 lg:pl-10`,children:[(0,w.jsxs)(`form`,{onSubmit:W,className:`space-y-4`,children:[(0,w.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[[`firstName`,`First Name`],[`lastName`,`Last Name`]].map(([e,t])=>(0,w.jsx)($,{label:t,name:e,value:v[e],error:E[e],onChange:t=>y({...v,[e]:t})},e))}),(0,w.jsx)($,{label:`Email`,name:`email`,type:`email`,value:v.email,error:E.email,onChange:e=>y({...v,email:e})}),(0,w.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,w.jsx)($,{label:`Company`,name:`company`,value:v.company,error:E.company,onChange:e=>y({...v,company:e})}),(0,w.jsx)($,{label:`Title`,name:`title`,value:v.title,error:E.title,onChange:e=>y({...v,title:e})})]}),(0,w.jsx)(`p`,{className:`pt-1 text-xs leading-relaxed text-muted-foreground`,children:`Your name and email are used to deliver your results.`}),(0,w.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-3 text-xs leading-relaxed text-muted-foreground`,children:[(0,w.jsx)(`input`,{type:`checkbox`,name:`marketingOptIn`,checked:x,onChange:e=>S(e.target.checked),className:`mt-0.5 h-4 w-4 shrink-0 accent-[color:var(--gold)]`}),(0,w.jsx)(`span`,{children:`Yes, send me occasional Presence by Design insights and program updates. Optional.`})]}),C&&(0,w.jsx)(`p`,{role:`alert`,className:`border border-destructive/40 px-4 py-3 text-xs leading-relaxed text-destructive`,children:C}),(0,w.jsxs)(`button`,{type:`submit`,disabled:O,className:`group mt-2 inline-flex w-full items-center justify-between gap-4 bg-gold px-6 py-4 text-[11px] font-bold uppercase tracking-[0.25em] text-primary-foreground transition hover:bg-foreground disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:bg-gold`,children:[O?`Revealing Your Pattern`:C?`Try Again`:`Reveal My Pattern`,(0,w.jsx)(p,{className:`h-4 w-4 transition-transform group-hover:translate-x-1`})]})]}),(0,w.jsx)(`div`,{className:`mt-8 border-t border-[color:var(--gold)]/20 pt-6`,children:(0,w.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:`Insights and updates only if you opt in above, and you can unsubscribe anytime.`})})]})]})]})]})}),!N&&(0,w.jsxs)(`div`,{className:`flex items-center justify-between border-t border-[color:var(--gold)]/10 px-6 py-6 md:px-12 lg:px-20`,children:[(0,w.jsxs)(`button`,{onClick:H,className:`inline-flex items-center gap-2 text-[10px] uppercase tracking-[0.25em] text-muted-foreground transition hover:text-foreground`,children:[(0,w.jsx)(f,{className:`h-3.5 w-3.5`}),` Back`]}),L&&(0,w.jsxs)(`button`,{onClick:V,disabled:!B,className:`inline-flex items-center gap-2 text-[10px] uppercase tracking-[0.25em] text-gold transition disabled:opacity-30`,children:[`Skip `,(0,w.jsx)(p,{className:`h-3.5 w-3.5`})]}),P&&(0,w.jsxs)(`button`,{onClick:V,className:`inline-flex items-center gap-2 text-[10px] uppercase tracking-[0.25em] text-gold transition`,children:[`Continue `,(0,w.jsx)(p,{className:`h-3.5 w-3.5`})]})]})]})]}),(0,w.jsx)(`div`,{className:`h-px w-full bg-gold`})]})})}function xe({onStart:e}){return(0,w.jsxs)(`div`,{className:`animate-in fade-in duration-700`,children:[(0,w.jsxs)(`div`,{className:`mb-8 flex items-center gap-4`,children:[(0,w.jsx)(`span`,{className:`h-px w-10 bg-gold`}),(0,w.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-[0.35em] text-gold`,children:`Executive Presence Diagnostic`})]}),(0,w.jsxs)(`h1`,{className:`max-w-4xl font-display text-3xl leading-[1.05] tracking-tight text-foreground md:text-5xl lg:text-6xl`,children:[`AI can write your email.`,` `,(0,w.jsx)(`span`,{className:`text-gold`,children:`It can't run your meeting.`})]}),(0,w.jsx)(`p`,{className:`mt-6 max-w-3xl text-lg leading-relaxed text-muted-foreground`,children:`Find out what happens to your presence when the conversation moves beyond the script.`}),(0,w.jsxs)(`div`,{className:`mt-8 grid grid-cols-1 gap-10 lg:mt-10 lg:grid-cols-12 lg:gap-12`,children:[(0,w.jsxs)(`div`,{className:`order-2 lg:order-1 lg:col-span-7 space-y-4`,children:[(0,w.jsx)(`p`,{className:`text-base leading-relaxed text-foreground md:text-lg`,children:`AI can help you prepare the email, presentation or talking points. But when the conversation moves off-script, your presence shapes how y
7ou communicate, make decisions and earn trust.`}),(0,w.jsx)(`p`,{className:`text-base leading-relaxed text-muted-foreground md:text-lg`,children:`This diagnostic looks at where you lose clarity, objectivity or influence in real conversations. Twelve statements about your last 30 days of important meetings point to the one pattern most likely to take over when the stakes rise, and what it costs you.`}),(0,w.jsx)(`p`,{className:`text-base leading-relaxed text-foreground md:text-lg`,children:`Think about your last 30 days of important meetings. Answer honestly, not ideally.`}),(0,w.jsxs)(`figure`,{className:`border-l-2 border-[color:var(--gold)]/50 pl-5`,children:[(0,w.jsx)(`blockquote`,{className:`text-base italic leading-relaxed text-foreground`,children:`“Kathryn has a rare ability to unpack something leaders often feel but struggle to name. Her approach gave me a clearer understanding of how I was being experienced and what needed to change.”`}),(0,w.jsx)(`figcaption`,{className:`mt-2 text-[10px] uppercase tracking-[0.25em] text-muted-foreground`,children:`Jonathan B.`})]})]}),(0,w.jsxs)(`div`,{className:`order-1 lg:order-2 lg:col-span-5 flex flex-col gap-4 lg:border-l lg:border-[color:var(--gold)]/20 lg:pl-10`,children:[(0,w.jsxs)(`button`,{onClick:e,className:`group inline-flex items-center justify-between gap-4 bg-gold px-6 py-4 text-[11px] font-bold uppercase tracking-[0.25em] text-primary-foreground transition hover:bg-foreground`,children:[`Start the Diagnostic`,(0,w.jsx)(p,{className:`h-4 w-4 transition-transform group-hover:translate-x-1`})]}),(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Built from executive coaching work with leaders across media, technology and financial services.`}),(0,w.jsxs)(`div`,{className:`border border-border bg-card p-5`,children:[(0,w.jsx)(`div`,{className:`text-[10px] uppercase tracking-[0.3em] text-gold`,children:`The Scale`}),(0,w.jsx)(`div`,{className:`mt-3 flex flex-wrap gap-x-5 gap-y-2 text-sm text-muted-foreground`,children:u.map(e=>(0,w.jsxs)(`span`,{children:[(0,w.jsx)(`span`,{className:`text-gold`,children:e.value}),` `,e.label]},e.value))}),(0,w.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:`12 statements. About three minutes.`})]}),(0,w.jsxs)(`a`,{href:`/`,className:`inline-flex items-center justify-between gap-4 border border-[color:var(--gold)]/40 px-6 py-4 text-[11px] font-bold uppercase tracking-[0.25em] text-gold transition hover:border-[color:var(--gold)] hover:text-foreground`,children:[`Return to Homepage`,(0,w.jsx)(p,{className:`h-4 w-4`})]})]})]})]})}function Se({answers:e}){let t=te(e),n=d[t.pattern.key];return(0,w.jsxs)(`div`,{className:`relative mt-8 overflow-hidden border border-border bg-card p-6`,children:[(0,w.jsx)(`div`,{className:`text-[10px] uppercase tracking-[0.3em] text-gold`,children:`Your personalized pattern read is ready`}),(0,w.jsxs)(`div`,{className:`mt-4 select-none blur-[7px]`,"aria-hidden":`true`,children:[(0,w.jsx)(`div`,{className:`font-display text-3xl leading-snug text-foreground md:text-4xl`,children:n.headline}),(0,w.jsx)(`div`,{className:`mt-5 space-y-3`,children:t.dimensions.map(e=>(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`flex items-center justify-between text-xs text-muted-foreground`,children:[(0,w.jsx)(`span`,{children:e.name}),(0,w.jsx)(`span`,{children:e.level===`high`?`Most frequent`:e.level===`low`?`Least frequent`:`Frequent`})]}),(0,w.jsx)(`div`,{className:`mt-1 h-1 w-full bg-border`,children:(0,w.jsx)(`div`,{className:`h-1 bg-gold`,style:{width:`${e.mean/5*100}%`}})})]},e.key))})]}),(0,w.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-2/3 bg-gradient-to-t from-card via-card/85 to-transparent`}),(0,w.jsx)(`p`,{className:`relative mt-5 text-sm text-muted-foreground`,children:`Enter your details to unlock your primary pattern and your first action.`})]})}function $({label:e,name:t,value:n,onChange:r,error:i,type:a=`text`}){return(0,w.jsxs)(`div`,{children:[(0,w.jsx)(Y,{htmlFor:t,className:`text-[10px] uppercase tracking-[0.2em] text-muted-foreground`,children:e}),(0,w.jsx)(K,{id:t,type:a,value:n,onChange:e=>r(e.target.value),className:`mt-2 h-12 rounded-none border-0 border-b border-border bg-transparent px-0 text-base text-foreground focus-visible:border-gold focus-visible:ring-0`}),i&&(0,w.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:i})]})}export{be as component};

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.