1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7438],{20063:(e,t,r)=>{var a=r(47260);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},76619:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var a=r(95155),s=r(12115),l=r(52619),n=r.n(l),i=r(1559),o=r(44310),d=r(27914),c=r(36489),m=r(18955),u=r(34577);function x(){var e;let{profiles:t,activeProfile:r,addProfile:l}=(0,o.x)(),{data:x}=(0,c.useSession)(),h=(0,m.c)("kundliMilanForm"),b=new Date().toISOString().slice(0,10),[g,p]=(0,s.useState)(null),[f,j]=(0,s.useState)(null),[v,N]=(0,s.useState)({name:"",date:"",time:"",timezone:"",latitude:null,longitude:null,location:""}),[w,y]=(0,s.useState)({name:"",date:"",time:"",timezone:"",latitude:null,longitude:null,location:""}),[k,D]=(0,s.useState)(!1),[S,C]=(0,s.use
1State)(null),[P,z]=(0,s.useState)(""),[E,M]=(0,s.useState)([]),[T,R]=(0,s.useState)([]),_=(0,s.useRef)(null),q=(0,s.useRef)(null),F=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(S)return(0,u.g)(F,{focus:!0})},[S]),(0,s.useEffect)(()=>{if(g){var e,t;N({name:g.name,date:g.dob,time:g.tob,timezone:g.timezone||"",latitude:null!=(e=g.lat)?e:null,longitude:null!=(t=g.lon)?t:null,location:g.place}),M([])}},[g]),(0,s.useEffect)(()=>{if(f){var e,t;y({name:f.name,date:f.dob,time:f.tob,timezone:f.timezone||"",latitude:null!=(e=f.lat)?e:null,longitude:null!=(t=f.lon)?t:null,location:f.place}),R([])}},[f]),(0,s.useEffect)(()=>{if(t.length>=1){let e=t.find(e=>"female"===e.gender),r=t.find(e=>"male"===e.gender);e&&!g&&p(e),r&&!f&&j(r)}},[t]);let G=async e=>{e.preventDefault(),z(""),D(!0);try{var t;if(!v.name||!v.date||!v.time||!v.timezone||null==v.latitude||null==v.longitude)throw Error(h("brideFieldsRequired"));if(!w.name||!w.date||!w.time||!w.timezone||null==w.latitude||null==w.longitude)throw Error(h("groomFieldsRequired"));let e={bride:{name:v.name,date:v.date,time:v.time,tz:v.timezone,lat:v.latitude,lon:v.longitude},groom:{name:w.name,date:w.date,time:w.time,tz:w.timezone,lat:w.latitude,lon:w.longitude}},a=await fetch("/api/kundli-milan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await a.json();if(!a.ok)throw Error(s.error||h("failedToCalculate",{status:a.status}));C(s),(null==x||null==(t=x.user)?void 0:t.email)&&(v.name&&v.date&&v.time&&null!=v.latitude&&null!=v.longitude&&l({name:v.name.trim(),dob:v.date,tob:v.time,place:v.location.trim(),lat:v.latitude,lon:v.longitude,timezone:v.timezone||"UTC",gender:"female"},{activate:!r||r.id===(null==g?void 0:g.id)}).catch(e=>console.error("Failed to auto-save bride profile:",e)),w.name&&w.date&&w.time&&null!=w.latitude&&null!=w.longitude&&l({name:w.name.trim(),dob:w.date,tob:w.time,place:w.location.trim(),lat:w.latitude,lon:w.longitude,timezone:w.timezone||"UTC",gender:"male"},{activate:(null==r?void 0:r.id)===(null==f?void 0:f.id)}).catch(e=>console.error("Failed to auto-save groom profile:",e)))}catch(e){z(e.message||h("errorOccurred"))}finally{D(!1)}};async function B(e,t,r){if(!e||e.length<3)return void("bride"===r?M([]):R([]));try{let t=await fetch("/api/place?q=".concat(encodeURIComponent(e))),a=(await t.json()).results||[];"bride"===r?M(a):R(a)}catch(e){console.error("Location lookup failed:",e)}}let I=(e,t)=>{N(r=>({...r,[e]:t})),"location"===e&&"string"==typeof t&&(clearTimeout(_.current),_.current=setTimeout(()=>B(t,N,"bride"),250))},A=(e,t)=>{y(r=>({...r,[e]:t})),"location"===e&&"string"==typeof t&&(clearTimeout(q.current),q.current=setTimeout(()=>B(t,y,"groom"),250))},L=(e,t)=>{let r=parseFloat(e.lat),a=parseFloat(e.lon),s="string"==typeof e.timezone?e.timezone:"",l={location:e.display_name,latitude:r,longitude:a,timezone:s};"bride"===t?(N(e=>({...e,...l})),M([])):(y(e=>({...e,...l})),R([]))};return(0,a.jsxs)("div",{children:[(0,a.jsxs)("form",{onSubmit:G,className:"space-y-8",children:[t.length>0&&(0,a.jsxs)("div",{className:"bg-orange-900/20 border border-orange-500/30 rounded-xl p-4 mb-4",children:[(0,a.jsxs)("p",{className:"text-sm text-orange-300 mb-3 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-lg",children:"\uD83E\uDE94"}),(0,a.jsx)("span",{children:h("profileHint")})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsx)(i.A,{label:h("brideProfile"),placeholder:h("selectOrManual"),selectedProfile:g,onSelect:e=>{p(e),e||N({name:"",date:"",time:"",timezone:"",latitude:null,longitude:null,location:""})},excludeProfileIds:f?[f.id]:[],showCreateButton:!0}),(0,a.jsx)(i.A,{label:h("groomProfile"),placeholder:h("selectOrManual"),selectedProfile:f,onSelect:e=>{j(e),e||y({name:"",date:"",time:"",timezone:"",latitude:null,longitude:null,location:""})},excludeProfileIds:g?[g.id]:[],showCreateButton:!0})]})]}),(0,a.jsxs)("div",{className:"border border-[var(--border)] rounded-xl p-6 bg-gradient-to-br from-pink-900/10 to-rose-900/10",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold mb-4 text-pink-400 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDC70"}),h("brideDetails"),g&&(0,a.jsx)("span",{className:"text-xs font-normal text-pink-400 ml-2",children:h("fromProfile")})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("fullName")}
1),(0,a.jsx)("input",{type:"text",value:v.name,onChange:e=>I("name",e.target.value),className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-pink-500",placeholder:h("brideNamePlaceholder"),required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("birthDate")}),(0,a.jsx)("input",{type:"date",value:v.date,onChange:e=>I("date",e.target.value),min:"1800-01-01",max:b,className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-pink-500",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("birthTime")}),(0,a.jsx)("input",{type:"time",value:v.time,onChange:e=>I("time",e.target.value),className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-pink-500",required:!0})]}),(0,a.jsxs)("div",{className:"md:col-span-2 relative",children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("birthLocation")}),(0,a.jsx)("input",{type:"text",value:v.location,onChange:e=>I("location",e.target.value),className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-pink-500",placeholder:h("citySearchPlaceholder"),required:!0}),E.length>0&&(0,a.jsx)("div",{className:"absolute z-10 mt-1 w-full max-h-64 overflow-auto rounded-md border border-[var(--border)] bg-[var(--card)] shadow-lg",children:E.map(e=>(0,a.jsx)("button",{type:"button",className:"w-full text-left px-3 py-2 hover:bg-[var(--muted)]/20 border-b border-[var(--border)] last:border-b-0",onClick:()=>L(e,"bride"),children:(0,a.jsx)("div",{className:"font-medium",children:e.display_name})},e.place_id))})]})]})]}),(0,a.jsxs)("div",{className:"border border-[var(--border)] rounded-xl p-6 bg-gradient-to-br from-blue-900/10 to-indigo-900/10",children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold mb-4 text-blue-400 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83E\uDD35"}),h("groomDetails"),f&&(0,a.jsx)("span",{className:"text-xs font-normal text-blue-400 ml-2",children:h("fromProfile")})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("fullName")}),(0,a.jsx)("input",{type:"text",value:w.name,onChange:e=>A("name",e.target.value),className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-blue-500",placeholder:h("groomNamePlaceholder"),required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("birthDate")}),(0,a.jsx)("input",{type:"date",value:w.date,onChange:e=>A("date",e.target.value),min:"1800-01-01",max:b,className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-blue-500",required:!0})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("birthTime")}),(0,a.jsx)("input",{type:"time",value:w.time,onChange:e=>A("time",e.target.value),className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-blue-500",required:!0})]}),(0,a.jsxs)("div",{className:"md:col-span-2 relative",children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-2",children:h("birthLocation")}),(0,a.jsx)("input",{type:"text",value:w.location,onChange:e=>A("location",e.target.value),className:"w-full px-3 py-2 border border-[var(--border)] rounded-lg bg-[var(--background)] focus:ring-2 focus:ring-blue-500",placeholder:h("citySearchPlaceholder"),required:!0}),T.length>0&&(0,a.jsx)("div",{className:"absolute z-10 mt-1 w-full max-h-64 overflow-auto rounded-md border border-[var(--border)] bg-[var(--card)] shadow-lg",children:T.map(e=>(0,a.jsx)("button",{type:"button",className:"w-full text-left px-3 py-2 hover:bg-[var(--muted)]/20 border-b border-[var(--border)] last:border-b-0",onClick:()=>L(e,"groom"),children:(0,a.jsx)("div",{className:"font-medium",children:e.display_name})},e.place_id))})]})]})]}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)("button",{type:"submit",disabled:k,className:"bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white px-8 py-3 rounded-lg font-semibold transition-all duration-300 shadow-lg hover:shadow-xl transform hover:scale-105 disabled:opacity-50",children:k?h("calculating"):h("calculate")})})]}),P&&(0,a.jsx)("div",{className:"mt-4 p-4 bg-red-900/20 border border-red-500/30 rounded-lg",children:(0,a.jsx)("p",{className:"text-red-400",children:P})}),S&&(0,a.jsxs)("div",{ref:F,tabIndex:-1,role:"region","aria-label":"Kundli Milan results",className:"mt-8 space-y-6 outline-none scroll-mt-[calc(var(--site-header-height,0px)+12px)]",children:[(0,a.jsx)("div",{className:"border rounded-xl p-6 bg-gradient-to-r ".concat((e=>{switch(e){case"green":return"from-green-600/20 to-emerald-600/20 border-green-500/40";case"yellow":return"from-yellow-600/20 to-amber-600/20 border-yellow-500/40";case"orange":return"from-orange-600/20 to-amber-600/20 border-orange-500/40";case"red":return"from-red-600/20 to-rose-600/20 border-red-500/40";default:return"from-violet-600/20 to-purple-600/20 border-violet-500/40"}})(S.verdict.color)),children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("h3",{className:"text-2xl font-semibold mb-4 flex items-center justify-center gap-2",children:["\uD83E\uDE94 Gun Milan Score","Swiss Ephemeris"===S.calculationEngine&&"lahiri_sidereal_ashtakoota"===S.calculationMethod&&(0,a.jsx)("span",{className:"text-xs bg-green-500/20 text-green-300 px-2 py-1 rounded-full",children:"Swiss Ephemeris"}),(null==(e=S.calculationMeta)?void 0:e.rulesVersion)==="north_indian_ashtakoota_v2"&&(0,a.jsx)("span",{className:"text-xs bg-amber-500/20 text-amber-200 px-2 py-1 rounded-full",children:"Lahiri \xb7 North Indian rules"})]}),(0,a.jsxs)("div",{className:"relative w-48 h-48 mx-auto mb-4",children:[(0,a.jsxs)("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 100 100",children:[(0,a.jsx)("circle",{cx:"50",cy:"50",r:"45",stroke:"currentColor",strokeWidth:"6",fill:"none",className:"text-white/10"}
1),(0,a.jsx)("circle",{cx:"50",cy:"50",r:"45",stroke:"url(#scoreGradient)",strokeWidth:"6",fill:"none",strokeLinecap:"round",strokeDasharray:"".concat(S.percentage/100*283," 283"),className:"transition-all duration-1000"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"scoreGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#f97316"}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#ef4444"})]})})]}),(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[(0,a.jsx)("span",{className:"text-5xl font-bold",children:S.totalScore}),(0,a.jsxs)("span",{className:"text-xl text-white/60",children:["/ ",S.maxScore]})]})]}),(0,a.jsxs)("div",{className:"text-3xl font-bold mb-2",children:[S.percentage,"%"]}),(0,a.jsx)("div",{className:"text-2xl font-semibold mb-3",children:S.verdict.verdict}),(0,a.jsx)("p",{className:"text-sm text-white/80 max-w-2xl mx-auto",children:S.verdict.description}),(0,a.jsx)("div",{className:"mt-4 inline-block px-4 py-2 rounded-full bg-white/10 text-sm font-medium",children:S.verdict.recommendation}),(0,a.jsx)("p",{className:"mt-4 text-xs leading-relaxed text-white/60 max-w-2xl mx-auto",children:"Swiss Ephemeris is used for Lahiri sidereal Moon positions, followed by the North Indian Ashtakoota scoring table. Regional traditions can use different rules. This is not a medical assessment or a guarantee about a relationship."})]})}),(0,a.jsxs)("div",{className:"border border-amber-500/30 rounded-xl p-5 bg-gradient-to-r from-amber-900/20 to-orange-900/20",children:[(0,a.jsxs)("h4",{className:"font-semibold text-amber-400 mb-3 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDCDC"})," Summary"]}),(0,a.jsx)("p",{className:"text-white/90",children:S.summary})]}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"border border-pink-500/30 rounded-xl p-5 bg-gradient-to-br from-pink-900/20 to-rose-900/10",children:[(0,a.jsxs)("h4",{className:"font-semibold text-pink-400 mb-4 flex items-center gap-2 text-lg",children:[(0,a.jsx)("span",{children:"\uD83D\uDC70"})," ",S.bride.name,"'s Birth Details"]}),(0,a.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-pink-900/20",children:[(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"â"})," Nakshatra"]}),(0,a.jsxs)("span",{className:"font-medium text-pink-300",children:[S.bride.nakshatra," ",S.bride.nakshatraPada&&"(Pada ".concat(S.bride.nakshatraPada,")")]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-pink-900/20",children:[(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83C\uDF19"})," Rashi"]}),(0,a.jsx)("span",{className:"font-medium text-pink-300",children:S.bride.rashi})]}),void 0!==S.bride.moonDegree&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-pink-900/20",children:[(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDCCD"})," Moon Position"]}),(0,a.jsxs)("span",{className:"font-medium text-pink-300",children:[S.bride.moonDegree,"\xb0"]})]})]})]}),(0,a.jsxs)("div",{className:"border border-blue-500/30 rounded-xl p-5 bg-gradient-to-br from-blue-900/20 to-indigo-900/10",children:[(0,a.jsxs)("h4",{className:"font-semibold text-blue-400 mb-4 flex items-center gap-2 text-lg",children:[(0,a.jsx)("span",{children:"\uD83E\uDD35"})," ",S.groom.name,"'s Birth Details"]}),(0,a.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-blue-900/20",children:[(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"â"})," Nakshatra"]}),(0,a.jsxs)("span",{className:"font-medium text-blue-300",children:[S.groom.nakshatra," ",S.groom.nakshatraPada&&"(Pada ".concat(S.groom.nakshatraPada,")")]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-blue-900/20",children:[(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83C\uDF19"})," Rashi"]}),(0,a.jsx)("span",{className:"font-medium text-blue-300",children:S.groom.rashi})]}),void 0!==S.groom.moonDegree&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-blue-900/20",children:[(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDCCD"})," Moon Position"]}),(0,a.jsxs)("span",{className:"font-medium text-blue-300",children:[S.groom.moonDegree,"\xb0"]})]})]})]})]}),(0,a.jsxs)("div",{className:"border border-[var(--border)] rounded-xl p-6 bg-[var(--card)]/60",children:[(0,a.jsxs)("h4",{className:"text-xl font-semibold mb-4 text-orange-400 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"\uD83D\uDD49ï¸"})," Ashtakoot (8 Kutas) Analysis"]}),(0,a.jsx)("div",{className:"space-y-4",children:S.kutas.map((e,t)=>{let r={Varna:"\uD83D\uDD49ï¸",Vashya:"\uD83E\uDDF2",Tara:"â",Yoni:"\uD83D\uDC95","Graha Maitri":"\uD83E\uDE90",Gana:"\uD83D\uDC64",Bhakoot:"â
1¤ï¸",Nadi:"\uD83E\uDE78"}[e.name]||"â¨";return(0,a.jsxs)("div",{className:"border border-[var(--border)] rounded-lg p-4 bg-[var(--background)]/30 hover:bg-[var(--background)]/50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-2xl",children:r}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold text-lg",children:e.name}),(0,a.jsxs)("span",{className:"text-white/60 text-sm ml-2",children:["(",e.description,")"]})]})]}),(0,a.jsxs)("div",{className:"text-xl font-bold ".concat(((e,t)=>{let r=e/t*100;return r>=75?"text-green-500":r>=50?"text-yellow-500":r>=25?"text-orange-500":"text-red-500"})(e.score,e.maxScore)),children:[e.score,"/",e.maxScore]})]}),(0,a.jsx)("div",{className:"h-2 bg-white/10 rounded-full overflow-hidden mb-3",children:(0,a.jsx)("div",{className:"h-full transition-all duration-500 ".concat(e.score===e.maxScore?"bg-green-500":e.score>=.5*e.maxScore?"bg-yellow-500":e.score>0?"bg-orange-500":"bg-red-500"),style:{width:"".concat(e.score/e.maxScore*100,"%")}})}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 gap-2 text-sm mb-2",children:[e.bride&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded bg-pink-900/20",children:[(0,a.jsx)("span",{className:"text-pink-400",children:"\uD83D\uDC70 Bride:"}),(0,a.jsx)("span",{className:"font-medium",children:e.bride})]}),e.groom&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded bg-blue-900/20",children:[(0,a.jsx)("span",{className:"text-blue-400",children:"\uD83E\uDD35 Groom:"}),(0,a.jsx)("span",{className:"font-medium",children:e.groom})]})]}),e.interpretation&&(0,a.jsx)("p",{className:"text-sm text-white/80 mt-2 p-2 rounded bg-white/5 border-l-2 border-orange-500/50",children:e.interpretation})]},t)})})]}),S.doshas&&S.doshas.length>0&&(0,a.jsxs)("div",{className:"border border-red-500/30 rounded-xl p-6 bg-red-900/10",children:[(0,a.jsxs)("h4",{className:"text-xl font-semibold mb-4 text-red-400 flex items-center gap-2",children:[(0,a.jsx)("span",{children:"â ï¸"})," Doshas Identified"]}),(0,a.jsx)("div",{className:"space-y-4",children:S.doshas.map((e,t)=>(0,a.jsxs)("div",{className:"border border-red-500/20 rounded-lg p-4 bg-red-900/20",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("h5",{className:"font-semibold text-red-300",children:e.name}),(0,a.jsxs)("span",{className:"px-2 py-1 rounded text-xs ".concat("High"===e.severity?"bg-red-600/30 text-red-300":"bg-orange-600/30 text-orange-300"),children:[e.severity," Severity"]})]}),(0,a.jsx)("p",{className:"text-sm text-white/80 mb-3",children:e.description}),e.remedies&&e.remedies.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-green-400 mb-1",children:"Remedies:"}),(0,a.jsx)("ul",{className:"text-sm text-white/70 list-disc list-inside",children:e.remedies.map((e,t)=>(0,a.jsx)("li",{children:e},t))})]})]},t))})]}),(0,a.jsxs)("div",{className:"border border-[var(--border)] rounded-xl p-6 bg-[var(--card)]/40",children:[(0,a.jsx)("h4",{className:"text-lg font-semibold mb-4",children:"Guna Milan Score Guide"}),(0,a.jsxs)("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4 text-sm",children:[(0,a.jsxs)("div",{className:"p-3 rounded-lg bg-green-900/20 border border-green-500/30",children:[(0,a.jsx)("div",{className:"font-semibold text-green-400",children:"32-36 Points"}),(0,a.jsx)("p",{className:"text-white/70",children:"Traditionally excellent (Uttam)"})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg bg-green-900/10 border border-green-500/20",children:[(0,a.jsx)("div",{className:"font-semibold text-green-300",children:"25-31 Points"}),(0,a.jsx)("p",{className:"text-white/70",children:"Traditionally very good"})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg bg-yellow-900/20 border border-yellow-500/30",children:[(0,a.jsx)("div",{className:"font-semibold text-yellow-400",children:"18-24 Points"}),(0,a.jsx)("p",{className:"text-white/70",children:"Traditional minimum met"})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg bg-orange-900/20 border border-orange-500/30",children:[(0,a.jsx)("div",{className:"font-semibold text-orange-400",children:"Below 18"}),(0,a.jsx)("p",{className:"text-white/70",children:"Review the full context"})]})]})]}),(0,a.jsx)(d.k,{type:"kundliMilan",defaultExpanded:!0,data:{score:S.totalScore,maxScore:S.maxScore,percentage:S.percentage,calculationMethod:S.calculationMethod,scoringMethod:S.scoringMethod,breakdown:S.kutas,verdict:S.verdict},person1:{name:v.name,dob:v.date,tob:v.time,place:v.location,timezone:v.timezone,latitude:v.latitude,longitude:v.longitude},person2:{name:w.name,dob:w.date,tob:w.time,place:w.location,timezone:w.timezone,latitude:w.latitude,longitude:w.longitude}}),(0,a.jsxs)("div",{className:"text-center pt-4",children:[(0,a.jsx)(n(),{href:"#calculator",className:"inline-block bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-600 hover:to-red-600 text-white px-8 py-4 rounded-lg font-semibold transition-all shadow-lg hover:shadow-xl text-lg scroll-smooth",children:"Calculate Another Match"}),(0,a.jsx)("p",{className:"text-sm text-white/60 mt-2",children:"Try different birth details to compare compatibility"})]})]})]})}}}]);
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.