1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6ff0c933-e5d3-5a19-98b6-f61c0d801235")}catch(e){}}(); 3import{j as e}from"./radix-Dv40WeBR.js";import{e as _,r as a,L as m}from"./react-vendor-DMCBMKwH.js";import{u as B,a as S,n as i,bx as j,B as N,ae as y,V as E,bQ as $,a5 as A,c as C,L as P,T as D,H as k}from"./index-DY-XyNlk.js";import{T as H}from"./TemperamentDisplay-BkaKDAv-.js";import{u as O}from"./i18n-CRxfqRtU.js";import{L as V}from"./lock-B4x5IZEz.js";import"./charts-D11ksbhN.js";const v="temperament_result",w={choleric:{border:"border-red-500",bg:"bg-red-500/10",text:"text-red-600 dark:text-red-400",headerBg:"from-red-600 to-orange-600",emoji:"ð¥"},sanguine:{border:"border-sky-500",bg:"bg-sky-500/10",text:"text-sky-600 dark:text-sky-400",headerBg:"from-sky-600 to-blue-600",emoji:"ð¬ï¸"},melancholic:{border:"border-purple-500",bg:"bg-purple-500/10",text:"text-purple-600 dark:text-purple-400",headerBg:"from-purple-600 to-indigo-600",emoji:"ð"},phlegmatic:{border:"border-teal-500",bg:"bg-teal-500/10",text:"text-teal-600 dark:text-teal-400",headerBg:"from-teal-600 to-cyan-600",emoji:"ð§"}};function G(){var f;const{t,i18n:R}=O(),d=_(),c=(f=R.language)!=null&&f.startsWith("pt")?"pt-BR":"en-US",x=c==="pt-BR"?"/temperamento":"/temperament",{isAuthenticated:l}=B(),[r,p]=a.useState(null);S("Temperament Result Page");const u=a.useRef(!1),g=a.useRef(!1);if(a.useEffect(()=>{const n=d.state;if(n!=null&&n.temperament){p(n.temperament),sessionStorage.setItem(v,JSON.stringify({temperament:n.temperament}));return}const b=sessionStorage.getItem(v);if(b)try{const L=JSON.parse(b);p(L.temperament)}catch{}},[d.state]),a.useEffect(()=>{!u.current&&r&&(i.track("temperament_result_viewed",{dominant_temperament:r.dominant_key}),u.current=!0)},[r]),a.useEffect(()=>{!g.current&&!l&&r&&(i.track("temperament_lock_viewed",{dominant_temperament:r.dominant_key}),g.current=!0)},[l,r]),!r)return e.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center",children:[e.jsx(j,{children:e.jsx("meta",{name:"robots",content:"noindex"})}),e.jsxs("div",{className:"text-center px-4",children:[e.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:t("temperamentResult.noData")}),e.jsx(N,{asChild:!0,children:e.jsxs(m,{to:x,children:[e.jsx(y,{className:"w-4 h-4 mr-2"}),t("temperamentResult.backToLanding")]})})]})]});const s=w[r.dominant_key]||w.choleric,o=r.dominant_key,T=c==="pt-BR"?"/temperamento/resultado":"/temperament/result",h=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`border-l-4 ${s.border} bg-card rounded-xl p-6`,children:[e.jsxs("h3",{className:"font-semibold text-green-600 dark:text-green-400 mb-3 flex items-center gap-2",children:[e.jsx(E,{className:"w-4 h-4"}),t("temperamentResult.strengths")]}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t(`temperamentLanding.temperaments.${o}.strengths`)})]}),e.jsxs("div",{className:`border-l-4 ${s.border} bg-card rounded-xl p-6`,children:[e.jsx("h3",{className:"font-semibold text-amber-600 dark:text-amber-400 mb-3",children:t("temperamentResult.challenges")}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t(`temperamentLanding.temperaments.${o}.challenges`)})]}),e.jsxs("div",{className:`border-l-4 ${s.border} bg-card rounded-xl p-6`,children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx($,{className:"w-4 h-4"}),t("temperamentResult.inWork")]}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t(`temperamentLanding.temperaments.${o}.work`)})]}),e.jsxs("div",{className:`border-l-4 ${s.border} bg-card rounded-xl p-6`,children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx(A,{className:"w-4 h-4"}),t("temperamentResult.inLove")]}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t(`temperamentLanding.temperaments.${o}.love`)})]})]});return e.jsxs("div",{className:"w-full overflow-x-hidden",children:[e.jsx(j,{children:e.jsx("meta",{name:"robots",content:"noindex"})}),e.jsx("nav",{className:"bg-primary text-primary-foreground",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex justify-between items-center",children:[e.jsx(m,{to:"/",className:"flex items-center gap-2 hover:opacity-80 transition-opacity",children:e.jsx(C,{variant:"landing",shape:"lockup"})}),e.jsxs("div",{className:"flex items-center gap-3 text-primary-foreground",children:[e.jsx(P,{}),e.jsx(D,{})]})]})}),e.jsx("section",{className:`bg-gradient-to-br ${s.headerBg} text-white py-16 md:py-24`,children:e.jsxs("div",{className:"container mx-auto px-4 text-center",children:[e.jsx("div",{className:"text-6xl mb-6",children:s.emoji}),e.jsx("p",{className:"text-lg text-white/80 mb-2",children:t("temperamentResult.greeting")}),e.jsx("h1",{className:"text-4xl md:text-5xl font-serif font-bold mb-4",children:r.dominant}),e.jsxs("p",{className:"text-lg text-white/80 max-w-xl mx-auto",children:[r.element," â ",r.description]})]})}),e.jsx("section",{className:"py-12 bg-background",children:e.jsx("div",{className:"container mx-auto px-4 max-w-3xl",children:e.jsx(H,{temperament:r})})}),e.jsx("section",{className:"py-12 bg-muted/30",children:e.jsx("div",{className:"container mx-auto px-4 max-w-3xl",children:l?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:h}):e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 blur-sm select-none pointer-events-none","aria-hidden":"true",children:h}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsxs("div",{className:"bg-card/95 backdrop-blur-sm border border-border rounded-2xl p-8 text-center max-w-md
3shadow-xl",children:[e.jsx(V,{className:"w-8 h-8 text-primary mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-serif font-semibold text-foreground mb-2",children:t("temperamentResult.lockedTitle",{temperament:r.dominant})}),e.jsx("p",{className:"text-muted-foreground mb-6",children:t("temperamentResult.lockedDescription",{temperament:r.dominant})}),e.jsxs(m,{to:`/register?redirect=${T}`,className:"inline-flex items-center justify-center px-6 py-3 bg-primary text-primary-foreground rounded-full font-medium transition-all hover:shadow-lg gap-2",onClick:()=>i.track("temperament_lock_cta_clicked",{dominant_temperament:r.dominant_key}),children:[t("temperamentResult.lockCtaButton"),e.jsx(k,{className:"w-4 h-4"})]})]})})]})})}),l&&e.jsx("section",{className:"py-16 bg-background text-center",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto mb-4 italic",children:t("temperamentResult.fullChartTeaser")}),e.jsx("h2",{className:"text-2xl md:text-3xl font-serif text-primary mb-4",children:t("temperamentResult.ctaTitle")}),e.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto mb-8",children:t("temperamentResult.ctaSubtitle")}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs(m,{to:"/charts/new",className:"inline-flex items-center justify-center px-8 py-3 bg-primary text-primary-foreground rounded-full font-medium text-lg transition-all hover:shadow-xl hover:-translate-y-1 gap-2",children:[t("temperamentResult.ctaButton"),e.jsx(k,{className:"w-5 h-5"})]}),e.jsx(N,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full px-8",children:e.jsxs(m,{to:x,children:[e.jsx(y,{className:"w-4 h-4 mr-2"}),t("temperamentResult.backToLanding")]})})]})]})}),e.jsx("footer",{className:"bg-card border-t border-border py-8",role:"contentinfo",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 text-center",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Real Astrology."," ",t("footer.allRightsReserved",{defaultValue:"All rights reserved."})]})})})]})}export{G as TemperamentResultPage}; 4 5//# debugId=6ff0c933-e5d3-5a19-98b6-f61c0d801235
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.