PageSourceSearch

https://www.eqiqs.com/assets/CompatibilityCalculatorPage-D8NgmbRS.js

js eqiqs.com collected 2026-10-02 00:19:11 UTC 18,176 bytes, 7 lines download raw bytes

1import{j as e}from"./vendor-ui-x7D0iLe8.js";import{r as i,L as m}from"./vendor-react-aMKJrssV.js";import{C as W}from"./CompatibilityScoreBadge-SfWg96zD.js";import{s as te}from"./lead-capture-DwV1ZfAz.js";import{l as ie,f as t,B as b,S as D,A as le,t as R,u as re}from"./index-CgmaCIwJ.js";import{I as x}from"./input-DqgkKQ22.js";import{L as o}from"./label-iymYxFO8.js";import{S as y,a as j,b as f,c as v,d as g}from"./select-DZWwbpGF.js";import{P as oe}from"./PublicNav-DqzjaHuJ.js";import{P as ce}from"./PublicFooter-C4PEGJjI.js";import{o as ne}from"./og-images-CVCeFuDy.js";import{S as me}from"./SocialShareButtons-CPEVK1Gn.js";import{a as de,b as xe}from"./seo-helpers-C7pKcsTL.js";import{A as pe,a as ue,b as he,c as be}from"./accordion-BQqVnEOh.js";import{g as Z,a as O,c as ye}from"./compatibility-engine-29IBmdkI.js";import{m as l,A as je}from"./vendor-motion-C3azNPMs.js";import{C as fe}from"./calculator-DVPszRLq.js";import{L as ve}from"./loader-circle-BqgSt_yg.js";import{R as ge}from"./rotate-ccw-CBUh3w_6.js";import"./score-band-DmdY1aX0.js";import"./score-color-DxC8smtR.js";import"./info-DbpO-xdP.js";import"./vendor-data-LOeL2b27.js";import"./chevron-down-D2v2TI3O.js";import"./chevron-up-D8t5pLNk.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"./globe-F05gZjBR.js";import"./sun-Bn04Fmp8.js";import"./moon-CzA-2q5t.js";import"./rocket-8HI0C91g.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"./twitter-CiWe9foJ.js";import"./facebook-sazrddlz.js";import"./message-circle-CZb9xIxV.js";import"./smartphone-ByouCCHO.js";import"./mail-Du-dpIAW.js";import"./profile-completeness-DgJq72QS.js";const V=["ISTJ","ISFJ","INFJ","INTJ","ISTP","ISFP","INFP","INTP","ESTP","ESFP","ENFP","ENTP","ESTJ","ESFJ","ENFJ","ENTJ"],G=[{value:"words",label:"Words of Affirmation"},{value:"acts",label:"Acts of Service"},{value:"gifts",label:"Receiving Gifts"},{value:"time",label:"Quality Time"},{value:"touch",label:"Physical Touch"}],_=[{q:"What is a compatibility calculator?",a:"A compatibility calculator evaluates how well two people align across psychological dimensions like personality type, zodiac, love languages, and emotional intelligence. Our calculator uses 21 scientifically-backed frameworks for comprehensive results."},{q:"How accurate is this compatibility calculator?",a:"Accuracy increases with the amount of data provided. Adding personality types, zodiac signs, and love languages gives our engine more dimensions to analyze, producing a more nuanced and reliable score."},{q:"Can I share my compatibility results?",a:"Yes! After calculating your score, you can share results directly to X, Facebook, LinkedIn, WhatsApp, and more using our built-in social sharing buttons."},{q:"What determines compatibility between two people?",a:"Compatibility is influenced by communication style alignment, emotional intelligence, attachment patterns, shared values, and personality trait complementarity. Our engine weighs all of these factors."}],C={hidden:{opacity:0,y:20},visible:d=>({opacity:1,y:0,transition:{delay:d*.1,duration:.5}})},ua=()=>{const[d,k]=i.useState(""),[N,T]=i.useState(""),[c,I]=i.useState(""),[n,P]=i.useState(""),[w,E]=i.useState(""),[S,A]=i.useState(""),[L,B]=i.useState(""),[F,$]=i.useState(""),[z,H]=i.useState("romantic"),[s,q]=i.useState(null),[p,U]=i.useState(""),[X,Y]=i.useState(!1),[J,M]=i.useState(!1),K=()=>{if(!c||!n)return;const Q=ye({id:"calc-1",name:d||"Person A",dateOfBirth:c,mbtiType:w||void 0,loveLanguage:L||void 0},{id:"calc-2",name:N||"Person B",dateOfBirth:n,mbtiType:S||void 0,loveLanguage:F||void 0},z);q(Q),R("calculator_completed",{score:Q.overallScore})},ee=async a=>{if(a.preventDefault(),!p.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p))return;M(!0);const r=await te({email:p,source:"compatibility_calculator"});if(M(!1),!r){re.error("We couldn't save your email. Please check your connection and try again.");return}R("calculator_email_captured",{score:s?.overallScore??0}),Y(!0)},ae=()=>{q(null),k(""),T(""),I(""),P(""),E(""),A(""),B(""),$("")},u=d||"Person A",h=N||"Person B",se=s?`🧠 ${u} & ${h}'s compatibility score is ${s.overallScore}/100 on EQIQs!
2
3☉ ${s.westernZodiac.sign1} × ${s.westernZodiac.sign2}
4${s.mbti.available?`🧠 ${s.mbti.type1} × ${s.mbti.type2}
5`:""}💡 Top strength: ${s.strengths[0]}
6
7Calculate your own compatibility — free:`:"";return e.jsxs("div",{className:"min-h-dvh bg-background",children:[e.jsx(ie,{title:"Compatibility Calculator — Free Instant Score | EQIQs",description:"Calculate compatibility between two people using personality types, zodiac signs, and love languages. Get an instant score powered by 21 psychometric frameworks.",path:"/compatibility-calculator",image:ne.compatibilityCalculator,jsonLd:[de([{name:"Home",path:"/"},{name:"Compatibility Tests",path:"/compatibility-tests"},{name:"Compatibility Calculator",path:"/compatibility-calculator"}]),xe(_)]}),e.jsx(oe,{}),e.jsxs("main",{children:[e.jsxs("section",{className:"relative pt-32 pb-16 px-6",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/10 via-accent/5 to-transparent"}),e.jsxs("div",{className:"relative max-w-2xl mx-auto text-center",children:[e.jsx(l.div,{initial:"hidden",animate:"visible",variants:C,custom:0,children:e.jsxs(t,{variant:"secondary",className:"mb-6 px-4 py-1.5 text-xs font-body gap-1.5",children:[e.jsx(fe,{className:"h-3 w-3"})," Free Tool"]})}),e.jsx(l.h1,{initial:"hidden",animate:"visible",variants:C,custom:1,className:"text-4xl sm:text-5xl font-bold leading-[1.1] mb-6 text-balance",children:"Compatibility Calculator"}),e.jsx(l.p,{initial:"hidden",animate:"visible",variants:C,custom:2,className:"text-lg text-muted-foreground max-w-lg mx-auto font-body text-balance",children:"Enter two profiles and get an instant compatibility score with detailed breakdown."})]})]}),e.jsx("section",{className:"py-12 px-6",children:e.jsx("div",{className:"max-w-2xl mx-auto",children:e.jsx(je,{mode:"wait",children:s?X?e.jsxs(l.div,{initial:{opacity:0,scale:.95}
7,animate:{opacity:1,scale:1},className:"stat-card p-6 sm:p-8",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsxs("p",{className:"text-sm text-muted-foreground font-body mb-2",children:[u," & ",h]}),e.jsxs("div",{className:"relative h-40 w-40 mx-auto mb-4",children:[e.jsxs("svg",{viewBox:"0 0 120 120",className:"h-full w-full -rotate-90",children:[e.jsx("circle",{cx:"60",cy:"60",r:"52",fill:"none",stroke:"hsl(var(--muted))",strokeWidth:"8"}),e.jsx(l.circle,{cx:"60",cy:"60",r:"52",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"8",strokeLinecap:"round",initial:{strokeDasharray:"0 327"},animate:{strokeDasharray:`${s.overallScore/100*327} 327`},transition:{duration:1.2,ease:"easeOut"}})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[e.jsx(l.span,{className:"text-5xl font-bold font-display",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:s.overallScore}),e.jsx("span",{className:"text-xs text-muted-foreground font-body",children:"/ 100"})]})]}),e.jsx("div",{className:"flex justify-center mb-3",children:e.jsx(W,{score:s.overallScore})}),e.jsxs("div",{className:"flex flex-wrap gap-1.5 justify-center mb-4",children:[e.jsxs(t,{variant:"secondary",className:"text-xs capitalize",children:[s.westernZodiac.sign1," × ",s.westernZodiac.sign2]}),s.mbti.available&&e.jsxs(t,{variant:"secondary",className:"text-xs",children:[s.mbti.type1," × ",s.mbti.type2]}),e.jsx(t,{variant:"secondary",className:"text-xs capitalize",children:s.context})]})]}),e.jsx("div",{className:"space-y-3 mb-6",children:s.subscoreInsights.map(a=>e.jsxs("div",{className:"p-3 rounded-lg bg-muted/30 border border-border/50",children:[e.jsxs("div",{className:"flex justify-between text-xs font-body mb-1",children:[e.jsx("span",{className:"font-semibold",children:a.label}),e.jsxs("span",{className:"font-semibold text-muted-foreground",children:[a.value,"/100"]})]}),e.jsx("div",{className:"h-1.5 bg-muted rounded-full overflow-hidden mb-2",children:e.jsx(l.div,{className:"h-full rounded-full bg-primary",initial:{width:0},animate:{width:`${a.value}%`},transition:{duration:.8,delay:.3}})}),e.jsx("p",{className:"text-xs text-muted-foreground font-body",children:a.why})]},a.label))}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-6",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-primary/5 border border-primary/10",children:[e.jsx("h4",{className:"text-sm font-bold mb-2",children:"💪 Strengths"}),e.jsx("ul",{className:"space-y-1.5",children:s.strengths.slice(0,3).map((a,r)=>e.jsxs("li",{className:"text-xs text-muted-foreground font-body",children:["• ",a]},r))})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-destructive/5 border border-destructive/10",children:[e.jsx("h4",{className:"text-sm font-bold mb-2",children:"⚡ Growth Areas"}),e.jsx("ul",{className:"space-y-1.5",children:s.frictionPoints.slice(0,3).map((a,r)=>e.jsxs("li",{className:"text-xs text-muted-foreground font-body",children:["• ",a]},r))})]})]}),e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs(b,{variant:"outline",size:"sm",onClick:ae,className:"gap-1.5",children:[e.jsx(ge,{className:"h-3.5 w-3.5"})," New Calculation"]}),e.jsx(me,{title:`${u} & ${h} Compatibility — ${s.overallScore}/100`,text:se,url:"https://eqiqs.com/compatibility-calculator",hashtags:["EQIQs","CompatibilityTest","PersonalityMatch"]})]})]},"result"):e.jsxs(l.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"stat-card p-6 sm:p-8 text-center",children:[e.jsxs("div",{className:"relative h-28 w-28 mx-auto mb-4",children:[e.jsxs("svg",{viewBox:"0 0 120 120",className:"h-full w-full -rotate-90",children:[e.jsx("circle",{cx:"60",cy:"60",r:"52",fill:"none",stroke:"hsl(var(--muted))",strokeWidth:"8"}),e.jsx(l.circle,{cx:"60",cy:"60",r:"52",fill:"none",stroke:"hsl(var(--primary))",strokeWidth:"8",strokeLinecap:"round",initial:{strokeDasharray:"0 327"},animate:{strokeDasharray:`${s.overallScore/100*327} 327`},transition:{duration:1.2,ease:"easeOut"}})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[e.jsx(l.span,{className:"text-4xl font-bold font-display",initial:{opacity:0}
7,animate:{opacity:1},transition:{delay:.5},children:s.overallScore}),e.jsx("span",{className:"text-xs text-muted-foreground font-body",children:"/ 100"})]})]}),e.jsx("div",{className:"flex justify-center mb-2",children:e.jsx(W,{score:s.overallScore})}),e.jsxs("p",{className:"text-sm font-semibold mb-1",children:[u," & ",h]}),e.jsx("p",{className:"text-xs text-muted-foreground font-body mb-5",children:"Enter your email to unlock the full detailed breakdown with strengths, challenges, and framework analysis."}),e.jsxs("form",{onSubmit:ee,className:"max-w-xs mx-auto space-y-3",children:[e.jsx(x,{"aria-label":"Email address",type:"email",placeholder:"[email protected]",value:p,onChange:a=>U(a.target.value),className:"min-h-[44px] text-base",required:!0}),e.jsxs(b,{type:"submit",className:"w-full gap-2",disabled:J,children:[J?e.jsx(ve,{className:"h-4 w-4 animate-spin"}):e.jsx(D,{className:"h-4 w-4"}),"Unlock Full Results"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground font-body mt-2",children:"No spam — just your results + compatibility tips"})]},"email-gate"):e.jsxs(l.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:-12},className:"stat-card p-6 sm:p-8 space-y-6",children:[e.jsx("div",{className:"flex gap-2 justify-center",children:["romantic","business","friendship"].map(a=>e.jsx("button",{onClick:()=>H(a),className:`px-4 py-2 rounded-full text-xs font-body font-medium transition-colors capitalize ${z===a?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:a},a))}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-sm font-bold font-body text-center",children:"Person 1"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Name"}),e.jsx(x,{"aria-label":"First person's name",placeholder:"e.g. Alex",value:d,onChange:a=>k(a.target.value)})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Date of Birth *"}),e.jsx(x,{"aria-label":"First person's date of birth",type:"date",value:c,onChange:a=>I(a.target.value)}),c&&e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx(t,{variant:"secondary",className:"text-xs capitalize",children:Z(c)}),e.jsx(t,{variant:"secondary",className:"text-xs capitalize",children:O(c)})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Personality Type"}),e.jsxs(y,{value:w,onValueChange:E,children:[e.jsx(j,{"aria-label":"MBTI type",className:"text-sm",children:e.jsx(f,{placeholder:"MBTI type..."})}),e.jsx(v,{children:V.map(a=>e.jsx(g,{value:a,children:a},a))})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Love Language"}),e.jsxs(y,{value:L,onValueChange:B,children:[e.jsx(j,{"aria-label":"Select",className:"text-sm",children:e.jsx(f,{placeholder:"Select..."})}),e.jsx(v,{children:G.map(a=>e.jsx(g,{value:a.value,children:a.label},a.value))})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h3",{className:"text-sm font-bold font-body text-center",children:"Person 2"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Name"}),e.jsx(x,{"aria-label":"Second person's name",placeholder:"e.g. Jordan",value:N,onChange:a=>T(a.target.value)})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Date of Birth *"}),e.jsx(x,{"aria-label":"Second person's date of birth",type:"date",value:n,onChange:a=>P(a.target.value)}),n&&e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx(t,{variant:"secondary",className:"text-xs capitalize",children:Z(n)}),e.jsx(t,{variant:"secondary",className:"text-xs capitalize",children:O(n)})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Personality Type"}),e.jsxs(y,{value:S,onValueChange:A,children:[e.jsx(j,{"aria-label":"MBTI type",className:"text-sm",children:e.jsx(f,{placeholder:"MBTI type..."})}),e.jsx(v,{children:V.map(a=>e.jsx(g,{value:a,children:a},a))})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(o,{className:"text-xs font-body",children:"Love Language"}),e.jsxs(y,{value:F,onValueChange:$,children:[e.jsx(j,{"aria-label":"Select",className:"text-sm",children:e.jsx(f,{placeholder:"Select..."})}),e.jsx(v,{children:G.map(a=>e.jsx(g,{value:a.value,children:a.label},a.value))})]})]})]})]}),e.jsxs(b,{className:"w-full",size:"lg",disabled:!c||!n,onClick:K,children:[e.jsx(D,{className:"h-4 w-4 mr-2"})," Calculate Compatibility"]})]},"form")})})}),e.jsx("section",{className:"py-20 px-6 border-t border-border/30",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold mb-3",children:"Compatibility Calculator FAQs"}),e.jsx("p",{className:"text-muted-foreground font-body",children:"Common questions about compatibility scoring"})]}),e.jsx(pe,{type:"single",collapsible:!0,className:"space-y-3",children:_.map((a,r)=>
7e.jsxs(ue,{value:`faq-${r}`,className:"stat-card border-border px-5",children:[e.jsx(he,{className:"text-sm font-body font-medium text-left hover:no-underline py-4",children:a.q}),e.jsx(be,{className:"text-sm text-muted-foreground font-body leading-relaxed pb-4",children:a.a})]},r))})]})}),e.jsx("section",{className:"py-16 px-6 border-t border-border/30",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Explore More Compatibility Tests"}),e.jsxs("div",{className:"flex flex-wrap gap-2 justify-center",children:[e.jsx(m,{to:"/compatibility-test",children:e.jsx(t,{variant:"outline",className:"px-3 py-1.5 text-xs font-body hover:bg-primary/10 cursor-pointer",children:"Compatibility Test"})}),e.jsx(m,{to:"/relationship-compatibility-test",children:e.jsx(t,{variant:"outline",className:"px-3 py-1.5 text-xs font-body hover:bg-primary/10 cursor-pointer",children:"Relationship Test"})}),e.jsx(m,{to:"/mbti-compatibility-test",children:e.jsx(t,{variant:"outline",className:"px-3 py-1.5 text-xs font-body hover:bg-primary/10 cursor-pointer",children:"MBTI® Assessment"})}),e.jsx(m,{to:"/zodiac-sign-compatibility-test",children:e.jsx(t,{variant:"outline",className:"px-3 py-1.5 text-xs font-body hover:bg-primary/10 cursor-pointer",children:"Zodiac Test"})}),e.jsx(m,{to:"/compatibility-with-your-partner",children:e.jsx(t,{variant:"outline",className:"px-3 py-1.5 text-xs font-body hover:bg-primary/10 cursor-pointer",children:"Partner Test"})}),e.jsx(m,{to:"/mbti-vs-zodiac-compatibility",children:e.jsx(t,{variant:"outline",className:"px-3 py-1.5 text-xs font-body hover:bg-primary/10 cursor-pointer",children:"MBTI vs Zodiac"})})]})]})}),e.jsx("section",{className:"py-20 px-6 bg-gradient-to-br from-primary/10 via-background to-accent/10 border-y border-primary/20",children:e.jsxs("div",{className:"max-w-xl mx-auto text-center",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Take the EQIQs Compatibility Assessment"}),e.jsx("p",{className:"text-muted-foreground font-body mb-8 text-balance",children:"Get the most comprehensive compatibility analysis available — powered by 21 psychometric frameworks and our patent-aligned scoring engine."}),e.jsx(m,{to:"/compatibility-test",children:e.jsxs(b,{size:"lg",className:"glow-primary text-base px-8",children:["Start Free Assessment ",e.jsx(le,{className:"ml-1 h-4 w-4"})]})})]})})]}),e.jsx(ce,{})]})};export{ua 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.