1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,903800,e=>{"use strict";var s=e.i(466471),a=e.i(717555),t=e.i(536355),r=e.i(884702),l=e.i(79864),c=e.i(247835),n=e.i(684397),i=e.i(199978),o=e.i(511398),d=e.i(118621),u=e.i(273792),m=e.i(686247),x=e.i(638678),h=e.i(575745),f=e.i(330771),p=e.i(615978),b=e.i(819023),j=e.i(779342),g=e.i(462297),y=e.i(702422),v=e.i(949908),N=e.i(654150),C=e.i(167976),S=e.i(204544),w=e.i(71131),T=e.i(327889),k=e.i(497538),F=e.i(181629),L=e.i(760617),L=L,P=e.i(51490),A=e.i(534440),D=e.i(463209),M=e.i(238946),M=M,z=e.i(752814),z=z,H=e.i(653668),R=e.i(545998),R=R,B=e.i(695859),q=e.i(891686),q=q,U=e.i(302232),E=e.i(553638),I=e.i(194113),I=I,_=e.i(840706),Y=e.i(131781),Y=Y,K=e.i(526683),O=e.i(998264);let V={focusHouses:0,angularPlanets:0,lifeAreas:0,planets:0,aspects:0,timelineMonths:0,timelineKeyDates:0};function $(e,s){var a;let t=null==(a=e.locked)?void 0:a[s];return"number"==typeof t&&Number.isFinite(t)&&t>0?t:0}function J(e,s,a){let t=e??[],r=t.slice(0,s);return{shown:r,locked:a+(t.length-r.length)}}let W={Aries:{symbol:"â",element:"fire",modality:"cardinal",ruler:"mars"},Taurus:{symbol:"â",element:"earth",modality:"fixed",ruler:"venus"},Gemini:{symbol:"â",element:"air",modality:"mutable",ruler:"mercury"},Cancer:{symbol:"â",element:"water",modality:"cardinal",ruler:"moon"},Leo:{symbol:"â",element:"fire",modality:"fixed",ruler:"sun"},Virgo:{symbol:"â",element:"earth",modality:"mutable",ruler:"mercury"},Libra:{symbol:"â",element:"air",modality:"cardinal",ruler:"venus"},Scorpio:{symbol:"â",element:"water",modality:"fixed",ruler:"pluto"},Sagittarius:{symbol:"â",element:"fire",modality:"mutable",ruler:"jupiter"},Capricorn:{symbol:"â",element:"earth",modality:"cardinal",ruler:"saturn"},Aquarius:{symbol:"â",element:"air",modality:"fixed",ruler:"uranus"},Pisces:{symbol:"â",element:"water",modality:"mutable",ruler:"neptune"}},G={sun:{symbol:"â",name:"Sun",color:"#FFD700"},moon:{symbol:"â½",name:"Moon",color:"#C0C0C0"}
1,mercury:{symbol:"â¿",name:"Mercury",color:"#87CEEB"},venus:{symbol:"â",name:"Venus",color:"#FFB6C1"},mars:{symbol:"â",name:"Mars",color:"#FF6347"},jupiter:{symbol:"â",name:"Jupiter",color:"#9370DB"},saturn:{symbol:"â",name:"Saturn",color:"#808080"},uranus:{symbol:"â
",name:"Uranus",color:"#40E0D0"},neptune:{symbol:"â",name:"Neptune",color:"#4169E1"},pluto:{symbol:"â",name:"Pluto",color:"#8B0000"},northNode:{symbol:"â",name:"North Node",color:"#9932CC"},chiron:{symbol:"â·",name:"Chiron",color:"#FF8C00"}},X=[{value:"-12",label:"(UTC-12:00) International Date Line West"},{value:"-11",label:"(UTC-11:00) Midway Island, Samoa"},{value:"-10",label:"(UTC-10:00) Hawaii"},{value:"-9",label:"(UTC-09:00) Alaska"},{value:"-8",label:"(UTC-08:00) Pacific Time (US & Canada)"},{value:"-7",label:"(UTC-07:00) Mountain Time (US & Canada)"},{value:"-6",label:"(UTC-06:00) Central Time (US & Canada)"},{value:"-5",label:"(UTC-05:00) Eastern Time (US & Canada)"},{value:"-4",label:"(UTC-04:00) Atlantic Time (Canada)"},{value:"-3",label:"(UTC-03:00) Brasilia, Buenos Aires"},{value:"-2",label:"(UTC-02:00) Mid-Atlantic"},{value:"-1",label:"(UTC-01:00) Azores"},{value:"0",label:"(UTC+00:00) Greenwich Mean Time, London"},{value:"1",label:"(UTC+01:00) Central European Time"},{value:"2",label:"(UTC+02:00) Eastern European Time"},{value:"3",label:"(UTC+03:00) Moscow, Baghdad"},{value:"4",label:"(UTC+04:00) Dubai, Abu Dhabi"},{value:"5",label:"(UTC+05:00) Pakistan, Tashkent"},{value:"5.5",label:"(UTC+05:30) India, Sri Lanka"},{value:"6",label:"(UTC+06:00) Bangladesh, Almaty"},{value:"7",label:"(UTC+07:00) Bangkok, Jakarta"},{value:"8",label:"(UTC+08:00) Beijing, Singapore, Hong Kong"},{value:"9",label:"(UTC+09:00) Tokyo, Seoul"},{value:"10",label:"(UTC+10:00) Sydney, Melbourne"},{value:"11",label:"(UTC+11:00) Solomon Islands"},{value:"12",label:"(UTC+12:00) Auckland, Fiji"}],Z={career:(0,s.jsx)(T.Briefcase,{className:"h-5 w-5"}),love:(0,s.jsx)(k.Heart,{className:"h-5 w-5"}),home:(0,s.jsx)(F.Home,{className:"h-5 w-5"}),money:(0,s.jsx)(L.default,{className:"h-5 w-5"}),health:(0,s.jsx)(P.Activity,{className:"h-5 w-5"}),travel:(0,s.jsx)(A.Plane,{className:"h-5 w-5"})},Q=["career","love","home","money","health","travel"];function ee(e,s){let a,l=(0,t.c)(3),c=(0,r.useRef)(null);return l[0]!==s||l[1]!==e?(a=function(){for(var a=arguments.length,t=Array(a),r=0;r<a;r++)t[r]=arguments[r];c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{e(...t)},s)},l[0]=s,l[1]=e,l[2]=a):a=l[2],a}let es={form:{birthInfo:"Enter Your Birth Information",birthInfoDesc:"Accurate birth time is important for precise house placements",birthDate:"Birth Date",birthTime:"Birth Time",birthLocation:"Birth Location",birthLocationPlaceholder:"Enter city name...",coordinates:"Coordinates:",birthTimezone:"Birth Timezone",selectTimezone:"Select timezone"},tabs:{calculate:"Calculate Chart",compare:"Compare Locations"},calculator:{solarReturnYear:"Solar Return Year",current:"(Current)",next:"(Next)",differentLocation:"Calculate for a different birthday location",birthdayLocation:"Birthday Location",birthdayLocationPlaceholder:"Where will you be on your birthday?",birthdayTimezone:"Birthday Location Timezone",advancedOptions:"Advanced Options",houseSystem:"House System",houseSystems:{placidus:"Placidus",wholeSign:"Whole Sign",koch:"Koch",equal:"Equal House"},generateChart:"Generate Solar Return Chart",calculating:"Calculating..."},compare:{returnYear:"Return Year",citiesToCompare:"Cities to Compare",addCity:"Add City",cityPlaceholder:"City {n}...",addCitiesHint:"Add up to 5 cities to compare. Select from suggestions to confirm location.",preferences:"What matters most",preferencesHint:"Adjust weights to prioritize life areas in the comparison score.",weightLabels:{low:"Low priority",medium:"Balanced",high:"High priority"},compareCities:"Compare Cities",comparingLocations:"Comparing Locations..."},areas:{career:"Career",love:"Love",home:"Home",money:"Money",health:"Health",travel:"Travel"},results:{yearTheme:"{year} Year Theme",topFocusAreas:"Top Focus Areas",house:"House",keyFactors:"Key Factors",srAscendant:"SR Ascendant",rulerInHouse:"Ruler in House {house}",sunHouse:"Sun House",moonHouse:"Moon House",in:"in",angularPlanets:"Angular Planets",conjunct:"conjunct",lifeAreaForecast:"Life Area Forecast",lifeAreaForecastDesc:"How different areas of your life are influenced this year",planetaryPositions:"Planetary Positions",planetaryPositionsDesc:"Where the planets are in y
1our Solar Return chart",tableHeaders:{planet:"Planet",sign:"Sign",degree:"Degree",house:"House"},retrograde:"(R)",solarReturnInfo:"Solar Return calculated for:",location:"Location:",aspects:"Major Aspects",aspectsDesc:"Key planetary relationships shaping the year",aspectTypes:{conjunction:"conjunct",opposition:"opposition",trine:"trine",square:"square",sextile:"sextile",quincunx:"quincunx"},orb:"orb",applying:"applying",separating:"separating",timeline:"Year Timeline",timelineDesc:"Monthly themes and key dates in your Solar Return year",timelineMonths:"Monthly Themes",timelineKeyDates:"Key Dates",timelineMonthLabel:"Month {month}",keyDateTypes:{opportunity:"Opportunity",challenge:"Challenge",transition:"Transition"},calculationMeta:{title:"Calculation Details",houseSystem:"House system",zodiacType:"Zodiac",zodiacTypes:{tropical:"Tropical",sidereal:"Sidereal"},timezone:"Timezone",timezoneSource:"Source",timezoneSources:{iana:"IANA",input:"Manual"},ephemeris:"Ephemeris",accuracy:"Accuracy",exact:"Exact",estimated:"Estimated",notes:"Notes",flags:{houseSystemFallback:"Requested house system unavailable; using {used}.",zodiacFallback:"Sidereal requested; using tropical.",birthTimezoneFallback:"Birth timezone from manual offset.",returnTimezoneFallback:"Return timezone from manual offset.",nodeApprox:"North Node uses a mean-node approximation.",chironApprox:"Chiron uses a simplified approximation.",solarReturnApprox:"Solar return moment approximated."}},actions:{title:"Report Actions",description:"Save this report or export a PDF for your records.",save:"Save Report",saving:"Saving...",saved:"Saved",viewDashboard:"View in Dashboard",print:"Print / Save PDF"}},comparison:{title:"Comparison Results",score:"Score:",bestChoice:"Best Choice",ascendant:"Ascendant:",midheaven:"Midheaven:",bestFor:"Best for:",angularPlanets:"Angular Planets:",on:"on",breakdownTitle:"Score Breakdown",breakdownBase:"Base",breakdownAngular:"Angular",breakdownFocus:"Focus",reasonsTitle:"Why this location",ctaText:"Found your ideal birthday location? Generate a detailed Solar Return chart for that city.",generateFullChart:"Generate Full Solar Return Chart"},errors:{birthDateRequired:"Please enter your birth date",birthTimeRequired:"Please enter your birth time",birthLocationRequired:"Please select a valid birth location",calculateFailed:"Calculation failed",calculateError:"An error occurred during calculation",birthDateTimeRequired:"Please enter your birth date and time",compareLocationRequired:"Please add at least one comparison location",compareFailed:"Comparison failed",compareError:"An error occurred during comparison"},messages:{saveSuccess:"Report saved to your dashboard",saveError:"Failed to save report",savePremium:"Upgrade to Premium to save reports",printPremium:"Upgrade to Premium to export PDF",loadError:"Failed to load saved report"},premium:{badge:"Premium",preview:"Free preview",unlockTitle:"Unlock the full Solar Return report",unlockDescription:"Detailed life-area guidance, full planet table, and complete location comparison.",unlockButton:"Upgrade to Premium",lockedCount:"+{count} more"}},ea=new Set(["node_approx","chiron_approx"]);function et(e){let a,r,l,c,n,d,u=(0,t.c)(13),{title:m,description:x,buttonText:h,onUpgrade:f}=e;return u[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(E.Crown,{className:"h-8 w-8 mx-auto mb-3 text-primary"}),u[0]=a):a=u[0],u[1]!==m?(r=(0,s.jsx)("h4",{className:"font-semibold mb-2",children:m}),u[1]=m,u[2]=r):r=u[2],u[3]!==x?(l=(0,s.jsx)("p",{className:"text-sm text-muted-foreground mb-4 max-w-md mx-auto",children:x}),u[3]=x,u[4]=l):l=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(B.ArrowRight,{className:"ml-2 h-4 w-4"}),u[5]=c):c=u[5],u[6]!==h||u[7]!==f?(n=(0,s.jsx)(o.Button,{asChild:!0,children:(0,s.jsxs)(i.Link,{href:"/pricing",onClick:f,children:[h,c]})}),u[6]=h,u[7]=f,u[8]=n):n=u[8],u[9]!==r||u[10]!==l||u[11]!==n?(d=(0,s.jsxs)("div",{className:"text-center py-6 border rounded-lg bg-muted/30",children:[a,r,l,n]}),u[9]=r,u[10]=l,u[11]=n,u[12]=d):d=u[12],d}function er(e){var t,T,k,F,L,P;let{section:A,locale:E,translations:er}=e,el=(0,c.useTranslations)("pages.solar-return.ui"),ec=(0,n.useTimezoneLabel)(),en=(0,l.useSearchParams)(),ei=(0,r.useMemo)(()=>
1{if(er)return er;try{return{form:{birthInfo:el("form.birthInfo"),birthInfoDesc:el("form.birthInfoDesc"),birthDate:el("form.birthDate"),birthTime:el("form.birthTime"),birthLocation:el("form.birthLocation"),birthLocationPlaceholder:el("form.birthLocationPlaceholder"),coordinates:el("form.coordinates"),birthTimezone:el("form.birthTimezone"),selectTimezone:el("form.selectTimezone")},tabs:{calculate:el("tabs.calculate"),compare:el("tabs.compare")},calculator:{solarReturnYear:el("calculator.solarReturnYear"),current:el("calculator.current"),next:el("calculator.next"),differentLocation:el("calculator.differentLocation"),birthdayLocation:el("calculator.birthdayLocation"),birthdayLocationPlaceholder:el("calculator.birthdayLocationPlaceholder"),birthdayTimezone:el("calculator.birthdayTimezone"),advancedOptions:el("calculator.advancedOptions"),houseSystem:el("calculator.houseSystem"),houseSystems:{placidus:el("calculator.houseSystems.placidus"),wholeSign:el("calculator.houseSystems.wholeSign"),koch:el("calculator.houseSystems.koch"),equal:el("calculator.houseSystems.equal")},generateChart:el("calculator.generateChart"),calculating:el("calculator.calculating")},compare:{returnYear:el("compare.returnYear"),citiesToCompare:el("compare.citiesToCompare"),addCity:el("compare.addCity"),cityPlaceholder:el("compare.cityPlaceholder"),addCitiesHint:el("compare.addCitiesHint"),preferences:el("compare.preferences"),preferencesHint:el("compare.preferencesHint"),weightLabels:{low:el("compare.weightLabels.low"),medium:el("compare.weightLabels.medium"),high:el("compare.weightLabels.high")},compareCities:el("compare.compareCities"),comparingLocations:el("compare.comparingLocations")},areas:{career:el("areas.career"),love:el("areas.love"),home:el("areas.home"),money:el("areas.money"),health:el("areas.health"),travel:el("areas.travel")},results:{yearTheme:el("results.yearTheme"),topFocusAreas:el("results.topFocusAreas"),house:el("results.house"),keyFactors:el("results.keyFactors"),srAscendant:el("results.srAscendant"),rulerInHouse:el("results.rulerInHouse"),sunHouse:el("results.sunHouse"),moonHouse:el("results.moonHouse"),in:el("results.in"),angularPlanets:el("results.angularPlanets"),conjunct:el("results.conjunct"),lifeAreaForecast:el("results.lifeAreaForecast"),lifeAreaForecastDesc:el("results.lifeAreaForecastDesc"),planetaryPositions:el("results.planetaryPositions"),planetaryPositionsDesc:el("results.planetaryPositionsDesc"),tableHeaders:{planet:el("results.tableHeaders.planet"),sign:el("results.tableHeaders.sign"),degree:el("results.tableHeaders.degree"),house:el("results.tableHeaders.house")},retrograde:el("results.retrograde"),solarReturnInfo:el("results.solarReturnInfo"),location:el("results.location"),aspects:el("results.aspects"),aspectsDesc:el("results.aspectsDesc"),aspectTypes:{conjunction:el("results.aspectTypes.conjunction"),opposition:el("results.aspectTypes.opposition"),trine:el("results.aspectTypes.trine"),square:el("results.aspectTypes.square"),sextile:el("results.aspectTypes.sextile"),quincunx:el("results.aspectTypes.quincunx")},orb:el("results.orb"),applying:el("results.applying"),separating:el("results.separating"),timeline:el("results.timeline"),timelineDesc:el("results.timelineDesc"),timelineMonths:el("results.timelineMonths"),timelineKeyDates:el("results.timelineKeyDates"),timelineMonthLabel:el("results.timelineMonthLabel"),keyDateTypes:{opportunity:el("results.keyDateTypes.opportunity"),challenge:el("results.keyDateTypes.challenge"),transition:el("results.keyDateTypes.transition")},calculationMeta:{title:el("results.calculationMeta.title"),houseSystem:el("results.calculationMeta.houseSystem"),zodiacType:el("results.calculationMeta.zodiacType"),zodiacTypes:{tropical:el("results.calculationMeta.zodiacTypes.tropical"),sidereal:el("results.calculationMeta.zodiacTypes.sidereal")},timezone:el("results.calculationMeta.timezone"),timezoneSource:el("results.calculationMeta.timezoneSource"),timezoneSources:{iana:el("results.calculationMeta.timezoneSources.iana"),input:el("results.calculationMeta.timezoneSources.input")},ephemeris:el("results.calculationMeta.ephemeris"),accuracy:el("results.calculationMeta.accuracy"),exact:el("results.calculationMeta.exact"),estimated:el("results.calculationMeta.estimated"),notes:el("results.calculationMeta.notes"),flags:{houseSystemFallback:el("results.calculationMeta.flags.houseSystemFallback"),zodiacF
1allback:el("results.calculationMeta.flags.zodiacFallback"),birthTimezoneFallback:el("results.calculationMeta.flags.birthTimezoneFallback"),returnTimezoneFallback:el("results.calculationMeta.flags.returnTimezoneFallback"),nodeApprox:el("results.calculationMeta.flags.nodeApprox"),chironApprox:el("results.calculationMeta.flags.chironApprox"),solarReturnApprox:el("results.calculationMeta.flags.solarReturnApprox")}},actions:{title:el("results.actions.title"),description:el("results.actions.description"),save:el("results.actions.save"),saving:el("results.actions.saving"),saved:el("results.actions.saved"),viewDashboard:el("results.actions.viewDashboard"),print:el("results.actions.print")}},comparison:{title:el("comparison.title"),score:el("comparison.score"),bestChoice:el("comparison.bestChoice"),ascendant:el("comparison.ascendant"),midheaven:el("comparison.midheaven"),bestFor:el("comparison.bestFor"),angularPlanets:el("comparison.angularPlanets"),on:el("comparison.on"),breakdownTitle:el("comparison.breakdownTitle"),breakdownBase:el("comparison.breakdownBase"),breakdownAngular:el("comparison.breakdownAngular"),breakdownFocus:el("comparison.breakdownFocus"),reasonsTitle:el("comparison.reasonsTitle"),ctaText:el("comparison.ctaText"),generateFullChart:el("comparison.generateFullChart")},errors:{birthDateRequired:el("errors.birthDateRequired"),birthTimeRequired:el("errors.birthTimeRequired"),birthLocationRequired:el("errors.birthLocationRequired"),calculateFailed:el("errors.calculateFailed"),calculateError:el("errors.calculateError"),birthDateTimeRequired:el("errors.birthDateTimeRequired"),compareLocationRequired:el("errors.compareLocationRequired"),compareFailed:el("errors.compareFailed"),compareError:el("errors.compareError")},messages:{saveSuccess:el("messages.saveSuccess"),saveError:el("messages.saveError"),savePremium:el("messages.savePremium"),printPremium:el("messages.printPremium"),loadError:el("messages.loadError")},premium:{badge:el("premium.badge"),preview:el("premium.preview"),unlockTitle:el("premium.unlockTitle"),unlockDescription:el("premium.unlockDescription"),unlockButton:el("premium.unlockButton"),lockedCount:el("premium.lockedCount")}}}catch{return es}},[er,el]),[eo,ed]=(0,r.useState)("calculator");(0,r.useEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1);"compare"===e?ed("compare"):("calculator"===e||"calculate"===e)&&ed("calculator")};e(),window.addEventListener("hashchange",e);let s=e=>{let s=e.target.closest("a");if(s){let e=s.getAttribute("href");"#compare"===e?ed("compare"):"#calculator"===e&&ed("calculator")}};return document.addEventListener("click",s),()=>{window.removeEventListener("hashchange",e),document.removeEventListener("click",s)}},[]);let eu=e=>{ed(e),window.history.replaceState(null,"","compare"===e?"#compare":"#calculator")},[em,ex]=(0,r.useState)(""),[eh,ef]=(0,r.useState)(""),[ep,eb]=(0,r.useState)(""),[ej,eg]=(0,r.useState)(null),[ey,ev]=(0,r.useState)(null),[eN,eC]=(0,r.useState)("0"),[eS,ew]=(0,r.useState)([]),[eT,ek]=(0,r.useState)(!1),[eF,eL]=(0,r.useState)(new Date().getFullYear()),[eP,eA]=(0,r.useState)(""),[eD,eM]=(0,r.useState)(null),[ez,eH]=(0,r.useState)(null),[eR,eB]=(0,r.useState)("0"),[eq,eU]=(0,r.useState)(!1),[eE,eI]=(0,r.useState)([]),[e_,eY]=(0,r.useState)(!1),[eK,eO]=(0,r.useState)(!1),[eV,e$]=(0,r.useState)("placidus"),[eJ,eW]=(0,r.useState)(new Date().getFullYear()),[eG,eX]=(0,r.useState)([{id:"1",name:"",latitude:null,longitude:null,timezone:0,suggestions:[],searching:!1}]),[eZ,eQ]=(0,r.useState)({career:1,love:1,home:1,money:1,health:1,travel:1}),[e0,e1]=(0,r.useState)(!1),[e5,e4]=(0,r.useState)(null),[e6,e7]=(0,r.useState)(null),[e9,e2]=(0,r.useState)(null),[e3,e8]=(0,r.useState)(!1),[se,ss]=(0,r.useState)(null),sa=en.get("report"),st=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(st.current||sa)return;let e=en.get("date"),s=en.get("time"),a=en.get("lat"),t=en.get("lng");if(!e||!s||!a||!t)return;st.current=!0;let r=Number(a),l=Number(t),c=en.get("tz")||String(Math.round(l/15)),n=en.get("year")?Number(en.get("year")):new Date().getFullYear(),i=en.get("loc")||`${r.toFixed(2)}\xb0, ${l.toFixed(2)}\xb0`;ex(e),ef(s),eg(r),ev(l),eC(c),eb(i),eL(n),(async()=>{e1(!0);try{let a={birthDate:e,birthTime:s,birthPlace:{name:i,latitude:r,longitude:l,timezone:parseFloat(c)},returnYear:n,houseSystem:"placidus"},t=await fetch("/api/astro/solar-return/calculate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:a})}),o=await t.json();o.success&&e4(o.data)}catch{}finally{e1(!1)}})()},[]);let sr=new Date().getFullYear(),sl=Array.from({length:11}
1,(e,s)=>sr-5+s),sc=(null==e5?void 0:e5.isPremium)??!1,sn=(null==e6?void 0:e6.isPremium)??!1,si=(0,r.useMemo)(()=>e5?function(e,s){var a,t,r;let l=[...e.aspects??[]].sort((e,s)=>e.orb-s.orb),c=(null==(a=e.timeline)?void 0:a.months)??[],n=(null==(t=e.timeline)?void 0:t.keyDates)??[];if(s)return{focusHouses:e.focusHouses??[],angularPlanets:e.angularPlanets??[],lifeAreas:e.lifeAreas??[],planets:e.planets??[],aspects:l,timelineMonths:c,timelineKeyDates:n,locked:{...V},lifeAreaTeaser:null};let i=J(e.focusHouses,2,$(e,"focusHouses")),o=J(e.angularPlanets,1,$(e,"angularPlanets")),d=J(e.lifeAreas,2,$(e,"lifeAreas")),u=J(e.planets,6,$(e,"planets")),m=J(l,6,$(e,"aspects")),x=J(c,3,$(e,"timelineMonths")),h=J(n,2,$(e,"timelineKeyDates")),f=(e.lifeAreas??[])[2],p=d.locked>0?(null==(r=e.lockedTeaser)?void 0:r.lifeArea)??(f?{area:f.area,title:f.title}:null):null;return{focusHouses:i.shown,angularPlanets:o.shown,lifeAreas:d.shown,planets:u.shown,aspects:m.shown,timelineMonths:x.shown,timelineKeyDates:h.shown,locked:{focusHouses:i.locked,angularPlanets:o.locked,lifeAreas:d.locked,planets:u.locked,aspects:m.locked,timelineMonths:x.locked,timelineKeyDates:h.locked},lifeAreaTeaser:p}}(e5,sc):null,[e5,sc]),so=(null==si?void 0:si.focusHouses)??[],sd=(null==si?void 0:si.locked.focusHouses)??0,su=(null==si?void 0:si.angularPlanets)??[],sm=(null==si?void 0:si.locked.angularPlanets)??0,sx=(null==si?void 0:si.lifeAreas)??[],sh=(null==si?void 0:si.locked.lifeAreas)??0,sf=(null==si?void 0:si.lifeAreaTeaser)??null,sp=(null==si?void 0:si.planets)??[],sb=(null==si?void 0:si.locked.planets)??0,sj=(null==si?void 0:si.aspects)??[],sg=(null==si?void 0:si.locked.aspects)??0,sy=(null==e5||null==(t=e5.timeline)?void 0:t.months)??[],sv=(null==e5||null==(T=e5.timeline)?void 0:T.keyDates)??[],sN=(null==si?void 0:si.timelineMonths)??[],sC=(null==si?void 0:si.locked.timelineMonths)??0,sS=(null==si?void 0:si.timelineKeyDates)??[],sw=(null==si?void 0:si.locked.timelineKeyDates)??0,sT=e6?function(e,s){let a=e.ranked?e.ranked:(e.baseLocation?[e.baseLocation,...e.comparisons]:[...e.comparisons]).sort((e,s)=>s.score-e.score);if(s)return{items:a,lockedCount:0};let t=a.slice(0,2);return{items:t,lockedCount:("number"==typeof e.lockedCount&&e.lockedCount>0?e.lockedCount:0)+(a.length-t.length)}}(e6,sn):null,sk=(null==sT?void 0:sT.items)??[],sF=(null==sT?void 0:sT.lockedCount)??0,sL=!sc&&(sd>0||sm>0||sh>0||sb>0||sg>0||sC>0||sw>0),sP=!sn&&sF>0,sA=(0,r.useRef)({}),sD=(0,r.useCallback)(e=>{(0,O.trackEvent)("solar_return_upgrade_click",{source:e})},[]);(0,r.useEffect)(()=>{if(!e5||sc||!sL)return;let e=String(e5.exactMoment);sA.current.calculator!==e&&(sA.current.calculator=e,(0,O.trackEvent)("solar_return_preview_shown",{section:"calculator"}))},[e5,sc,sL]),(0,r.useEffect)(()=>{if(!e6||sn||!sP)return;let e=e6.summary||String(eJ);sA.current.compare!==e&&(sA.current.compare=e,(0,O.trackEvent)("solar_return_preview_shown",{section:"compare"}))},[e6,sn,sP,eJ]);let sM=null==e5?void 0:e5.calculationMeta,sz={placidus:ei.calculator.houseSystems.placidus,"whole-sign":ei.calculator.houseSystems.wholeSign,koch:ei.calculator.houseSystems.koch,equal:ei.calculator.houseSystems.equal},sH={tropical:ei.results.calculationMeta.zodiacTypes.tropical,sidereal:ei.results.calculationMeta.zodiacTypes.sidereal},sR={iana:ei.results.calculationMeta.timezoneSources.iana,input:ei.results.calculationMeta.timezoneSources.input},sB=e=>e?sz[e]:"",sq=e=>e?sH[e]:"",sU=sM?sM.accuracyFlags.filter(e=>!ea.has(e)):[],sE=sM?sU.length>0?ei.results.calculationMeta.estimated:ei.results.calculationMeta.exact:"",sI=sM?sM.accuracyFlags.map(e=>{switch(e){case"house_system_fallback":return ei.results.calculationMeta.flags.houseSystemFallback.replace("{used}",sB(sM.houseSystemUsed)).replace("{requested}",sB(sM.houseSystemRequested));case"zodiac_fallback":return ei.results.calculationMeta.flags.zodiacFallback.replace("{used}",sq(sM.zodiacTypeUsed)).replace("{requested}",sq(sM.zodiacTypeRequested));case"timezone_birth_fallback":return ei.results.calculationMeta.flags.birthTimezoneFallback;case"timezone_return_fallback":return ei.results.calculationMeta.flags.returnTimezoneFallback;case"node_approx":return ei.results.calculationMeta.flags.nodeApprox;case"chiron_approx":return ei.results.calculationMeta.flags.chironApprox;case"solar_return_approx":return ei.results.calculationMeta.flags.solarReturnApprox;default:return null}}).filter(e=>!!e):[],s_=e=>ei.results.aspectTypes[e]??e,sY=[{value:"0.75",label:ei.compare.weightLabels.low},{value:"1",label:ei.compare.weightLabels.medium},{value:"1.25",label:ei.compare.weightLabels.high}],sK=async e=>{if(!e||e.length<2)return[];try{let s=await fetch(`/api/geo/search?q=${encodeURIComponent(e)}`);
1if(!s.ok)return[];return(await s.json()).data||[]}catch{return[]}},sO=ee(async e=>{!e||e.length<2?ew([]):(ek(!0),ew(await sK(e)),ek(!1))},300),sV=ee(async e=>{!e||e.length<2?eI([]):(eY(!0),eI(await sK(e)),eY(!1))},300),s$=(e,s)=>{eX(a=>a.map(a=>a.id===e?{...a,...s}:a))},sJ=async(e,s)=>{(s$(e,{name:s,latitude:null,longitude:null}),!s||s.length<2)?s$(e,{suggestions:[],searching:!1}):(s$(e,{searching:!0}),s$(e,{suggestions:await sK(s),searching:!1}))},sW=async()=>{if(e2(null),!em)return void e2(ei.errors.birthDateRequired);if(!eh)return void e2(ei.errors.birthTimeRequired);if(!ej||!ey)return void e2(ei.errors.birthLocationRequired);e1(!0);try{let e={birthDate:em,birthTime:eh,birthPlace:{name:ep,latitude:ej,longitude:ey,timezone:parseFloat(eN)},returnYear:eF,houseSystem:eV};eq&&eD&&ez&&(e.returnLocation={name:eP,latitude:eD,longitude:ez,timezone:parseFloat(eR)});let s=await fetch("/api/astro/solar-return/calculate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:e})}),a=await s.json();if(!a.success)return void e2(a.error||ei.errors.calculateFailed);e4(a.data),ss(null);let t=new URLSearchParams;t.set("date",em),t.set("time",eh),t.set("lat",String(ej)),t.set("lng",String(ey)),t.set("tz",eN),t.set("year",String(eF)),ep&&t.set("loc",ep),window.history.replaceState(null,"",`${window.location.pathname}?${t.toString()}`)}catch(e){e2(ei.errors.calculateError),console.error(e)}finally{e1(!1)}},sG=async()=>{if(e2(null),!em||!eh)return void e2(ei.errors.birthDateTimeRequired);if(!ej||!ey)return void e2(ei.errors.birthLocationRequired);let e=eG.filter(e=>null!==e.latitude&&null!==e.longitude);if(0===e.length)return void e2(ei.errors.compareLocationRequired);e1(!0);try{let s={birthDate:em,birthTime:eh,birthPlace:{name:ep,latitude:ej,longitude:ey,timezone:parseFloat(eN)},returnYear:eJ},a=await fetch("/api/astro/solar-return/compare",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:s,locations:e.map(e=>({name:e.name,latitude:e.latitude,longitude:e.longitude,timezone:e.timezone})),preferences:eZ})}),t=await a.json();if(!t.success)return void e2(t.error||ei.errors.compareFailed);e7(t.data)}catch(e){e2(ei.errors.compareError),console.error(e)}finally{e1(!1)}},sX=(0,r.useCallback)((e,s)=>{ex(e.input.birthDate),ef(e.input.birthTime),eb(e.input.birthPlace.name),eg(e.input.birthPlace.latitude),ev(e.input.birthPlace.longitude),eC(String(e.input.birthPlace.timezone??0)),eL(e.input.returnYear),e$(e.input.houseSystem||"placidus"),e.input.returnLocation?(eU(!0),eA(e.input.returnLocation.name),eM(e.input.returnLocation.latitude),eH(e.input.returnLocation.longitude),eB(String(e.input.returnLocation.timezone??0))):(eU(!1),eA(""),eM(null),eH(null),eB("0")),e4({...e.result,isPremium:s??e.result.isPremium}),e7(null),ss(e.id),e2(null),ed("calculator"),window.history.replaceState(null,"","#calculator")},[]),sZ=async()=>{var e,s;if(!e5)return;if(!sc)return void j.toast.error(ei.messages.savePremium);if(!em||!eh||!ej||!ey)return void j.toast.error(ei.errors.birthLocationRequired);let a={birthDate:em,birthTime:eh,birthPlace:{name:ep,latitude:ej,longitude:ey,timezone:parseFloat(eN)},returnYear:eF,houseSystem:eV,zodiacType:(null==(e=e5.calculationMeta)?void 0:e.zodiacTypeRequested)||"tropical"};eq&&eD&&ez&&(a.returnLocation={name:eP,latitude:eD,longitude:ez,timezone:parseFloat(eR)}),e8(!0);try{let e=await fetch("/api/astro/solar-return/reports",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({input:a,result:e5})}),t=await e.json();if(!t.success)return void j.toast.error(t.error||ei.messages.saveError);ss((null==(s=t.data)?void 0:s.id)||null),j.toast.success(ei.messages.saveSuccess)}catch(e){j.toast.error(ei.messages.saveError),console.error(e)}finally{e8(!1)}};return(0,r.useEffect)(()=>{if(!sa)return;let e=new AbortController;return(async()=>{try{var s;let a=await fetch(`/api/astro/solar-return/reports?id=${encodeURIComponent(sa)}`,{signal:e.signal}),t=await a.json();if(!a.ok||!t.success||!(null==(s=t.data)?void 0:s.report))return void j.toast.error(t.error||ei.messages.loadError);sX(t.data.report,t.data.isPremium)}catch(e){e instanceof DOMException&&"AbortError"===e.name||(j.toast.error(ei.messages.loadError),console.error(e))}})(),()=>e.abort()},[sa,ei,sX]),(0,s.jsxs)("section",{id:A.id,className:"jsx-fc7495cf11ddcb65 py-16 bg-background",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 container mx-auto px-4",children:[(0,s.jsx)(b.ScrollAnimation,{children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 text-center mb-10",children:[(0,s.jsx)("h2",{className:"jsx-fc7495cf11ddcb65 text-3xl font-bold mb-4",children:A.title||"Solar Return Chart Calculator"}),A.description&&(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-muted-foreground max-w-2xl mx-auto",children:A.description})]})}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 max-w-4xl mx-auto",children:[(0,s.jsx)(b.ScrollAnimation,{delay:.1,children:(0,s.jsxs)(m.Card,{className:"sr-print-hidden",children:[(0,s.jsxs)(m.CardHeader,{className:"pb-4",children:[(0,s.jsxs)(m.CardTitle,{className:"flex items-center gap-2",children:[(0,s.jsx)(y.Sun,{className:"h-5 w-5 text-yellow-500"}),ei.form.birthInfo]}),(0,s.jsx)(m.CardDescription,{children:ei.form.birthInfoDesc})]}),(0,s.jsxs)(m.CardContent,{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsxs)(u.Label,{htmlFor:"birth-date",className:"flex items-center gap-2",children:[(0,s.jsx)(S.Calendar,{className:"h-4 w-4"}),ei.form.birthDate]}),(0,s.jsx)(d.Input,{id:"birth-date",type:"date",value:em,onChange:e=>ex(e.target.value)})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsxs)(u.Label,{htmlFor:"birth-time",className:"flex items-center gap-2",children:[(0,s.jsx)(w.Clock,{className:"h-4 w-4"}),ei.form.birthTime]}),(0,s.jsx)(d.Input,{id:"birth-time",type:"time",value:eh,onChange:e=>ef(e.target.value)})]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsxs)(u.Label,{htmlFor:"birth-location",className:"flex items-center gap-2",children:[(0,s.jsx)(v.MapPin,{className:"h-4 w-4"}),ei.form.birthLocation]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 relative",children:[(0,s.jsx)(d.Input,{id:"birth-location",type:"text",placeholder:ei.form.birthLocationPlaceholder,value:ep,onChange:e=>{var s;eb(s=e.target.value),eg(null),ev(null),sO(s)}}),eT&&(0,s.jsx)(g.Loader2,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin"}),eS.length>0&&(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 absolute z-10 w-full mt-1 bg-background border rounded-md shadow-lg max-h-60 overflow-auto",children:eS.map((e,a)=>(0,s.jsx)("button",{type:"button",onClick:()=>{eb(e.display_name),eg(parseFloat(e.lat)),ev(parseFloat(e.lon)),ew([]),eC(Math.round(parseFloat(e.lon)/15).toString())},className:"jsx-fc7495cf11ddcb65 w-full px-4 py-2 text-left text-sm hover:bg-muted transition-colors",children:e.display_name},a))})]}),ej&&ey&&(0,s.jsxs)("p",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground",children:[ei.form.coordinates," ",ej.toFixed(4),", ",ey.toFixed(4)]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsx)(u.Label,{children:ei.form.birthTimezone}),(0,s.jsxs)(x.Select,{value:eN,onValueChange:eC,children:[(0,s.jsx)(x.SelectTrigger,{children:(0,s.jsx)(x.SelectValue,{placeholder:ei.form.selectTimezone})}),(0,s.jsx)(x.SelectContent,{children:X.map(e=>(0,s.jsx)(x.SelectItem,{value:e.value,children:ec(e)},e.value))})]})]}),(0,s.jsxs)(f.Tabs,{value:eo,onValueChange:eu,className:"mt-6",children:[(0,s.jsxs)(f.TabsList,{className:"grid w-full grid-cols-2",children:[(0,s.jsxs)(f.TabsTrigger,{value:"calculator",className:"flex items-center gap-2",children:[(0,s.jsx)(y.Sun,{className:"h-4 w-4"}),ei.tabs.calculate]}),(0,s.jsxs)(f.TabsTrigger,{value:"compare",className:"flex items-center gap-2",children:[(0,s.jsx)(v.MapPin,{className:"h-4 w-4"}),ei.tabs.compare]})]}),(0,s.jsxs)(f.TabsContent,{value:"calculator",className:"space-y-4 pt-4",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsxs)(u.Label,{className:"flex items-center gap-2",children:[(0,s.jsx)(D.Star,{className:"h-4 w-4"}),ei.calculator.solarReturnYear]}),(0,s.jsxs)(x.Select,{value:eF.toString(),onValueChange:e=>eL(parseInt(e)),children:[(0,s.jsx)(x.SelectTrigger,{children:(0,s.jsx)(x.SelectValue,{})}),(0,s.jsx)(x.SelectContent,{children:sl.map(e=>(0,s.jsxs)(x.SelectItem,{value:e.toString(),children:[e," ",e===sr&&ei.calculator.current,e===sr+1&&ei.calculator.next]},e))})]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-4",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2",children:[(0,s.jsx)("input",{type:"checkbox",id:"use-return-location",checked:eq,onChange:e=>eU(e.target.checked),className:"jsx-fc7495cf11ddcb65 rounded border-gray-300"}),(0,s.jsx)(u.Label,{htmlFor:"use-return-location",className:"cursor-pointer",children:ei.calculator.differentLocation})]}),eq&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-4 pl-6 border-l-2 border-primary/20",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsxs)(u.Label,{htmlFor:"return-location",className:"flex items-center gap-2",children:[(0,s.jsx)(v.MapPin,{className:"h-4 w-4"}),ei.calculator.birthdayLocation]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 relative",children:[(0,s.jsx)(d.Input,{id:"return-location",type:"text",placeholder:ei.calculator.birthdayLocationPlaceholder,value:eP,onChange:e=>{var s;eA(s=e.target.value),eM(null),eH(null),sV(s)}}),e_&&(0,s.jsx)(g.Loader2,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin"}),eE.length>0&&(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 absolute z-10 w-full mt-1 bg-background border rounded-md shadow-lg max-h-60 overflow-auto",children:eE.map((e,a)=>(0,s.jsx)("button",{type:"button",onClick:()=>
1{eA(e.display_name),eM(parseFloat(e.lat)),eH(parseFloat(e.lon)),eI([]),eB(Math.round(parseFloat(e.lon)/15).toString())},className:"jsx-fc7495cf11ddcb65 w-full px-4 py-2 text-left text-sm hover:bg-muted transition-colors",children:e.display_name},a))})]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsx)(u.Label,{children:ei.calculator.birthdayTimezone}),(0,s.jsxs)(x.Select,{value:eR,onValueChange:eB,children:[(0,s.jsx)(x.SelectTrigger,{children:(0,s.jsx)(x.SelectValue,{placeholder:ei.form.selectTimezone})}),(0,s.jsx)(x.SelectContent,{children:X.map(e=>(0,s.jsx)(x.SelectItem,{value:e.value,children:ec(e)},e.value))})]})]})]})]}),(0,s.jsxs)(h.Collapsible,{open:eK,onOpenChange:eO,children:[(0,s.jsx)(h.CollapsibleTrigger,{asChild:!0,children:(0,s.jsxs)(o.Button,{variant:"ghost",className:"w-full justify-between",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2",children:[(0,s.jsx)(C.Settings,{className:"h-4 w-4"}),ei.calculator.advancedOptions]}),(0,s.jsx)(N.ChevronDown,{className:(0,K.cn)("h-4 w-4 transition-transform",eK&&"rotate-180")})]})}),(0,s.jsx)(h.CollapsibleContent,{className:"space-y-4 pt-4",children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsx)(u.Label,{children:ei.calculator.houseSystem}),(0,s.jsxs)(x.Select,{value:eV,onValueChange:e$,children:[(0,s.jsx)(x.SelectTrigger,{children:(0,s.jsx)(x.SelectValue,{})}),(0,s.jsxs)(x.SelectContent,{children:[(0,s.jsx)(x.SelectItem,{value:"placidus",children:ei.calculator.houseSystems.placidus}),(0,s.jsx)(x.SelectItem,{value:"whole-sign",children:ei.calculator.houseSystems.wholeSign}),(0,s.jsx)(x.SelectItem,{value:"koch",children:ei.calculator.houseSystems.koch}),(0,s.jsx)(x.SelectItem,{value:"equal",children:ei.calculator.houseSystems.equal})]})]})]})})]}),(0,s.jsx)(o.Button,{onClick:sW,disabled:e0,className:"w-full",size:"lg",children:e0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),ei.calculator.calculating]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.Sun,{className:"mr-2 h-4 w-4"}),ei.calculator.generateChart]})})]}),(0,s.jsxs)(f.TabsContent,{value:"compare",className:"space-y-4 pt-4",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:[(0,s.jsxs)(u.Label,{className:"flex items-center gap-2",children:[(0,s.jsx)(D.Star,{className:"h-4 w-4"}),ei.compare.returnYear]}),(0,s.jsxs)(x.Select,{value:eJ.toString(),onValueChange:e=>eW(parseInt(e)),children:[(0,s.jsx)(x.SelectTrigger,{children:(0,s.jsx)(x.SelectValue,{})}),(0,s.jsx)(x.SelectContent,{children:sl.map(e=>(0,s.jsx)(x.SelectItem,{value:e.toString(),children:e},e))})]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-4",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center justify-between",children:[(0,s.jsx)(u.Label,{className:"text-base font-semibold",children:ei.compare.citiesToCompare}),(0,s.jsxs)(o.Button,{variant:"outline",size:"sm",onClick:()=>{eG.length>=5||eX([...eG,{id:Date.now().toString(),name:"",latitude:null,longitude:null,timezone:0,suggestions:[],searching:!1}])},disabled:eG.length>=5,children:[(0,s.jsx)(z.default,{className:"h-4 w-4 mr-1"}),ei.compare.addCity]})]}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 space-y-3",children:eG.map((e,a)=>(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex gap-2",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex-1 relative",children:[(0,s.jsx)(d.Input,{placeholder:ei.compare.cityPlaceholder.replace("{n}",String(a+1)),value:e.name,onChange:s=>sJ(e.id,s.target.value)}),e.searching&&(0,s.jsx)(g.Loader2,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin"}),e.latitude&&(0,s.jsx)(q.default,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-green-500"}),e.suggestions.length>0&&(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 absolute z-10 w-full mt-1 bg-background border rounded-md shadow-lg max-h-60 overflow-auto",children:e.suggestions.map((a,t)=>(0,s.jsx)("button",{type:"button",onClick:()=>{var s;let t;return s=e.id,t=Math.round(parseFloat(a.lon)/15),void s$(s,{name:a.display_name,latitude:parseFloat(a.lat),longitude:parseFloat(a.lon),timezone:t,suggestions:[]})},className:"jsx-fc7495cf11ddcb65 w-full px-4 py-2 text-left text-sm hover:bg-muted",children:a.display_name},t))})]}),eG.length>1&&(0,s.jsx)(o.Button,{variant:"ghost",size:"icon",onClick:()=>{var s;return s=e.id,void(!(eG.length<=1)&&eX(eG.filter(e=>e.id!==s)))},children:(0,s.jsx)(H.X,{className:"h-4 w-4"})})]},e.id))}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground",children:ei.compare.addCitiesHint})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-3",children:[(0,s.jsx)(u.Label,{className:"text-base font-semibold",children:ei.compare.preferences}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground",children:ei.compare.preferencesHint}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-1 md:grid-cols-2 gap-3",children:Q.map(e=>(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center justify-between gap-3 rounded-lg border p-3",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2 text-sm font-medium",children:[Z[e],ei.areas[e]]}),(0,s.jsxs)(x.Select,{value:String(eZ[e]??1),onValueChange:s=>{eQ(a=>({...a,[e]:Number.parseFloat(s)}))},children:[(0,s.jsx)(x.SelectTrigger,{className:"w-36",children:(0,s.jsx)(x.SelectValue,{})}),(0,s.jsx)(x.SelectContent,{children:sY.map(e=>(0,s.jsx)(x.SelectItem,{value:e.value,children:e.label},e.value))})]})]},e))})]}),(0,s.jsx)(o.Button,{onClick:sG,disabled:e0,className:"w-full",size:"lg",children:e0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),ei.compare.comparingLocations]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.MapPin,{className:"mr-2 h-4 w-4"}),ei.compare.compareCities]})})]})]}),e9&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2 text-destructive text-sm",children:[(0,s.jsx)(M.default,{className:"h-4 w-4"}),e9]})]})]})}),e5&&"calculator"===eo&&(0,s.jsx)(b.ScrollAnimation,{delay:.2,children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-6 mt-8 sr-print-area",children:[(0,s.jsxs)(m.Card,{className:"sr-print-hidden",children:[(0,s.jsxs)(m.CardHeader,{className:"pb-3",children:[(0,s.jsxs)(m.CardTitle,{className:"flex items-center gap-2",children:[(0,s.jsx)(Y.default,{className:"h-5 w-5 text-primary"}),ei.results.actions.title,!sc&&(0,s.jsx)(p.Badge,{variant:"secondary",className:"ml-auto",children:ei.premium.badge})]}),(0,s.jsx)(m.CardDescription,{children:ei.results.actions.description})]}),(0,s.jsx)(m.CardContent,{children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex flex-wrap gap-3",children:[(0,s.jsxs)(o.Button,{onClick:sZ,disabled:e3||!!se,children:[(0,s.jsx)(_.Save,{className:"mr-2 h-4 w-4"}),e3?ei.results.actions.saving:se?ei.results.actions.saved:ei.results.actions.save]}),se&&(0,s.jsx)(o.Button,{asChild:!0,variant:"outline",children:(0,s.jsxs)(i.Link,{href:"/dashboard/solar-return-reports",children:[(0,s.jsx)(q.default,{className:"mr-2 h-4 w-4"}),ei.results.actions.viewDashboard]})}),(0,s.jsxs)(o.Button,{variant:"outline",onClick:()=>
1{if(e5){if(!sc)return void j.toast.error(ei.messages.printPremium);window.print()}},children:[(0,s.jsx)(I.default,{className:"mr-2 h-4 w-4"}),ei.results.actions.print]})]})})]}),(0,s.jsxs)(m.Card,{className:"border-2 border-primary/20 bg-gradient-to-br from-primary/5 to-background",children:[(0,s.jsx)(m.CardHeader,{children:(0,s.jsxs)(m.CardTitle,{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 p-2 rounded-full bg-primary/10",children:(0,s.jsx)(D.Star,{className:"h-6 w-6 text-primary"})}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground font-normal",children:ei.results.yearTheme.replace("{year}",String(eF))}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-2xl",children:e5.yearTheme.title})]}),(0,s.jsx)(p.Badge,{variant:sc?"default":"secondary",className:"ml-auto",children:sc?ei.premium.badge:ei.premium.preview})]})}),(0,s.jsxs)(m.CardContent,{className:"space-y-4",children:[(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-muted-foreground",children:e5.yearTheme.description}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("h4",{className:"jsx-fc7495cf11ddcb65 font-semibold mb-3 flex items-center gap-2",children:[ei.results.topFocusAreas,!sc&&sd>0&&(0,s.jsx)(p.Badge,{variant:"secondary",children:ei.premium.lockedCount.replace("{count}",String(sd))})]}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 flex flex-wrap gap-2",children:so.map((e,a)=>(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2 px-3 py-2 rounded-full bg-muted",children:[Z[e.area],(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 text-sm font-medium",children:ei.areas[e.area]}),(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground",children:["(",ei.results.house," ",e.house,")"]})]},a))})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("h4",{className:"jsx-fc7495cf11ddcb65 font-semibold mb-3",children:ei.results.keyFactors}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-3 rounded-lg bg-muted/50",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mb-1",children:ei.results.srAscendant}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 font-semibold flex items-center gap-1",children:[null==(k=W[e5.keyFactors.ascendant.sign])?void 0:k.symbol,e5.keyFactors.ascendant.sign]}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mt-1",children:ei.results.rulerInHouse.replace("{house}",String(e5.keyFactors.ascendant.rulerHouse))})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-3 rounded-lg bg-muted/50",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mb-1",children:ei.results.sunHouse}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 font-semibold",children:[ei.results.house," ",e5.keyFactors.sunHouse.house]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mt-1",children:[ei.results.in," ",e5.keyFactors.sunHouse.sign]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-3 rounded-lg bg-muted/50",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mb-1",children:ei.results.moonHouse}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 font-semibold",children:[ei.results.house," ",e5.keyFactors.moonHouse.house]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mt-1",children:[ei.results.in," ",e5.keyFactors.moonHouse.sign]})]})]})]}),su.length>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("h4",{className:"jsx-fc7495cf11ddcb65 font-semibold mb-3 flex items-center gap-2",children:[ei.results.angularPlanets,!sc&&sm>0&&(0,s.jsx)(p.Badge,{variant:"secondary",children:ei.premium.lockedCount.replace("{count}",String(sm))})]}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 space-y-2",children:su.map((e,a)=>{var t,r,l;return(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-3 rounded-lg bg-muted/50 flex items-start gap-3",children:[(0,s.jsx)("div",{style:{backgroundColor:(null==(t=G[e.planet])?void 0:t.color)||"#666"},className:"jsx-fc7495cf11ddcb65 w-8 h-8 rounded-full flex items-center justify-center text-white text-sm font-bold",children:null==(r=G[e.planet])?void 0:r.symbol}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex-1",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[null==(l=G[e.planet])?void 0:l.name," ",ei.results.conjunct," ",e.angle]}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground",children:e.interpretation})]})]},a)})})]})]})]}),(0,s.jsxs)(m.Card,{className:"sr-print-hidden",children:[(0,s.jsxs)(m.CardHeader,{children:[(0,s.jsxs)(m.CardTitle,{className:"flex items-center gap-2",children:[ei.results.lifeAreaForecast,!sc&&sh>0&&(0,s.jsx)(p.Badge,{variant:"secondary",children:ei.premium.lockedCount.replace("{count}",String(sh))})]}),(0,s.jsx)(m.CardDescription,{children:ei.results.lifeAreaForecastDesc})]}),(0,s.jsx)(m.CardContent,{children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-1 md:grid-cols-2 gap-4",children:[sx.map((e,a)=>(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-4 rounded-lg border bg-card hover:bg-muted/50 transition-colors",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-3 mb-2",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 p-2 rounded-full bg-primary/10",children:Z[e.area]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 font-semibold",children:e.title}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 flex",children:Array.from({length:5}).map((a,t)=>(0,s.jsx)(D.Star,{className:(0,K.cn)("h-3 w-3",t<e.rating?"text-yellow-500 fill-yellow-500":"text-muted")},t))})]})]}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground mb-2",children:e.summary}),sc&&(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground mb-2",children:e.details}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm font-medium text-primary",children:e.advice})]},a)),!sc&&sh>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 relative p-4 rounded-lg border bg-card overflow-hidden",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 absolute inset-0 bg-background/80 backdrop-blur-sm z-10 flex flex-col items-center justify-center text-center",children:[(0,s.jsx)(U.Lock,{className:"h-5 w-5 text-muted-foreground mb-2"}),(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 text-sm font-medium",children:ei.premium.lockedCount.replace("{count}",String(sh))})]}),(0,s.jsxs)("div",{"aria-hidden":"true",className:"jsx-fc7495cf11ddcb65 blur-sm",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-3 mb-2",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 p-2 rounded-full bg-primary/10",children:sf?Z[sf.area]:(0,s.jsx)(U.Lock,{className:"h-4 w-4"})}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 font-semibold",children:sf?sf.title:ei.premium.unlockTitle}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 flex",children:Array.from({length:5}).map((e,a)=>(0,s.jsx)(D.Star,{className:"h-3 w-3 text-muted"},a))})]})]}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground mb-2",children:ei.premium.unlockDescription})]})]})]})})]}),(0,s.jsxs)(m.Card,{children:[(0,s.jsxs)(m.CardHeader,{children:[(0,s.jsxs)(m.CardTitle,{className:"flex items-center gap-2",children:[ei.results.aspects,!sc&&sg>0&&(0,s.jsx)(p.Badge,{variant:"secondary",children:ei.premium.lockedCount.replace("{count}",String(sg))})]}),(0,s.jsx)(m.CardDescription,{children:ei.results.aspectsDesc})]}),(0,s.jsx)(m.CardContent,{children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-3",children:[sj.map((e,a)=>{var t,r,l,c;return(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-3 rounded-lg border bg-card/50 flex items-start gap-3",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2",children:[(0,s.jsx)("span",{style:{color:(null==(t=G[e.planet1])?void 0:t.color)||"#666"},className:"jsx-fc7495cf11ddcb65 text-sm font-semibold",children:null==(r=G[e.planet1])?void 0:r.symbol}),(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 text-sm font-medium",children:null==(l=G[e.planet1])?void 0:l.name})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex-1 text-sm text-muted-foreground",children:[s_(e.aspectType)," ",(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 font-medium text-foreground",children:null==(c=G[e.planet2])?void 0:c.name}),(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 ml-2",children:[e.orb.toFixed(1),"° ",ei.results.orb]}),(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 ml-2 text-xs uppercase tracking-wide",children:e.isApplying?ei.results.applying:ei.results.separating})]})]},a)}),!sc&&sg>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 relative p-3 rounded-lg border bg-card overflow-hidden",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 absolute inset-0 bg-background/80 backdrop-blur-sm z-10 flex items-center justify-center text-center",children:(0,s.jsx)(U.Lock,{className:"h-5 w-5 text-muted-foreground"})}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 blur-sm",children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground",children:[s_((null==(F=sj[0])?void 0:F.aspectType)||"conjunction")," ",null==(L=G[null==(P=sj[0])?void 0:P.planet2])?void 0:L.name]})})]})]})})]}),sy.length>0&&(0,s.jsxs)(m.Card,{children:[(0,s.jsxs)(m.CardHeader,{children:[(0,s.jsxs)(m.CardTitle,{className:"flex items-center gap-2",children:[ei.results.timeline,!sc&&(sC>0||sw>0)&&(0,s.jsx)(p.Badge,{variant:"secondary",children:ei.premium.lockedCount.replace("{count}",String(sC+sw))})]}),(0,s.jsx)(m.CardDescription,{children:ei.results.timelineDesc})]}),(0,s.jsxs)(m.CardContent,{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("h4",{className:"jsx-fc7495cf11ddcb65 font-semibold mb-3",children:ei.results.timelineMonths}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-1 md:grid-cols-2 gap-4",children:sN.map((e,a)=>{let t;return(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-4 rounded-lg border bg-card hover:bg-muted/40 transition-colors",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2 mb-2",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 p-2 rounded-full bg-primary/10",children:Z[e.primaryArea]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground",children:(t=e.month,ei.results.timelineMonthLabel.replace("{month}",String(t)))}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 font-semibold",children:ei.areas[e.primaryArea]})]})]}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground",children:e.description}),e.activePlanets.length>0&&(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 mt-2 flex flex-wrap gap-2",children:e.activePlanets.map(e=>{var a;return(0,s.jsx)(p.Badge,{variant:"secondary",children:null==(a=G[e])?void 0:a.name},e)})})]},a)})})]}),sv.length>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("h4",{className:"jsx-fc7495cf11ddcb65 font-semibold mb-3",children:ei.results.timelineKeyDates}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 space-y-3",children:sS.map((e,a)=>{let t;return(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 p-3 rounded-lg border bg-card/50",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center justify-between gap-2",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 font-medium",children:e.title}),(0,s.jsx)(p.Badge,{variant:"outline",className:(0,K.cn)("opportunity"===e.type&&"border-green-400/40 text-green-600","challenge"===e.type&&"border-rose-400/40 text-rose-600","transition"===e.type&&"border-blue-400/40 text-blue-600"),children:(t=e.type,ei.results.keyDateTypes[t])})]}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mt-1",children:new Date(e.date).toLocaleDateString()}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground mt-2",children:e.description})]},a)})})]})]})]}),(0,s.jsxs)(m.Card,{children:[(0,s.jsxs)(m.CardHeader,{children:[(0,s.jsxs)(m.CardTitle,{className:"flex items-center gap-2",children:[ei.results.planetaryPositions,!sc&&sb>0&&(0,s.jsx)(p.Badge,{variant:"secondary",children:ei.premium.lockedCount.replace("{count}",String(sb))})]}),(0,s.jsx)(m.CardDescription,{children:ei.results.planetaryPositionsDesc})]}),(0,s.jsx)(m.CardContent,{children:(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 overflow-x-auto",children:(0,s.jsxs)("table",{className:"jsx-fc7495cf11ddcb65 w-full text-sm",children:[(0,s.jsx)("thead",{className:"jsx-fc7495cf11ddcb65",children:(0,s.jsxs)("tr",{className:"jsx-fc7495cf11ddcb65 border-b",children:[(0,s.jsx)("th",{className:"jsx-fc7495cf11ddcb65 text-left py-2 px-2",children:ei.results.tableHeaders.planet}),(0,s.jsx)("th",{className:"jsx-fc7495cf11ddcb65 text-left py-2 px-2",children:ei.results.tableHeaders.sign}),(0,s.jsx)("th",{className:"jsx-fc7495cf11ddcb65 text-left py-2 px-2",children:ei.results.tableHeaders.degree}),(0,s.jsx)("th",{className:"jsx-fc7495cf11ddcb65 text-left py-2 px-2",children:ei.results.tableHeaders.house})]})}),(0,s.jsx)("tbody",{className:"jsx-fc7495cf11ddcb65",children:sp.map((e,a)=>{var t,r,l,c;return(0,s.jsxs)("tr",{className:"jsx-fc7495cf11ddcb65 border-b",children:[(0,s.jsx)("td",{className:"jsx-fc7495cf11ddcb65 py-2 px-2",children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2",children:[(0,s.jsx)("span",{style:{color:null==(t=G[e.planet])?void 0:t.color},className:"jsx-fc7495cf11ddcb65",children:null==(r=G[e.planet])?void 0:r.symbol}),null==(l=G[e.planet])?void 0:l.name,e.isRetrograde&&(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground",children:ei.results.retrograde})]})}),(0,s.jsxs)("td",{className:"jsx-fc7495cf11ddcb65 py-2 px-2",children:[null==(c=W[e.position.sign])?void 0:c.symbol," ",e.position.sign]}),(0,s.jsxs)("td",{className:"jsx-fc7495cf11ddcb65 py-2 px-2",children:[e.position.degree,"°",e.position.minute,"'"]}),(0,s.jsxs)("td",{className:"jsx-fc7495cf11ddcb65 py-2 px-2",children:[ei.results.house," ",e.house]})]},a)})})]})})})]}),sL&&(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 sr-print-hidden",children:(0,s.jsx)(et,{title:ei.premium.unlockTitle,de
1scription:ei.premium.unlockDescription,buttonText:ei.premium.unlockButton,onUpgrade:()=>sD("calculator")})}),(0,s.jsx)(m.Card,{children:(0,s.jsxs)(m.CardContent,{className:"pt-6",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 text-center text-sm text-muted-foreground",children:[(0,s.jsxs)("p",{className:"jsx-fc7495cf11ddcb65",children:[ei.results.solarReturnInfo," ",(0,s.jsx)("strong",{className:"jsx-fc7495cf11ddcb65",children:new Date(e5.exactMoment).toLocaleString()})]}),(0,s.jsxs)("p",{className:"jsx-fc7495cf11ddcb65 mt-1",children:[ei.results.location," ",(0,s.jsx)("strong",{className:"jsx-fc7495cf11ddcb65",children:e5.location.name})]})]}),sM&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 mt-4 text-xs text-muted-foreground text-left",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 font-medium mb-2",children:ei.results.calculationMeta.title}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 grid gap-2 sm:grid-cols-2",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[ei.results.calculationMeta.houseSystem,":"," "]}),sB(sM.houseSystemUsed)]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[ei.results.calculationMeta.zodiacType,":"," "]}),sq(sM.zodiacTypeUsed)]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[ei.results.calculationMeta.timezone,":"," "]}),(e=>{var s;let a,t,r,l;if(!e)return"";let c=(t=Math.floor((a=Math.abs(s=e.offsetMinutes))/60),l=(r=a%60)?`:${String(r).padStart(2,"0")}`:"",`UTC${s>=0?"+":"-"}${t}${l}`);return e.name?`${e.name} (${c})`:c})(sM.returnTimezone)]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[ei.results.calculationMeta.timezoneSource,":"," "]}),sR[sM.returnTimezone.source]]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[ei.results.calculationMeta.ephemeris,":"," "]}),sM.ephemeris]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[ei.results.calculationMeta.accuracy,":"," "]}),sE]})]}),sI.length>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 mt-3",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 font-medium mb-1",children:ei.results.calculationMeta.notes}),(0,s.jsx)("ul",{className:"jsx-fc7495cf11ddcb65 list-disc list-inside space-y-1",children:sI.map((e,a)=>(0,s.jsx)("li",{className:"jsx-fc7495cf11ddcb65",children:e},a))})]})]})]})})]})}),e6&&"compare"===eo&&(0,s.jsx)(b.ScrollAnimation,{delay:.2,children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 space-y-6 mt-8 sr-print-area",children:[(0,s.jsxs)(m.Card,{className:"border-2 border-primary/20 bg-gradient-to-br from-primary/5 to-background",children:[(0,s.jsx)(m.CardHeader,{children:(0,s.jsxs)(m.CardTitle,{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)(R.default,{className:"h-5 w-5 text-yellow-500"}),ei.comparison.title,(0,s.jsx)(p.Badge,{variant:sn?"default":"secondary",className:"ml-auto",children:sn?ei.premium.badge:ei.premium.preview})]})}),(0,s.jsxs)(m.CardContent,{children:[(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-muted-foreground mb-6",children:e6.summary}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 grid gap-4",children:sk.map((e,a)=>{var t,r;return(0,s.jsx)(m.Card,{className:(0,K.cn)("transition-all",0===a&&"ring-2 ring-yellow-500/50"),children:(0,s.jsx)(m.CardContent,{className:"p-4",children:(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-start gap-4",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 "+((0,K.cn)("w-10 h-10 rounded-full flex items-center justify-center font-bold text-lg shrink-0",(e=>{switch(e){case 1:return"bg-yellow-500 text-white";case 2:return"bg-gray-400 text-white";case 3:return"bg-amber-600 text-white";default:return"bg-muted text-muted-foreground"}})(a+1))||""),children:a+1}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2 mb-2",children:[(0,s.jsx)("h4",{className:"jsx-fc7495cf11ddcb65 font-semibold truncate",children:e.location.name}),0===a&&(0,s.jsx)(p.Badge,{className:"bg-yellow-500 text-white",children:ei.comparison.bestChoice})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex items-center gap-2 mb-3",children:[(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground",children:ei.comparison.score}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 flex",children:Array.from({length:10}).map((a,t)=>(0,s.jsx)(D.Star,{className:(0,K.cn)("h-4 w-4",t<e.score?"text-yellow-500 fill-yellow-500":"text-muted")},t))}),(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-semibold",children:[e.score,"/10"]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-2 gap-4 mb-3 text-sm",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 text-muted-foreground",children:[ei.comparison.ascendant," "]}),(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[null==(t=W[e.ascendant.sign])?void 0:t.symbol," ",e.ascendant.sign]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 text-muted-foreground",children:[ei.comparison.midheaven," "]}),(0,s.jsxs)("span",{className:"jsx-fc7495cf11ddcb65 font-medium",children:[null==(r=W[e.midheaven.sign])?void 0:r.symbol," ",e.midheaven.sign]})]})]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 flex flex-wrap gap-2 mb-3",children:[(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground",children:ei.comparison.bestFor}),e.bestFor.map(e=>(0,s.jsxs)(p.Badge,{variant:"secondary",className:"flex items-center gap-1",children:[Z[e],ei.areas[e]]},e))]}),(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-sm text-muted-foreground",children:e.recommendation}),e.scoreBreakdown&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 mt-3 pt-3 border-t",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mb-2",children:ei.comparison.breakdownTitle}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 grid grid-cols-3 gap-2 text-xs text-muted-foreground",children:[(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 font-medium text-foreground",children:ei.comparison.breakdownBase})," ",e.scoreBreakdown.base.toFixed(1)]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 font-medium text-foreground",children:ei.comparison.breakdownAngular})," ",e.scoreBreakdown.angular.toFixed(1)]}),(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65",children:[(0,s.jsx)("span",{className:"jsx-fc7495cf11ddcb65 font-medium text-foreground",children:ei.comparison.breakdownFocus})," ",e.scoreBreakdown.focusAreas.toFixed(1)]})]})]}),e.reasons&&e.reasons.length>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 mt-3",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mb-2",children:ei.comparison.reasonsTitle}),(0,s.jsx)("ul",{className:"jsx-fc7495cf11ddcb65 list-disc list-inside text-xs text-muted-foreground space-y-1",children:e.reasons.map((e,a)=>(0,s.jsx)("li",{className:"jsx-fc7495cf11ddcb65",children:e},a))})]}),e.angularPlanets.length>0&&(0,s.jsxs)("div",{className:"jsx-fc7495cf11ddcb65 mt-3 pt-3 border-t",children:[(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 text-xs text-muted-foreground mb-2",children:ei.comparison.angularPlanets}),(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 flex flex-wrap gap-2",children:e.angularPlanets.slice(0,3).map((e,a)=>(0,s.jsxs)(p.Badge,{variant:"outline",children:[e.planet," ",ei.comparison.on," ",e.angle]},a))})]})]})]})})},a)})}),sP&&(0,s.jsx)("div",{className:"jsx-fc7495cf11ddcb65 mt-6 sr-print-hidden",children:(0,s.jsx)(et,{title:ei.premium.unlockTitle,de
1scription:ei.premium.unlockDescription,buttonText:ei.premium.unlockButton,onUpgrade:()=>sD("compare")})})]})]}),(0,s.jsx)(m.Card,{children:(0,s.jsxs)(m.CardContent,{className:"p-6 text-center",children:[(0,s.jsx)("p",{className:"jsx-fc7495cf11ddcb65 text-muted-foreground mb-4",children:ei.comparison.ctaText}),(0,s.jsxs)(o.Button,{onClick:()=>eu("calculator"),children:[ei.comparison.generateFullChart,(0,s.jsx)(B.ArrowRight,{className:"ml-2 h-4 w-4"})]})]})})]})})]})]}),(0,s.jsx)(a.default,{id:"fc7495cf11ddcb65",children:"@media print{body{background:#fff}.sr-print-hidden{display:none!important}.sr-print-area{margin-top:0!important}}"})]})}e.s(["SolarReturnCombined",()=>er],903800)}]);
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.