PageSourceSearch

https://lovebridge.love/assets/Results-B1YQGEQS.js

js lovebridge.love collected 2026-10-04 01:42:11 UTC 54,742 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/qr-vendor-BZupcBsD.js","assets/ui-vendor-qcG6DIg5.js","assets/PdfReport-BBwDRwAb.js","assets/index-D9ZZ-GrO.js","assets/dropdown-menu-Cy6tfpex.js","assets/utils-vendor-BSnEdsAz.js","assets/router-vendor-C6BU_BAd.js","assets/query-vendor-cKxl6-at.js","assets/index-ChlSPgqa.css","assets/index-6sdqbm2o.js"])))=>i.map(i=>d[i]);
2import{_ as V,a as re,d as kt,g as Pe,b as te}from"./index-D9ZZ-GrO.js";import{r as m,j as e,x as At,y as _t,z as Ue,A as St,B as ze,D as Me,O as He}from"./ui-vendor-qcG6DIg5.js";import{f as me,N as Bt}from"./router-vendor-C6BU_BAd.js";import{a as U,u as C,o as M,P as le,j as Te,B as Q,c as A,b as xe,p as se,q as It,h as z}from"./dropdown-menu-Cy6tfpex.js";import{t as w,I as Ct,a as Rt}from"./analytics-D2o6XuYe.js";import{P as Pt,a as Tt,b as Et,S as Lt}from"./popover-CU8c6oMu.js";import{e as ie,i as We,M as Ge,S as oe,j as Ke,I as Dt,D as Ee,X as Ft,H as pe,L as Ot,g as $t,A as Ut,R as zt}from"./utils-vendor-BSnEdsAz.js";import{R as Mt,a as Ht,P as Wt,b as Gt,c as Kt,d as Le,L as qt}from"./charts-vendor-ayMZkD2z.js";import"./query-vendor-cKxl6-at.js";const qe={"0-0":["both","both","both","both","both"],"1-1":["both","both","both","both","both"],"2-2":["both","both","both","both","both"],"3-3":["both","both","both","both","both"],"4-4":["both","both","both","both","both"],"0-1":["both","A","B","A","B"],"0-2":["both","A","B","A","B"],"0-3":["both","A","B","A","B"],"0-4":["both","A","B","A","B"],"1-2":["both","A","B","A","B"],"1-3":["both","A","B","A","B"],"1-4":["both","A","B","A","B"],"2-3":["both","A","B","A","B"],"2-4":["both","A","B","A","B"],"3-4":["both","A","B","A","B"]};function Ye(t){const a=qe[t];if(!a)return;const r=`tips:${t}.title`,o=U.t(r);if(o!==r)return{title:o,tips:a.map((c,i)=>({forPartner:c,text:U.t(`tips:${t}.${i+1}`)}))}}Object.fromEntries(Object.keys(qe).map(t=>[t,Ye(t)]).filter(t=>t[1]!==void 0));const k={width:1080,height:1920},Yt='"Caveat", cursive',ae='"Plus Jakarta Sans", sans-serif',F="#B8976A",O="#D4BC94",$="#be123c",Vt="radial-gradient(ellipse at 20% 15%, rgba(232,186,186,0.12), transparent 50%), radial-gradient(ellipse at 80% 85%, rgba(216,180,254,0.08), transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(184,151,106,0.04), transparent 70%), linear-gradient(175deg, #FBF5EE 0%, #FFF9F4 35%, #FEF2EC 60%, #F7F0E8 100%)",K=({style:t})=>e.jsxs("svg",{width:"160",height:"160",viewBox:"0 0 160 160",fill:"none",style:{position:"absolute",opacity:.18,...t},children:[e.jsx("path",{d:"M10 150 C10 80 30 40 80 20 C60 50 50 80 50 110 C50 80 70 50 110 30 C80 55 65 90 70 130 C75 90 100 60 140 10",stroke:F,strokeWidth:"2.5",fill:"none",strokeLinecap:"round"}),e.jsx("path",{d:"M15 140 C25 100 40 60 75 35 C55 60 48 90 52 120",stroke:F,strokeWidth:"1.5",fill:"none",strokeLinecap:"round",opacity:"0.6"}),e.jsx("circle",{cx:"80",cy:"20",r:"4",fill:F,opacity:"0.3"}),e.jsx("circle",{cx:"140",cy:"10",r:"3",fill:F,opacity:"0.25"}),e.jsx("circle",{cx:"10",cy:"150",r:"5",fill:F,opacity:"0.2"})]}),D=({size:t,color:a,opacity:r=1})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:a,opacity:r,children:e.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),ne=({width:t=600,mt:a=0,mb:r=0})=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:0,marginTop:a,marginBottom:r,width:t},children:[e.jsx("div",{style:{flex:1,height:1,background:`linear-gradient(90deg, transparent, ${O})`}}),e.jsx("div",{style:{width:10,height:10,transform:"rotate(45deg)",border:`1.5px solid ${O}`,margin:"0 12px",flexShrink:0}}),e.jsx("div",{style:{flex:1,height:1,background:`linear-gradient(90deg, ${O}, transparent)`}})]}),ce=m.forwardRef(({primaryA:t,primaryB:a,labelA:r,labelB:o,qrDataUrl:c},i)=>{const{t:n}=C("results"),d=M(t),h=M(a),g=n(t===a?"share.card.hookSame":"share.card.hookDifferent");return e.jsxs("div",{ref:i,style:{width:k.width,height:k.height,background:Vt,display:"flex",flexDirection:"column",fontFamily:Yt,position:"relative",overflow:"hidden",color:"#1C1917",boxSizing:"border-box"},children:[e.jsx("div",{style:{position:"absolute",inset:24,border:`2px solid ${O}`,borderRadius:20,pointerEvents:"none"}}),e.jsx("div",{style:{position:"absolute",inset:34,border:"1px solid rgba(184,151,106,0.2)",borderRadius:14,pointerEvents:"none"}}
2),e.jsx(K,{style:{top:16,left:16}}),e.jsx(K,{style:{top:16,right:16,transform:"scaleX(-1)"}}),e.jsx(K,{style:{bottom:16,left:16,transform:"scaleY(-1)"}}),e.jsx(K,{style:{bottom:16,right:16,transform:"scale(-1,-1)"}}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"80px 56px",gap:0},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,marginBottom:36},children:[e.jsxs("div",{style:{width:100,height:100,borderRadius:"50%",background:"radial-gradient(circle at 40% 35%, #e8707e 0%, #c91a3d 35%, #9f1239 65%, #7f1030 85%, #6b0e28 100%)",boxShadow:"inset 0 3px 8px rgba(255,255,255,0.25), inset 0 -4px 8px rgba(0,0,0,0.2), 0 4px 16px rgba(159,18,57,0.3), 0 8px 32px rgba(159,18,57,0.15)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[e.jsx("div",{style:{position:"absolute",inset:6,borderRadius:"50%",border:"1.5px solid rgba(255,255,255,0.12)"}}),e.jsx(D,{size:40,color:"rgba(255,255,255,0.92)"})]}),e.jsx("div",{style:{fontSize:48,color:F,lineHeight:1,letterSpacing:2},children:"LoveBridge"})]}),e.jsx(ne,{width:500,mb:44}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:0,position:"relative"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",zIndex:2},children:[e.jsxs("div",{style:{position:"relative"},children:[e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:380,height:380,borderRadius:"50%",background:"radial-gradient(circle, rgba(232,186,186,0.2) 0%, transparent 70%)"}}),e.jsx("img",{src:le[t].replace(".png","-480.webp"),alt:r,style:{width:440,height:440,objectFit:"contain",borderRadius:48,filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.1))",position:"relative"}})]}),e.jsx("div",{style:{fontSize:44,marginTop:8,color:"#44403c"},children:r}),e.jsxs("div",{style:{marginTop:10,fontSize:22,fontWeight:700,fontFamily:ae,color:$,background:"rgba(255,241,242,0.6)",borderRadius:99,padding:"6px 22px",border:"1px solid rgba(190,18,60,0.12)",letterSpacing:.5,display:"inline-flex",alignItems:"center",gap:8},children:[e.jsx(Te,{name:d.icon,width:22,height:22,style:{color:$}}),e.jsx("span",{children:d.shortName})]})]}),e.jsxs("div",{style:{position:"absolute",left:"50%",top:"32%",transform:"translateX(-50%)",zIndex:3},children:[e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:140,height:140,borderRadius:"50%",background:"radial-gradient(circle, rgba(190,18,60,0.08) 0%, transparent 70%)"}}),e.jsx("div",{style:{width:80,height:80,borderRadius:"50%",background:"linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%)",boxShadow:"0 4px 20px rgba(190,18,60,0.12), 0 1px 4px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:e.jsx(D,{size:38,color:$})})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",zIndex:2},children:[e.jsxs("div",{style:{position:"relative"},children:[e.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:380,height:380,borderRadius:"50%",background:"radial-gradient(circle, rgba(216,180,254,0.15) 0%, transparent 70%)"}}),e.jsx("img",{src:le[a].replace(".png","-480.webp"),alt:o,style:{width:440,height:440,objectFit:"contain",borderRadius:48,filter:"drop-shadow(0 8px 24px rgba(0,0,0,0.1))",position:"relative"}})]}),e.jsx("div",{style:{fontSize:44,marginTop:8,color:"#44403c"},children:o}),e.jsxs("div",{style:{marginTop:10,fontSize:22,fontWeight:700,fontFamily:ae,color:"#4338ca",background:"rgba(238,242,255,0.6)",borderRadius:99,padding:"6px 22px",border:"1px solid rgba(67,56,202,0.12)",letterSpacing:.5,display:"inline-flex",alignItems:"center",gap:8},children:[e.jsx(Te,{name:h.icon,width:22,height:22,style:{color:"#4338ca"}}),e.jsx("span",{children:h.shortName})]})]})]}),e.jsx("div",{style:{position:"absolute",top:340,left:80},children:e.jsx(D,{size:16,color:O,opacity:.25})}),e.jsx("div",{style:{position:"absolute",top:420,right:90}
2,children:e.jsx(D,{size:12,color:$,opacity:.12})}),e.jsx("div",{style:{position:"absolute",bottom:380,left:110},children:e.jsx(D,{size:14,color:O,opacity:.2})}),e.jsx("div",{style:{position:"absolute",bottom:340,right:100},children:e.jsx(D,{size:18,color:$,opacity:.1})}),e.jsx("div",{style:{marginTop:48},children:e.jsx(ne,{width:400,mb:32})}),e.jsxs("div",{style:{fontSize:54,lineHeight:1.4,color:"#292524",textAlign:"center",maxWidth:800,fontStyle:"italic"},children:["“",g,"”"]}),e.jsx("div",{style:{marginTop:28},children:e.jsx(D,{size:28,color:$,opacity:.6})}),e.jsx("div",{style:{marginTop:48},children:e.jsx(ne,{width:700,mb:32})}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:32,width:"100%"},children:[e.jsxs("div",{style:{flex:1,textAlign:"right"},children:[e.jsx("div",{style:{fontSize:36,color:"#57534e",lineHeight:1.35},children:n("share.card.cta")}),e.jsx("div",{style:{marginTop:10,fontSize:18,color:F,letterSpacing:2,fontFamily:ae,fontWeight:500},children:"lovebridge.love"})]}),c&&e.jsx("div",{style:{flexShrink:0,width:130,height:130,borderRadius:14,border:`1.5px solid ${O}`,background:"rgba(255,255,255,0.9)",padding:8,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 2px 12px rgba(184,151,106,0.1)"},children:e.jsx("img",{src:c,alt:"QR",style:{width:"100%",height:"100%",objectFit:"contain"}})})]})]})]})});ce.displayName="ShareCard";const Qt="https://lovebridge.love";function q(t,a="/"){return`${Qt}${a}?utm_source=share&utm_medium=${t}`}function Jt(){const[t,a]=m.useState(!1);return m.useEffect(()=>{const r="ontouchstart"in window||navigator.maxTouchPoints>0;a(r&&typeof navigator.share=="function")},[]),t}const Xt=({sharePath:t="/",solo:a=!1,onDownload:r,onNativeShare:o,downloading:c,onShareComplete:i})=>{const{t:n}=C("results"),[d,h]=m.useState(!1),u=Jt(),g=n(a?"share.panel.shareTextSolo":"share.panel.shareTextPair"),b=n(a?"share.panel.shareTextShortSolo":"share.panel.shareTextShortPair"),_=m.useCallback(async()=>{const f=q("copy",t);try{await navigator.clipboard.writeText(f),h(!0),setTimeout(()=>h(!1),2e3)}catch{window.prompt("Copy this link:",f)}w("share_click",{channel:"copy",mode:a?"solo":"pair"})},[t,a]),x=m.useCallback(()=>{const f=q("whatsapp",t),P=`${g}
3${f}`;window.open(`https://wa.me/?text=${encodeURIComponent(P)}`,"_blank","noopener"),w("share_click",{channel:"whatsapp",mode:a?"solo":"pair"}),i==null||i()},[t,a,g,i]),v=m.useCallback(()=>{const f=q("twitter",t);window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(b)}&url=${encodeURIComponent(f)}`,"_blank","noopener"),w("share_click",{channel:"twitter",mode:a?"solo":"pair"}),i==null||i()},[t,a,b,i]),s=m.useCallback(()=>{const f=q("telegram",t);window.open(`https://t.me/share/url?url=${encodeURIComponent(f)}&text=${encodeURIComponent(b)}`,"_blank","noopener"),w("share_click",{channel:"telegram",mode:a?"solo":"pair"}),i==null||i()},[t,a,b,i]),R=[{key:"copy",label:n(d?"share.panel.copied":"share.panel.copyLink"),icon:d?ie:We,onClick:_,className:d?"border-emerald-300 bg-emerald-50 text-emerald-700":"border-stone-200/60 bg-white/60 text-stone-700 hover:bg-white/80"},{key:"whatsapp",label:n("share.panel.whatsapp"),icon:Ge,onClick:x,className:"border-emerald-200/60 bg-emerald-50/50 text-emerald-700 hover:bg-emerald-50"},{key:"twitter",label:n("share.panel.twitter"),icon:oe,onClick:v,className:"border-sky-200/60 bg-sky-50/50 text-sky-700 hover:bg-sky-50"},{key:"telegram",label:n("share.panel.telegram"),icon:Ke,onClick:s,className:"border-blue-200/60 bg-blue-50/50 text-blue-700 hover:bg-blue-50"}];return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4 sm:gap-2.5",children:R.map(f=>e.jsxs("button",{onClick:f.onClick,className:`flex flex-col items-center gap-1.5 rounded-xl border px-2 py-3 text-[11px] font-semibold transition-all sm:text-xs ${f.className}`,children:[e.jsx(f.icon,{className:"h-5 w-5"}),f.label]},f.key))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(Pt,{children:[e.jsx(Tt,{asChild:!0,children:e.jsxs("button",{className:"flex items-center gap-1.5 rounded-full border border-fuchsia-200/60 bg-fuchsia-50/50 px-2.5 py-1.5 text-[11px] font-semibold text-fuchsia-700 transition-colors hover:bg-fuchsia-50 
3sm:px-3 sm:py-2 sm:text-xs",children:[e.jsx(Dt,{className:"h-4 w-4"}),n("share.panel.instagram")]})}),e.jsxs(Et,{className:"w-60 p-4",sideOffset:8,children:[e.jsx("p",{className:"text-sm font-semibold text-stone-800",children:n("share.panel.instagramTitle")}),e.jsxs("ol",{className:"mt-2 space-y-1 text-xs text-stone-600",children:[e.jsx("li",{children:n("share.panel.instagramStep1")}),e.jsx("li",{children:n("share.panel.instagramStep2")}),e.jsx("li",{children:n("share.panel.instagramStep3")}),e.jsx("li",{children:n("share.panel.instagramStep4")})]}),e.jsxs(Q,{onClick:r,size:"sm",className:"mt-3 w-full rounded-full bg-fuchsia-600 text-xs text-white hover:bg-fuchsia-700",children:[e.jsx(Ee,{className:"mr-1.5 h-3.5 w-3.5"}),n("share.panel.instagramSave")]})]})]}),e.jsxs("button",{onClick:r,disabled:c,className:"flex items-center gap-1.5 rounded-full border border-stone-200/60 bg-white/60 px-2.5 py-1.5 text-[11px] font-semibold text-stone-700 transition-colors hover:bg-white/80 disabled:opacity-50 sm:px-3 sm:py-2 sm:text-xs",children:[e.jsx(Ee,{className:"h-4 w-4"}),n(c?"share.panel.saving":"share.panel.save")]}),u&&e.jsxs("button",{onClick:o,className:"flex items-center gap-1.5 rounded-full border border-rose-200/60 bg-rose-50/50 px-2.5 py-1.5 text-[11px] font-semibold text-rose-700 transition-colors hover:bg-rose-50 sm:px-3 sm:py-2 sm:text-xs",children:[e.jsx(oe,{className:"h-4 w-4"}),n("share.panel.more")]})]})]})},Zt="https://lovebridge.love",es=t=>typeof window<"u"&&typeof window.requestIdleCallback=="function"?window.requestIdleCallback(t,{timeout:1500}):window.setTimeout(t,200),ts=t=>{typeof window<"u"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(t):window.clearTimeout(t)};function ss(t="/",{size:a=200,utm:r}={}){const[o,c]=m.useState(""),i=`${Zt}${t}${r?`?utm_source=share&utm_medium=${r}`:""}`;return m.useEffect(()=>{let n=!1;const d=es(()=>{n||V(async()=>{const{default:h}=await import("./qr-vendor-BZupcBsD.js").then(u=>u.q);return{default:h}},__vite__mapDeps([0,1])).then(({default:h})=>{if(n)return;new h({width:a,height:a,data:i,type:"canvas",dotsOptions:{type:"rounded",color:"#9f1239"},cornersSquareOptions:{type:"extra-rounded",color:"#1c1917"},cornersDotOptions:{type:"dot",color:"#be123c"},backgroundOptions:{color:"transparent"},qrOptions:{errorCorrectionLevel:"M"}}).getRawData("png").then(g=>{if(n||!g||!(g instanceof Blob))return;const b=new FileReader;b.onloadend=()=>{!n&&typeof b.result=="string"&&c(b.result)},b.readAsDataURL(g)}).catch(g=>{console.warn("QR code generation failed:",g)})}).catch(h=>{console.warn("QR code module failed to load:",h)})});return()=>{n=!0,ts(d)}},[i,a]),o}const Ve="lb_has_shared",as="lb_paid_data",Qe="lb_unlock_email",de="lb_pending_payment_data",Je="https://wczqscmsrmdbfnohoikp.supabase.co/functions/v1",ns="https://buy.stripe.com/dRm28q3V2840d4F4Iw0RG00",rs="https://buy.stripe.com/dRm3cu63a5VSggRfna0RG01",ls="https://buy.stripe.com/5kQ14m2QYac80hT6QE0RG02",is="https://buy.stripe.com/4gM3cuajqac8c0B8YM0RG03",De="$2.99",Xe="$1.49",Fe="Â¥19.9",Ze="Â¥9.9",Oe=2.99,os=1.49,$e=19.9,cs=9.9;function he(t){return t==="zh"}function Y(t){const a=localStorage.getItem(Qe),r=localStorage.getItem(as),o=t!==null&&r===t;return{hasShared:localStorage.getItem(Ve)==="true",hasPaid:!!a||o}}function ds(){localStorage.setItem(Ve,"true")}function et(t){localStorage.setItem(Qe,t.toLowerCase())}async function ms(t){if(!t.startsWith("cs_"))return{paid:!1,error:"invalid session"};try{return await(await fetch(`${Je}/verify-purchase`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({session_id:t})})).json()}catch(a){return console.error("verify-purchase failed",a),{paid:!1,error:"network"}}}async function xs(t){try{return await(await fetch(`${Je}/restore-unlock`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t})})).json()}catch(a){return console.error("restore-unlock failed",a),{found:!1,error:"network"}}}function tt(t){localStorage.setItem(de,t)}function ps(){const t=localStorage.getItem(de);return t&&localStorage.removeItem(de),t}function st(t,a){return he(a)?t?is:ls:t?rs:ns}function J(t,a){return he(a)?t?{current:Ze,original:Fe,amount:cs,originalAmount:$e,currency:"CNY"}:{current:Fe,amount:$e,currency:"CNY"}:t?{current:Xe,original:De,amount:os,originalAmount:Oe,currency:"USD"}:{current:De,amount:Oe,currency:"USD"}}function hs(t){return he(t)?Ze:Xe}function us(t){return t.hasPaid}function gs(t){return t>=5?"large":t>=3?"medium":"small"}function fs(t,a,r,o){const c=[],i=n=>Math.round(n*10)/10;for(let n=0;n<5;n++){const d=Math.abs(t[n]-a[n]);if(d<1)continue;const h=gs(d),u=t[n]>=a[n],g=u?r:o,b=u?o:r,_=u?t[n]:a[n],x=u?a[n]:t[n],v=re(n),s={nameA:g,nameB:b,scoreA:i(_),scoreB:i(x),gap:i(d),dimensionName:v},R=`analysis-templates:templates.${n}.${h}`,f="analysis-templates:fallback",P=U.t(R,s),E=P===R?U.t(f,s):P;c.push({dimension:n,dimensionName:v,tier:h,gap:d,scoreA:t[n],scoreB:a[n],paragraph:E})}return c.sort((n,d)=>d.gap-n.gap),c}const bs=["0-0","1-1","2-2","3-3","4-4","0-1","0-2","0-3","0-4","1-2","1-3","1-4","2-3","2-4","3-4"];function ys(t,a,r){const o=bs.includes(t)?t:"universal",c=[];for(let i=1;i<=27;i++)c.push(U.t(`action-plans:plans.${o}.${i}`,{nameA:a,nameB:r}));for(let i=1;i<=3;i++)c.push(U.t(`action-plans:closing.${i}`,{nameA:a,nameB:r}));return c.map((i,n)=>({day:n+1,task:i}))}const js=At,vs=_t,at=m.forwardRef(({className:t,...a},r)=>e.jsx(He,{ref:r,className:A("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));at.displayName=He.displayName;const nt=m.forwardRef(({className:t,children:a,...r},o)=>e.jsxs(vs,{children:[e.jsx(at,{}),e.jsxs(Ue,{ref:o,className:A("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
3nded-lg",t),...r,children:[a,e.jsxs(St,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(Ft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));nt.displayName=Ue.displayName;const rt=({className:t,...a})=>e.jsx("div",{className:A("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});rt.displayName="DialogHeader";const lt=m.forwardRef(({className:t,...a},r)=>e.jsx(ze,{ref:r,className:A("text-lg font-semibold leading-none tracking-tight",t),...a}));lt.displayName=ze.displayName;const it=m.forwardRef(({className:t,...a},r)=>e.jsx(Me,{ref:r,className:A("text-sm text-muted-foreground",t),...a}));it.displayName=Me.displayName;const ws=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Ns({open:t,onOpenChange:a,onRestored:r}){const{t:o}=C("results"),[c,i]=m.useState(""),[n,d]=m.useState(!1),[h,u]=m.useState(null),g=async b=>{if(b.preventDefault(),n)return;const _=c.trim().toLowerCase();if(!ws.test(_)){u(o("restore.errorInvalidEmail"));return}d(!0),u(null),w("restore_unlock_attempt");const x=await xs(_);if(d(!1),x.found){et(_),w("restore_unlock_success"),r(),a(!1),i("");return}x.error==="rate limited"?u(o("restore.errorRateLimited")):(u(o("restore.errorNotFound")),w("restore_unlock_not_found"))};return e.jsx(js,{open:t,onOpenChange:a,children:e.jsxs(nt,{className:"max-w-md",children:[e.jsxs(rt,{children:[e.jsx(lt,{children:o("restore.title")}),e.jsx(it,{children:o("restore.description")})]}),e.jsxs("form",{onSubmit:g,className:"flex flex-col gap-3",children:[e.jsx(Ct,{type:"email",placeholder:o("restore.emailPlaceholder"),value:c,onChange:b=>{i(b.target.value),u(null)},autoFocus:!0,required:!0,disabled:n}),h&&e.jsx("p",{className:"text-sm text-rose-600",children:h}),e.jsx(Q,{type:"submit",disabled:n||!c.trim(),className:"bg-rose-700 hover:bg-rose-800",children:o(n?"restore.submitting":"restore.submit")}),e.jsx("p",{className:"text-xs text-stone-500",children:o("restore.helpText")})]})]})})}function ks({analysisPreview:t,tipPreview:a,planPreview:r,remainingTips:o,hasShared:c,dataParam:i,onRestored:n}){const{t:d}=C("results"),{locale:h}=xe(),u=st(c,h),g=J(c,h),b=hs(h),[_,x]=m.useState(!1),v=o+1;return m.useEffect(()=>{w("paywall_view",{has_shared:c})},[c]),e.jsxs("div",{id:"paywall-anchor",className:"animate-fade-up-4",children:[e.jsxs("div",{className:"letter-card overflow-hidden",children:[e.jsx("div",{className:"airmail-stripe"}),e.jsx("div",{className:"px-6 py-10 sm:px-12 sm:py-14",children:e.jsxs("div",{className:"mx-auto max-w-2xl",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h2",{className:"font-romance text-3xl leading-tight text-stone-900 sm:text-4xl",children:d("paywall.title")}),e.jsx("p",{className:"mt-3 text-[15px] leading-7 text-stone-600 sm:text-base",children:d("paywall.subtitle")})]}),e.jsx("div",{className:"gold-line mt-8 sm:mt-10"}),e.jsxs("div",{className:"mt-8 sm:mt-10",children:[e.jsx("div",{className:"font-handwritten text-lg text-[#B8976A] sm:text-xl",children:d("paywall.letter.excerpt1Stamp")}),e.jsx("p",{className:"mt-3 text-[15px] leading-8 text-stone-700 sm:text-base sm:leading-9",style:{WebkitMaskImage:"linear-gradient(to bottom, black 70%, transparent)",maskImage:"linear-gradient(to bottom, black 70%, transparent)"},children:t})]}),e.jsx("div",{className:"gold-line mt-8 sm:mt-10"}),e.jsxs("div",{className:"mt-8 sm:mt-10",children:[e.jsx("div",{className:"font-handwritten text-lg text-[#B8976A] sm:text-xl",children:d("paywall.letter.excerpt2Stamp")}),e.jsx("p",{className:"mt-3 text-[15px] leading-8 text-stone-700 sm:text-base sm:leading-9",children:a})]}),e.jsx("div",{className:"gold-line mt-8 sm:mt-10"}),r.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mt-8 sm:mt-10",children:[e.jsx("div",{className:"font-handwritten text-lg text-[#B8976A] sm:text-xl",children:d("paywall.letter.excerpt3Stamp")}),e.jsx("p",{className:"mt-3 text-[15px] leading-8 text-stone-700 sm:text-base sm:leading-9",children:r[0]})]}),e.jsx("div",{className:"gold-line mt-8 sm:mt-10"})]}),e.jsxs("div",{className:"mt-10 text-center sm:mt-12",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"wax-seal wax-seal-lg",children:e.jsx(pe,{className:"h-7 w-7 fill-white text-white"})})}),e.jsx("p",{className:"mt-5 font-romance text-xl leading-snug text-stone-900 sm:mt-6 sm:text-2xl",children:d("paywall.letter.sealedHeading")}),e.jsx("p",{className:"mx-auto mt-3 max-w-md text-[14px] leading-7 text-stone-500 sm:text-[15px] sm:leading-8",children:d("paywall.letter.sealedBody",{tipCount:v})}),e.jsxs("div",{className:"mt-6 flex items-baseline justify-center gap-2 sm:mt-7",children:[e.jsx("span",{className:"font-romance text-3xl tabular-nums text-rose-700 sm:text-4xl",children:g.current}),e.jsx("span",{className:"text-sm text-stone-400",children:d("paywall.priceUnit")}),c&&g.original&&e.jsx("span",{className:"rounded-full bg-emerald-100 px-2 py-0.5 text-[11px] font-medium text-emerald-700",children:d("paywall.discountBadge",{original:g.original})})]}),e.jsxs("a",{href:u,onClick:()=>{tt(i),w("paywall_cta_click",{price_tier:c?"discount":"full",value:g.amount,currency:g.currency})},className:"cta-glow mt-5 inline-flex w-full max-w-sm items-center justify-center gap-2 rounded-full bg-rose-700 px-7 py-4 text-base font-semibold text-white shadow-lg shadow-rose-700/25 transition-all hover:bg-rose-800 hover:shadow-xl hover:shadow-rose-700/30 sm:mt-6 sm:w-auto 
3sm:px-9 sm:py-5",children:[e.jsx("span",{children:d("paywall.letter.sealedCta")}),e.jsx("span",{className:"opacity-60",children:"→"})]}),e.jsxs("div",{className:"mt-6 space-y-2 text-xs text-stone-400 sm:mt-7",children:[e.jsxs("p",{children:["⭐ ",d("paywall.socialProof")]}),!c&&e.jsx("p",{className:"italic text-stone-500",children:d("paywall.shareHint",{discount:b})}),e.jsxs("p",{children:[e.jsx("span",{children:d("paywall.letter.restorePrompt")})," ",e.jsxs("button",{type:"button",onClick:()=>{w("restore_unlock_open"),x(!0)},className:"font-medium text-rose-700 underline-offset-2 hover:underline",children:[d("paywall.restoreLink")," →"]})]}),e.jsx("p",{children:d("paywall.footnote")})]})]})]})})]}),e.jsx(Ns,{open:_,onOpenChange:x,onRestored:n})]})}function As({hasShared:t,dataParam:a}){const{t:r}=C("results"),{locale:o}=xe(),[c,i]=m.useState(!1);if(m.useEffect(()=>{const h=document.getElementById("paywall-anchor");if(!h)return;const u=new IntersectionObserver(([g])=>{(g.isIntersecting||g.boundingClientRect.bottom<0)&&i(!0)},{rootMargin:"0px"});return u.observe(h),()=>u.disconnect()},[]),!c)return null;const n=st(t,o),d=J(t,o);return e.jsx("div",{className:"fixed inset-x-0 bottom-0 z-40 border-t border-rose-200/60 bg-white/95 px-4 pt-3 shadow-[0_-4px_12px_rgba(0,0,0,0.06)] backdrop-blur-md sm:hidden",style:{paddingBottom:"calc(0.75rem + env(safe-area-inset-bottom))"},children:e.jsxs("a",{href:n,onClick:()=>{tt(a),w("paywall_sticky_click",{price_tier:t?"discount":"full",value:d.amount,currency:d.currency})},className:"flex w-full items-center justify-center gap-2 rounded-full bg-rose-700 px-6 py-3.5 text-base font-semibold text-white shadow-lg shadow-rose-700/30 active:scale-[0.99]",children:[e.jsx("span",{children:r("paywall.ctaLabel")}),e.jsx("span",{className:"opacity-70",children:"·"}),e.jsx("span",{children:d.current})]})})}function _s({paragraphs:t}){const{t:a}=C("results");return e.jsxs("div",{className:"animate-fade-up letter-card p-5 sm:p-8",children:[e.jsx("div",{className:"stamp-label !transform-none text-[10px]",children:a("premium.analysisStamp")}),e.jsx("h2",{className:"mt-3 font-handwritten text-xl text-slate-900 sm:text-2xl",children:a("premium.analysisTitle")}),e.jsx("div",{className:"mt-5 space-y-4",children:t.map((r,o)=>e.jsx("p",{className:"text-[15px] leading-7 text-stone-700",children:r},o))})]})}function Ss(t){return t==="A"?{card:"border-rose-100 bg-rose-50/60",label:"text-rose-600"}:t==="B"?{card:"border-indigo-100 bg-indigo-50/60",label:"text-indigo-600"}:{card:"border-stone-200 bg-stone-50/60",label:"text-stone-600"}}function Bs({tips:t,labelA:a,labelB:r}){const{t:o}=C("results"),c=i=>i==="A"?o("premium.tipForLabel",{name:a}):i==="B"?o("premium.tipForLabel",{name:r}):o("premium.tipForBoth");return e.jsxs("div",{className:"animate-fade-up letter-card p-5 sm:p-8",children:[e.jsx("div",{className:"stamp-label !transform-none text-[10px]",children:o("premium.tipsStamp")}),e.jsx("h2",{className:"mt-3 font-handwritten text-2xl text-slate-900",children:o("premium.tipsTitle")}),e.jsx("div",{className:"mt-5 space-y-3",children:t.map((i,n)=>{const d=Ss(i.forPartner);return e.jsxs("div",{className:A("rounded-xl border p-3 sm:p-4",d.card),children:[e.jsx("p",{className:A("mb-1.5 text-xs font-semibold uppercase tracking-wider",d.label),children:c(i.forPartner)}),e.jsx("p",{className:"text-[15px] leading-7 text-stone-700",children:i.text})]},n)})})]})}function Is({plan:t}){const{t:a}=C("results");return e.jsxs("div",{className:"animate-fade-up letter-card p-5 sm:p-8",children:[e.jsx("div",{className:"stamp-label !transform-none text-[10px]",children:a("premium.planStamp")}),e.jsx("h2",{className:"mt-3 font-handwritten text-2xl text-slate-900",children:a("premium.planTitle")}),e.jsx("div",{className:"mt-5 space-y-2",children:t.map(r=>e.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-stone-100 p-2.5 transition-colors hover:bg-stone-50/50 sm:p-3",children:[e.jsx("div",{className:"flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full border border-stone-200/60 bg-stone-50 text-[11px] font-bold text-stone-500",children:r.day}),e.jsx("p",{className:"pt-0.5 text-sm leading-6 text-stone-700",children:r.task})]},r.day))})]})}const Cs="https://lovebridge.love";function Rs({partnerName:t,inviteUrl:a}){const{t:r}=C("results"),[o,c]=m.useState(!1),i=`${Cs}${a}`,n=r("soloInvite.shareText",{name:t,url:i}),d=r("soloInvite.telegramText",{name:t}),h=r("soloInvite.shareTitle"),u=m.useMemo(()=>
3{if(typeof navigator>"u"||typeof navigator.share!="function")return!1;try{const f={title:h,text:n,url:i};return navigator.canShare?navigator.canShare(f):!0}catch{return!1}},[i,n,h]),g=m.useCallback(async(f="copy")=>{try{await navigator.clipboard.writeText(i),c(!0),setTimeout(()=>c(!1),2400)}catch{window.prompt("Copy this link:",i)}w("invite_sent",{channel:f})},[i]),b=m.useCallback(async()=>{if(u&&navigator.share)try{await navigator.share({title:h,text:n,url:i}),w("invite_sent",{channel:"native_share"});return}catch(f){if((f==null?void 0:f.name)==="AbortError")return}await g("share_fallback")},[u,g,i,n,h]),_=m.useCallback(()=>g("copy"),[g]),x=m.useCallback(()=>{window.open(`https://wa.me/?text=${encodeURIComponent(n)}`,"_blank","noopener"),w("invite_sent",{channel:"whatsapp"})},[n]),v=m.useCallback(()=>{window.open(`https://t.me/share/url?url=${encodeURIComponent(i)}&text=${encodeURIComponent(d)}`,"_blank","noopener"),w("invite_sent",{channel:"telegram"})},[i,d]),s=r(o?"soloInvite.primaryCtaCopied":u?"soloInvite.primaryCtaShare":"soloInvite.primaryCtaCopy"),R=o?ie:u?oe:Ot;return e.jsx("section",{className:"animate-fade-up relative mt-6 sm:mt-8",children:e.jsxs("div",{className:"letter-card relative overflow-hidden px-6 py-10 text-center sm:px-10 sm:py-14",children:[e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 800 200",preserveAspectRatio:"none",className:"pointer-events-none absolute inset-x-0 top-0 h-32 w-full sm:h-40",children:e.jsx("path",{d:"M 0 0 L 400 150 L 800 0",fill:"none",stroke:"#B8976A",strokeWidth:"1.25",strokeOpacity:"0.45",strokeDasharray:"5 4",vectorEffect:"non-scaling-stroke"})}),e.jsx("div",{className:"absolute right-5 top-5 hidden sm:block",children:e.jsx("div",{className:"stamp-label !rotate-[6deg]",children:r("soloInvite.envelopeStamp")})}),e.jsx("div",{className:"relative z-10 flex justify-center",children:e.jsx("div",{className:"wax-seal wax-seal-lg",children:e.jsx(pe,{className:"h-7 w-7 fill-white text-white"})})}),e.jsx("h2",{className:"relative z-10 mt-5 font-romance text-3xl leading-tight text-stone-900 sm:text-4xl",children:r("soloInvite.heading",{name:t})}),e.jsx("p",{className:"relative z-10 mx-auto mt-3 max-w-md text-[15px] leading-7 text-stone-600 sm:text-base",children:r("soloInvite.subtitle",{name:t})}),e.jsxs("button",{onClick:b,className:`cta-glow relative z-10 mt-7 inline-flex items-center justify-center gap-2 rounded-full px-7 py-4 text-base font-semibold text-white shadow-lg transition-all sm:mt-8 sm:px-9 sm:py-5 ${o?"bg-emerald-600 shadow-emerald-700/25 hover:bg-emerald-700":"bg-rose-700 shadow-rose-700/25 hover:bg-rose-800 hover:shadow-xl hover:shadow-rose-700/30"}`,children:[e.jsx(R,{className:"h-5 w-5"}),s]}),e.jsxs("div",{className:"relative z-10 mt-5 sm:mt-6",children:[e.jsxs("div",{className:"mx-auto flex max-w-sm items-center gap-3 text-[11px] uppercase tracking-[0.22em] text-stone-400",children:[e.jsx("span",{className:"h-px flex-1 bg-stone-200"}),e.jsx("span",{children:r("soloInvite.orVia")}),e.jsx("span",{className:"h-px flex-1 bg-stone-200"})]}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-2 sm:gap-3",children:[e.jsxs("button",{onClick:x,className:"inline-flex items-center gap-2 rounded-full border border-emerald-200/70 bg-white px-4 py-2 text-xs font-medium text-emerald-700 transition-all hover:bg-emerald-50/70 sm:text-[13px]",children:[e.jsx(Ge,{className:"h-4 w-4"}),r("soloInvite.channels.whatsapp")]}),e.jsxs("button",{onClick:v,className:"inline-flex items-center gap-2 rounded-full border border-blue-200/70 bg-white px-4 py-2 text-xs font-medium text-blue-700 transition-all hover:bg-blue-50/70 sm:text-[13px]",children:[e.jsx(Ke,{className:"h-4 w-4"}),r("soloInvite.channels.telegram")]}),u&&e.jsxs("button",{onClick:_,className:`inline-flex items-center gap-2 rounded-full border px-4 py-2 text-xs font-medium transition-all sm:text-[13px] ${o?"border-emerald-300 bg-emerald-50 text-emerald-700":"border-stone-200 bg-white text-stone-700 hover:bg-stone-50"}`,children:[o?e.jsx(ie,{className:"h-4 w-4"}):e.jsx(We,{className:"h-4 w-4"}),r(o?"soloInvite.channels.copied":"soloInvite.channels.copy")]})]})]})]})})}const Ps=m.lazy(()=>V(()=>import("./PdfReport-BBwDRwAb.js"),__vite__mapDeps([2,3,1,4,5,6,7,8,9]))),Ts=300,Es=80;function Ls(){var i;const[t]=me(),a=m.useMemo(()=>ps(),[]);if(!a)return e.jsx(ot,{});const r=((i=window.location.pathname.match(/^\/[a-z]{2}(?=\/|$)/))==null?void 0:i[0])??"",o=t.get("session_id"),c=o?`&session_id=${encodeURIComponent(o)}`:"";return e.jsx(Bt,{to:`${r}/results?data=${encodeURIComponent(a)}&paid=1${c}`,replace:!0})}function Gs(){const[t]=me();return t.get("paid")==="1"&&!t.get("data")?e.jsx(Ls,{}):e.jsx(ot,{})}function ot(){var ye,je,ve,we,Ne,ke,Ae,_e,Se,Be;const{t,i18n:a}=C(["results","common"]),{locale:r}
3=xe(),[o]=me(),c=o.get("data"),i=m.useRef(null),[n,d]=m.useState(!1),[h,u]=m.useState(!1),g=ss("/",{size:256,utm:"qr"}),[b,_]=m.useState(()=>({w:typeof window<"u"?window.innerWidth:375,h:typeof window<"u"?window.innerHeight:667}));m.useEffect(()=>{const l=()=>_({w:window.innerWidth,h:window.innerHeight});return window.addEventListener("resize",l),window.addEventListener("orientationchange",l),()=>{window.removeEventListener("resize",l),window.removeEventListener("orientationchange",l)}},[]);const x=m.useMemo(()=>{if(!c)return null;const l=kt(c);return l&&l.a?l:null},[c]),v=x!==null&&!x.b,s=m.useMemo(()=>{var Ie,Ce,Re;if(!x)return null;const l=Pe(x.a),p=((Ie=x.an)==null?void 0:Ie.trim())||t("results:partnerA"),j=M(l.primary);if(!x.b){const B=se(l.primary,l.secondary);return{topA:l,topB:null,tips:null,groupedTips:{A:[],B:[],both:[]},scoresA:x.a,scoresB:null,labelA:p,labelB:((Ce=x.bn)==null?void 0:Ce.trim())||t("results:partnerB"),metaA:j,metaB:null,personaA:B,personaB:null,summary:t("results:solo.summary",{name:p,language:j.name,meaning:j.meaningLines[0]}),pairingPattern:""}}const y=Pe(x.b),S=te(l.primary,y.primary),N=Ye(S),T=((Re=x.bn)==null?void 0:Re.trim())||t("results:partnerB"),L=M(y.primary),ee=se(l.primary,l.secondary),yt=se(y.primary,y.secondary),jt=l.primary>y.primary,I=N?{...N,tips:jt?N.tips.map(B=>({...B,forPartner:B.forPartner==="A"?"B":B.forPartner==="B"?"A":"both"})):N.tips}:void 0,vt={A:(I==null?void 0:I.tips.filter(B=>B.forPartner==="A"))??[],B:(I==null?void 0:I.tips.filter(B=>B.forPartner==="B"))??[],both:(I==null?void 0:I.tips.filter(B=>B.forPartner==="both"))??[]},wt=l.primary===y.primary?t("results:pair.summarySame",{nameA:p,nameB:T,language:j.name}):t("results:pair.summaryMismatch",{nameA:p,nameB:T,languageA:j.name,languageB:L.name}),Nt=It(S);return{topA:l,topB:y,tips:I,groupedTips:vt,scoresA:x.a,scoresB:x.b,labelA:p,labelB:T,metaA:j,metaB:L,personaA:ee,personaB:yt,summary:wt,pairingPattern:Nt}},[x,t,a.language]),R=m.useMemo(()=>s?Rt().map((p,j)=>({language:p,[s.labelA]:s.scoresA[j],...s.scoresB?{[s.labelB]:s.scoresB[j]}:{}})):[],[s,a.language]),[f,P]=m.useState(()=>Y(c)),E=us(f),[ct,ue]=m.useState(!1),[dt,ge]=m.useState(!1);m.useEffect(()=>{const l=o.get("session_id");if(!(o.get("paid")==="1")||!l)return;let j=!1;return ue(!0),ge(!1),ms(l).then(y=>{var S;if(!j)if(ue(!1),y.paid&&y.email){et(y.email),P(Y(c));const N=`lb_purchase_reported_${l}`;if(!localStorage.getItem(N)){const T=localStorage.getItem("lb_has_shared")==="true",L=J(T,r);(S=window.gtag)==null||S.call(window,"set","user_data",{email:y.email}),w("purchase",{currency:L.currency,value:L.amount,transaction_id:l,price_tier:T?"discount":"full"}),localStorage.setItem(N,String(Date.now()))}}else ge(!0)}),()=>{j=!0}},[o,c,r]),m.useEffect(()=>{var p;if(!s||!c)return;const l=`lb_results_view_${c}`;sessionStorage.getItem(l)||(sessionStorage.setItem(l,"1"),w("results_view",{mode:v?"solo":"pair",pairing_key:!v&&s.topB?te(s.topA.primary,s.topB.primary):void 0,primary_a:s.topA.primary,primary_b:(p=s.topB)==null?void 0:p.primary}))},[s,c,v]);const mt=()=>{ds(),P(Y(c))},H=m.useCallback(async()=>{if(i.current){d(!0);try{const{toPng:l}=await V(async()=>{const{toPng:y}=await import("./index-6sdqbm2o.js");return{toPng:y}},[]),p=await l(i.current,{width:k.width,height:k.height,pixelRatio:2}),j=document.createElement("a");j.download="lovebridge-results.png",j.href=p,j.click()}catch(l){console.error("Failed to generate image:",l)}finally{d(!1)}}},[]),xt=m.useCallback(async()=>{if(i.current)try{const{toPng:l}=await V(async()=>{const{toPng:N}=await import("./index-6sdqbm2o.js");return{toPng:N}},[]),p=await l(i.current,{width:k.width,height:k.height,pixelRatio:2}),y=await(await fetch(p)).blob(),S=new File([y],"lovebridge-results.png",{type:"image/png"});navigator.share&&navigator.canShare({files:[S]})?await navigator.share({title:t("results:share.nativeTitle"),text:t("results:share.nativeText"),files:[S]}):H()}catch(l){console.error("Share failed:",l),H()}},[H]);if(!x||!s)return e.jsx("div",{className:"min-h-screen bg-[#F5EFE7] px-4 py-8 sm:py-10",children:e.jsxs("div",{className:"mx-auto max-w-xl letter-card p-6 text-center sm:p-10",children:[e.jsx($t,{className:"mx-auto mb-4 h-12 w-12 text-rose-600 sm:mb-5 sm:h-14 sm:w-14"}),e.jsx("div",{className:"stamp-label mx-auto",children:t("results:error.stamp")}),e.jsx("h1",{className:"mt-4 font-romance text-2xl tracking-[-0.03em] text-stone-900 sm:text-4xl",children:t("results:error.title")}),e.jsx("p",{className:"mt-3 text-[15px] leading-7 text-stone-600 sm:mt-4 sm:text-base",children:t("results:error.subtitle")}),e.jsx(z,{to:"/quiz",children:e.jsxs(Q,{className:"mt-6 w-full rounded-full bg-stone-900 px-8 py-5 text-base font-semibold text-white hover:bg-stone-800 sm:mt-8 sm:w-auto",children:[t("results:error.cta"),e.jsx(Ut,{className:"ml-2 h-4 w-4"})]})})]})});const X=Math.min(Ts,Math.max(220,b.w-Es)),pt=X*(k.height/k.width),ht=X/k.width,ut=Math.min(380,b.w*.9),gt=b.h*.85,Z=Math.min(ut/k.width,gt/k.height),ft=k.width*Z,bt=k.height*Z,fe=!v&&s.topB?te(s.topA.primary,s.topB.primary):"",W=!v&&s.scoresB?fs(s.scoresA,s.scoresB,s.labelA,s.labelB):[],be=!v&&s.topB!==null&&s.topA.primary>s.topB.primary,G=!v&&fe?ys(fe,be?s.labelB:s.labelA,be?s.labelA:s.labelB):[];return e.jsxs("div",{className:"min-h-screen bg-[#F5EFE7]",children:[e.jsx("div",{className:"border-b border-stone-200/40 bg-[#F5EFE7]/92 backdrop-blur-lg",children:e.jsxs("div",{className:"mx-auto flex h-14 max-w-6xl items-center justify-between px-4 sm:h-16 sm:px-6",children:[e.jsxs(z,{to:"/",className:"flex items-center gap-2",children:[e.jsx("div",{className:"wax-seal !h-7 !w-7",children:e.jsx(pe,{className:"h-3 w-3 fill-white text-white"})}),e.jsx("span",{className:"text-sm font-medium text-stone-900 sm:text-base",children:t("common:brand.name")}
3)]}),e.jsx(z,{to:"/quiz",className:"text-sm font-medium text-stone-500 transition-colors hover:text-stone-900",children:t("results:header.startTest")})]})}),e.jsx("main",{className:A("px-4 py-6 sm:px-6 sm:py-10",!E&&!v&&"pb-28 sm:pb-10"),children:v?e.jsxs("div",{className:"mx-auto max-w-6xl",children:[(()=>{var y,S;const l=!!((y=x==null?void 0:x.an)!=null&&y.trim()),p=!!((S=x==null?void 0:x.bn)!=null&&S.trim()),j=l&&p;return e.jsxs("section",{className:"animate-fade-up grid gap-6 lg:grid-cols-[1.08fr_0.92fr] lg:items-start lg:gap-8",children:[e.jsxs("div",{children:[e.jsx("div",{className:"stamp-label",children:t("results:solo.stamp")}),j?e.jsxs("h1",{className:"mt-5 font-romance text-[1.75rem] leading-[1.02] tracking-[-0.03em] text-stone-900 sm:mt-6 sm:text-5xl lg:text-6xl",children:[t("results:solo.heroBefore")," ",s.labelA," ",e.jsx("span",{className:"mx-1 font-handwritten text-[1.2em] text-rose-600",children:t("results:solo.heroShowsHighlight")})," ",t("results:solo.heroMiddle")," ",s.labelB," ",e.jsx("span",{className:"mx-1 font-handwritten text-[1.2em] text-indigo-600",children:t("results:solo.heroFeelsHighlight")})," ",t("results:solo.heroAfter")]}):e.jsxs("h1",{className:"mt-5 font-romance text-[1.75rem] leading-[1.02] tracking-[-0.03em] text-stone-900 sm:mt-6 sm:text-5xl lg:text-6xl",children:[t("results:solo.heroAnonBefore")," ",e.jsx("span",{className:"mx-1 font-handwritten text-[1.2em] text-rose-600",children:t("results:solo.heroAnonGiveHighlight")})," ",t("results:solo.heroAnonMiddle")," ",e.jsx("span",{className:"mx-1 font-handwritten text-[1.2em] text-indigo-600",children:t("results:solo.heroAnonFeltHighlight")})," ",t("results:solo.heroAnonAfter")]}),e.jsx("div",{className:"mt-5 max-w-3xl border-l-2 border-[#B8976A]/40 pl-4 text-[15px] leading-7 text-stone-600 sm:mt-7 sm:pl-5 sm:text-base sm:leading-8",children:s.summary})]}),e.jsxs("div",{className:"letter-card p-5 sm:p-6",children:[e.jsx("div",{className:"font-handwritten text-xl text-[#B8976A]",children:t("results:solo.yourResult")}),e.jsx("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:gap-4",children:[{label:s.labelA,meta:s.metaA,tone:"rose"}].map((N,T)=>e.jsxs("div",{className:A("rounded-xl border p-4 transition-shadow duration-300 hover:shadow-md sm:p-5","border-rose-200/60 bg-rose-50/40"),style:{animationDelay:`${T*120}ms`},children:[l&&e.jsx("div",{className:"text-[11px] uppercase tracking-[0.28em] text-rose-700",children:N.label}),e.jsxs("div",{className:A("flex items-center gap-3",l?"mt-2 sm:mt-3":""),children:[e.jsx("span",{"aria-hidden":"true",className:A("h-7 w-1 rounded-full sm:h-8",N.meta.accentColorClass)}),e.jsx("span",{className:"font-romance text-xl text-stone-900 sm:text-2xl",children:N.meta.name})]}),e.jsx("div",{className:"mt-1 pl-4 text-[13px] text-stone-500 sm:text-sm",children:t("results:solo.secondaryLabel",{name:re(s.topA.secondary)})}),e.jsx("div",{className:"mt-3 text-[13px] leading-6 text-stone-600 sm:mt-4 sm:text-sm sm:leading-7",children:N.meta.resultLine}),e.jsx("div",{className:"mt-2 space-y-1 sm:mt-3 sm:space-y-1.5",children:N.meta.meaningLines.map((L,ee)=>e.jsx("p",{className:"text-xs leading-5 text-stone-400 italic sm:leading-6",children:L},ee))})]},N.label))})]})]})})(),e.jsx(Rs,{partnerName:s.labelB,inviteUrl:`/invite/${c}`}),s.personaA&&e.jsx("section",{className:"animate-fade-up mt-6 letter-card px-6 py-10 sm:mt-8 sm:px-12 sm:py-14",children:e.jsxs("div",{className:"mx-auto max-w-2xl",children:[e.jsx("div",{className:"stamp-label",children:t("results:solo.persona.stamp")}),!!((ye=x==null?void 0:x.an)!=null&&ye.trim())&&e.jsx("div",{className:"mt-6 text-[11px] uppercase tracking-[0.28em] text-rose-700 sm:mt-8",children:s.labelA}),e.jsx("h3",{className:A("font-romance text-[2rem] leading-[1.1] tracking-[-0.01em] text-stone-900 sm:text-[2.75rem]",(je=x==null?void 0:x.an)!=null&&je.trim()?"mt-3 sm:mt-4":"mt-6 sm:mt-8"),children:s.personaA.name}),e.jsx("p",{className:"mt-4 text-lg leading-8 text-stone-600 sm:mt-5 sm:text-[1.25rem] sm:leading-9",children:s.personaA.tagline}),e.jsx("div",{className:"gold-line mt-8 sm:mt-10"}),e.jsxs("div",{className:"mt-7 space-y-7 sm:mt-9 sm:space-y-9",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.32em] text-[#B8976A]",children:t("results:solo.persona.strength")}),e.jsx("p",{className:"mt-2 text-[15px] leading-8 text-stone-700 sm:text-base sm:leading-9",children:s.personaA.strengths})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.32em] text-[#B8976A]",children:t("results:solo.persona.blindSpot")}),e.jsx("p",{className:"mt-2 text-[15px] leading-8 text-stone-700 sm:text-base sm:leading-9",children:s.personaA.blindSpot})]})]}),e.jsx("div",{className:"gold-line mt-10 sm:mt-12"}),e.jsxs("div",{className:"mt-7 sm:mt-9",children:[e.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.32em] text-[#B8976A]",children:t("results:solo.signals.heading")}),e.jsx("h4",{className:"mt-2 font-romance text-xl leading-snug text-stone-900 sm:text-2xl",children:t("results:solo.signals.title")})]}),e.jsx("ol",{className:"mt-6 space-y-8 sm:mt-8 sm:space-y-10",children:s.scoresA.map((l,p)=>({index:p,score:l,name:re(p),meta:M(p)})).sort((l,p)=>p.score-l.score).map(({index:l,score:p,name:j,meta:y},S)=>e.jsxs("li",{className:"grid grid-cols-[auto_1fr_auto] items-baseline gap-x-4 gap-y-3 sm:gap-x-6",children:[e.jsxs("div",{className:"font-romance text-[11px] uppercase tracking-[0.32em] text-stone-400 sm:text-xs",children:["No. ",String(S+1).padStart(2,"0")]}),e.jsx("h5",{className:"font-romance text-xl text-stone-900 sm:text-[1.625rem] sm:leading-tight",children:j}),e.jsx("div",{className:"font-romance text-2xl tabular-nums text-stone-900 sm:text-[1.875rem]",children:p.toFixed(1)}),e.jsx("div",{className:"col-span-3 -mt-1 h-px overflow-hidden bg-stone-200/50",children:e.jsx("div",{className:A("h-full transition-[width] duration-700 ease-out",y.accentColorClass),style:{width:`${Math.min(100,Math.max(4,p/10*100))}%`}})}),e.jsx("p",{className:"col-span-3 text-[14px] italic leading-7 text-stone-500 sm:text-[15px] sm:leading-8",children:y.summary})]},l))}),e.jsx("p",{className:"mt-10 border-t border-stone-200/40 pt-6 text-center text-xs italic text-stone-400 sm:mt-12 sm:text-sm",children:t("results:solo.signals.teaser",{name:s.labelB})})]})}),e.jsx("div",{className:"pb-6 pt-6 text-center sm:pb-8 sm:pt-8",children:e.jsx(z,{to:"/quiz",children:e.jsxs(Q,{variant:"ghost",className:"rounded-full text-stone-500 hover:text-stone-900",children:[e.jsx(zt,{className:"mr-2 h-4 w-4"}),t("results:retake")]})})})]}):e.jsxs("div",{className:"mx-auto max-w-6xl space-y-6 sm:space-y-8",children:[e.jsxs("section",{className:"animate-fade-up letter-card overflow-hidden",children:[e.jsx("div",{className:"airmail-stripe"}),e.jsx("div",{className:"px-6 py-10 sm:px-12 sm:py-14",children:e.jsxs("div",{className:"mx-auto max-w-3xl",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"stamp-label",children:t("results:pair.openingStamp")}),s.pairingPattern&&e.jsx("p",{className:"mt-6 font-handwritten text-xl text-stone-500 sm:mt-8 sm:text-2xl",children:s.pairingPattern})]}),e.jsx("p",{className:"mx-auto mt-4 max-w-2xl border-l-2 border-[#B8976A]/40 pl-4 text-left text-[15px] leading-7 text-stone-700 sm:mt-6 sm:pl-5 sm:text-base sm:leading-8",children:s.summary}),e.jsx("div",{className:"gold-line mt-10 sm:mt-12"}),s.personaA&&s.personaB&&s.metaB&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-10 text-center sm:mt-12",children:e.jsx("div",{className:"stamp-label",children:t("results:pair.twoOfYouStamp")})}),e.jsx("div",{className:"mt-8 grid gap-10 sm:mt-10 sm:grid-cols-2 sm:gap-12",children:[{label:s.labelA,persona:s.personaA,meta:s.metaA,primary:s.topA.primary,accent:"text-rose-700"},{label:s.labelB,persona:s.personaB,meta:s.metaB,primary:s.topB.primary,accent:"text-indigo-700"}].map((l,p)=>e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx(Lt,{src:le[l.primary],alt:l.persona.name,width:128,height:128,sizes:"128px",className:"h-24 w-24 rounded-2xl object-contain sm:h-28 sm:w-28"}),e.jsx("div",{className:A("mt-4 text-[11px] uppercase tracking-[0.28em]",l.accent),children:l.label}),e.jsx("h3",{className:"mt-2 font-romance text-2xl leading-tight text-stone-900 sm:text-[1.75rem]",children:l.persona.name}),e.jsxs("p",{className:"mt-3 max-w-xs text-[14px] italic leading-7 text-stone-500 sm:text-[15px] sm:leading-8",children:["“",l.persona.tagline,"”"]}),e.jsxs("div",{className:"mt-4 flex items-center gap-3",children:[e.jsx("span",{"aria-hidden":!0,
3className:A("h-5 w-1 rounded-full",l.meta.accentColorClass)}),e.jsx("span",{className:"font-romance text-base text-stone-700 sm:text-lg",children:l.meta.name})]}),e.jsx("p",{className:"mt-4 max-w-xs text-[14px] leading-7 text-stone-600 sm:text-[15px] sm:leading-8",children:l.persona.strengths})]},p))}),e.jsx("div",{className:"gold-line mt-10 sm:mt-12"})]}),e.jsxs("div",{className:"mt-10 text-center sm:mt-12",children:[e.jsx("div",{className:"stamp-label",children:t("results:pair.signalsStamp")}),e.jsx("h2",{className:"mt-5 font-romance text-2xl leading-snug text-stone-900 sm:mt-6 sm:text-3xl",children:t("results:pair.signalsTitle")})]}),e.jsx("div",{className:"mt-6 sm:mt-8",style:{height:320},children:e.jsx(Mt,{width:"100%",height:"100%",children:e.jsxs(Ht,{data:R,cx:"50%",cy:"50%",outerRadius:"72%",children:[e.jsx(Wt,{stroke:"#B8976A",strokeOpacity:.25,strokeDasharray:"3 4"}),e.jsx(Gt,{dataKey:"language",tick:{fill:"#57534e",fontSize:12,fontWeight:500,fontFamily:"Fraunces, Georgia, serif"}}),e.jsx(Kt,{angle:90,domain:[0,10],tick:!1,axisLine:!1}),e.jsx(Le,{name:s.labelA,dataKey:s.labelA,stroke:"#9f1239",fill:"#be123c",fillOpacity:.14,strokeWidth:2,dot:{r:3,fill:"#9f1239",stroke:"none"},isAnimationActive:!0,animationDuration:900}),e.jsx(Le,{name:s.labelB,dataKey:s.labelB,stroke:"#312e81",fill:"#312e81",fillOpacity:.1,strokeWidth:2,dot:{r:3,fill:"#312e81",stroke:"none"},isAnimationActive:!0,animationDuration:1200}),e.jsx(qt,{verticalAlign:"bottom",align:"center",content:({payload:l})=>e.jsx("div",{className:"flex flex-wrap justify-center gap-7 pt-4 sm:gap-9 sm:pt-5",children:(l??[]).map(p=>e.jsxs("span",{className:"inline-flex items-center gap-2 font-romance text-[15px] text-stone-700 sm:text-base",children:[e.jsx("span",{"aria-hidden":!0,className:"h-2 w-2 rounded-full",style:{background:p.color}}),String(p.value)]},String(p.value)))})})]})})}),e.jsx("p",{className:"mx-auto mt-3 max-w-xl text-center text-[13px] italic leading-7 text-stone-500 sm:mt-4 sm:text-sm sm:leading-8",children:t("results:pair.signalsCaption",{nameA:s.labelA,nameB:s.labelB})})]})})]}),e.jsxs("section",{id:"share-section",className:"letter-card p-5 sm:p-8",children:[e.jsxs("div",{className:"border-b border-stone-200/40 pb-4 sm:pb-5",children:[e.jsx("div",{className:"font-handwritten text-xl text-[#B8976A]",children:t("results:share.heading")}),e.jsx("h2",{className:"mt-1 text-lg font-semibold text-stone-900 sm:mt-2 sm:text-2xl",children:t("results:share.title")})]}),e.jsxs("div",{className:"mt-5 sm:mt-6",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("button",{type:"button",onClick:()=>u(!0),className:"overflow-hidden rounded-lg border border-stone-200/50 bg-white shadow-sm transition-shadow hover:shadow-md",style:{width:X,height:pt},title:"Click to preview full size",children:e.jsx("div",{style:{transform:`scale(${ht})`,transformOrigin:"top left"},children:e.jsx(ce,{ref:i,scoresA:s.scoresA,scoresB:s.scoresB??s.scoresA,primaryA:s.topA.primary,primaryB:((ve=s.topB)==null?void 0:ve.primary)??s.topA.primary,secondaryA:s.topA.secondary,secondaryB:((we=s.topB)==null?void 0:we.secondary)??s.topA.secondary,labelA:s.labelA,labelB:s.labelB,qrDataUrl:g})})})}),e.jsx("p",{className:"mt-2 text-center text-[11px] text-stone-400",children:t("results:share.tapToPreview")})]}),h&&e.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 p-4 backdrop-blur-sm",onClick:()=>u(!1),children:e.jsxs("div",{className:"relative overflow-hidden rounded-xl bg-white shadow-2xl",style:{width:ft,height:bt},onClick:l=>l.stopPropagation(),children:[e.jsx("div",{style:{transform:`scale(${Z})`,transformOrigin:"top left",width:k.width,height:k.height},children:e.jsx(ce,{scoresA:s.scoresA,scoresB:s.scoresB??s.scoresA,primaryA:s.topA.primary,primaryB:((Ne=s.topB)==null?void 0:Ne.primary)??s.topA.primary,secondaryA:s.topA.secondary,secondaryB:((ke=s.topB)==null?void 0:ke.secondary)??s.topA.secondary,labelA:s.labelA,labelB:s.labelB,qrDataUrl:g})}),e.jsx("button",{onClick:()=>u(!1),className:"absolute right-3 top-3 flex h-8 w-8 items-center justify-center rounded-full bg-black/40 text-white backdrop-blur transition-colors hover:bg-black/60",children:"✕"})]})}),e.jsx("div",{className:"mt-5 sm:mt-6",children:e.jsx(Xt,{solo:v,onDownload:H,onNativeShare:xt,downloading:n,onShareComplete:mt})})]}),!E&&f.hasShared&&(()=>{const l=J(!0,r);return e.jsx("div",{className:"rounded-xl border border-emerald-200 bg-emerald-50/50 px-4 py-3 text-sm text-emerald-800",dangerouslySetInnerHTML:{__html:t("results:pair.sharingDiscount",{original:l.original??"",current:l.current})}})})(),!E&&s.tips&&e.jsxs(e.Fragment,{children:[ct&&e.jsx("div",{className:"mb-3 rounded-xl border border-rose-200/60 bg-rose-50/60 p-4 text-center text-sm text-rose-700",children:t("paywall.verifying","Confirming your payment…")}),dt&&e.jsx("div",{className:"mb-3 rounded-xl border border-amber-300/70 bg-amber-50 p-4 text-center text-sm text-amber-800",children:t("paywall.verifyError","We couldn't confirm that payment yet. If you just paid, try refreshing in a moment, or use 'Restore' below with the email you used.")}),e.jsx(ks,{analysisPreview:((Ae=W[0])==null?void 0:Ae.paragraph)??"",tipPreview:((_e=s.groupedTips.both[0])==null?void 0:_e.text)??((Se=s.tips.tips[0])==null?void 0:Se.text)??"",planPreview:G.slice(0,3).map(l=>l.task),remainingTips:s.tips.tips.length-1,hasShared:f.hasShared,dataParam:c??"",onRestored:()=>P(Y(c))})]}),E&&e.jsxs(e.Fragment,{children:[W.length>0&&e.jsx(_s,{paragraphs:W.map(l=>l.paragraph)}),s.tips&&s.tips.tips.length>0&&e.jsx(Bs,{tips:s.tips.tips,labelA:s.labelA,labelB:s.labelB}),G.length>0&&e.jsx(Is,{plan:G}),e.jsx("div",{className:"text-center",children:e.jsx(m.Suspense,{fallback:null,children:e.jsx(Ps,{labelA:s.labelA,labelB:s.labelB,analysisParagraphs:W.map(l=>l.paragraph),tips:((Be=s.tips)==null?void 0:Be.tips)??[],actionPlan:G})})})]}),e.jsx("div",{className:"pb-6 pt-6 text-center",children:e.jsx(z,{to:"/quiz",className:"text-sm text-stone-500 hover:text-stone-900",children:t("results:retake")})})]})}),!E&&!v&&e.jsx(As,{hasShared:f.hasShared,dataParam:c??""})]})}
3export{Gs 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.