vendor: 11,219 bytes, line 1
1import{aN as h,aO as B,bP as me,r as se,u as fe,v as he,h as S,j as n,o as pe,B as ye,aH as ge,p as A,e as E,f as _,N as C,O as L,y as ve,a4 as xe,q as Z,b as R}from"./index-N0wys5lg.js";import{Z as be}from"./zap-BVn_wFGE.js";import{B as je}from"./brain-DJSsiwgH.js";import{f as D,t as k,j as q,D as Pe,L as X,A as Ne,b as I,e as we,g as Oe,G as Ae,k as Q,P as Se,c as J,n as Ee,I as _e,R as U,T as ee,C as Re,X as De,Y as Me,B as Ce}from"./generateCategoricalChart-CBm7msUd.js";import{b as Le,P as oe,a as le}from"./PolarAngleAxis-CKbd6YuA.js";import{B as ke}from"./BarChart-fei344oE.js";import{A as Te,F as $e}from"./flame-fPViiMAi.js";import{E as Ke}from"./eye-B7DMseVs.js";import{s as Fe}from"./subDays-CDgnavp5.js";import"./addDays-QHu3ja8e.js";var qe=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function T(t){"@babel/helpers - typeof";return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(t)}function Ie(t,e){if(t==null)return{};var a=Be(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function Be(t,e){if(t==null)return{};var a={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;a[r]=t[r]}return a}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},w.apply(this,arguments)}function te(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,r)}return a}function $(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?te(Object(a),!0).forEach(function(r){Ge(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):te(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function Ge(t,e,a){return e=Ye(e),e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Ye(t){var e=We(t,"string");return T(e)=="symbol"?e:e+""}function We(t,e){if(T(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(T(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xe=function(e,a,r,i){var s="";return i.forEach(function(o,l){var d=k(a,r,e,o);l?s+="L ".concat(d.x,",").concat(d.y):s+="M ".concat(d.x,",").concat(d.y)}),s+="Z",s},ze=function(e){var a=e.cx,r=e.cy,i=e.innerRadius,s=e.outerRadius,o=e.polarAngles,l=e.radialLines;if(!o||!o.length||!l)return null;var d=$({stroke:"#ccc"},D(e,!1));return h.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(m){var u=k(a,r,i,m),f=k(a,r,s,m);return h.createElement("line",w({},d,{key:"line-".concat(m),x1:u.x,y1:u.y,x2:f.x,y2:f.y}))}))},He=function(e){var a=e.cx,r=e.cy,i=e.radius,s=e.index,o=$($({stroke:"#ccc"},D(e,!1)),{},{fill:"none"});return h.createElement("circle",w({},o,{className:B("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(s),cx:a,cy:r,r:i}))},Ve=function(e){var a=e.radius,r=e.index,i=$($({stroke:"#ccc"},D(e,!1)),{},{fill:"none"});return h.createElement("path",w({},i,{className:B("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(r),d:Xe(a,e.cx,e.cy,e.polarAngles)}))},Ze=function(e){var a=e.polarRadius,r=e.gridType;return!a||!a.length?null:h.createElement("g",{className:"recharts-polar-grid-concentric"},a.map(function(i,s){var o=s;return r==="circle"?h.createElement(He,w({key:o},e,{radius:i,index:s})):h.createElement(Ve,w({key:o},e,{radius:i,index:s}))}))},ce=function(e){var a=e.cx,r=a===void 0?0:a,i=e.cy,s=i===void 0?0:i,o=e.innerRadius,l=o===void 0?0:o,d=e.outerRadius,m=d===void 0?0:d,u=e.gridType,f=u===void 0?"polygon":u,c=e.radialLines,p=c===void 0?!0:c,y=Ie(e,qe);return m<=0?null:h.createElement("g",{className:"recharts-polar-grid"},h.createElement(ze,w({cx:r,cy:s,innerRadius:l,outerRadius:m,gridType:f,radialLines:p},y)),h.createElement(Ze,w({cx:r,cy:s,innerRadius:l,outerRadius:m,gridType:f,radialLines:p},y)))};ce.displayName="PolarGrid";var z,re;function Qe(){if(re)return z;re=1;function t(e){return e&&e.length?e[0]:void 0}return z=t,z}var H,ae;function Je(){return ae||(ae=1,H=Qe()),H}var Ue=Je();const et=me(Ue);var tt=["key"];function M(t){"@babel/helpers - typeof";return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(t)}function rt(t,e){if(t==null)return{};var a=at(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function at(t,e){if(t==null)return{};var a={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;a[r]=t[r]}return a}function G(){return G=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},G.apply(this,arguments)}function ne(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,r)}return a}function g(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?ne(Object(a),!0).forEach(function(r){N(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ne(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(t,e){for(var a=0;a<e.length;a++){var r=e[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ue(r.key),r)}}function it(t,e,a){return e&&ie(t.prototype,e),a&&ie(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t,e,a){return e=Y(e),ot(t,de()?Reflect.construct(e,a||[],Y(t).constructor):e.apply(t,a))}function ot(t,e){if(e&&(M(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lt(t)}function lt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function de(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(de=function(){return!!t})()}function Y(t){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Y(t)}function ct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}function V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},V(t,e)}function N(t,e,a){return e=ue(e),e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function ue(t){var e=dt(t,"string");return M(e)=="symbol"?e:e+""}function dt(t,e){if(M(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,e);if(M(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var K=(function(t){function e(){var a;nt(this,e);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return a=st(this,e,[].concat(i)),N(a,"state",{isAnimationFinished:!1}),N(a,"handleAnimationEnd",function(){var o=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),q(o)&&o()}),N(a,"handleAnimationStart",function(){var o=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),q(o)&&o()}),N(a,"handleMouseEnter",function(o){var l=a.props.onMouseEnter;l&&l(a.props,o)}),N(a,"handleMouseLeave",function(o){var l=a.props.onMouseLeave;l&&l(a.props,o)}),a}return ct(e,t),it(e,[{key:"renderDots",value:function(r){var i=this.props,s=i.dot,o=i.dataKey,l=D(this.props,!1),d=D(s,!0),m=r.map(function(u,f){var c=g(g(g({key:"dot-".concat(f),r:3},l),d),{},{dataKey:o,cx:u.x,cy:u.y,index:f,payload:u});return e.renderDotItem(s,c)});return h.createElement(X,{className:"recharts-radar-dots"},m)}},{key:"renderPolygonStatically",value:function(r){var i=this.props,s=i.shape,o=i.dot,l=i.isRange,d=i.baseLinePoints,m=i.connectNulls,u;return h.isValidElement(s)?u=h.cloneElement(s,g(g({},this.props),{},{points:r})):q(s)?u=s(g(g({},this.props),{},{points:r})):u=h.createElement(Le,G({},D(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:r,baseLinePoints:l?d:null,connectNulls:m})),h.createElement(X,{className:"recharts-radar-polygon"},u,o?this.renderDots(r):null)}},{key:"renderPolygonWithAnimation",value:function(){var r=this,i=this.props,s=i.points,o=i.isAnimationActive,l=i.animationBegin,d=i.animationDuration,m=i.animationEasing,u=i.animationId,f=this.state.prevPoints;return h.createElement(Ne,{begin:l,duration:d,isActive:o,easing:m,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(c){var p=c.t,y=f&&f.length/s.length,j=s.map(function(v,P){var b=f&&f[Math.floor(P*y)];if(b){var O=I(b.x,v.x),F=I(b.y,v.y);return g(g({},v),{},{x:O(p),y:F(p)})}var x=I(v.cx,v.x),W=I(v.cy,v.y);return g(g({},v),{},{x:x(p),y:W(p)})});return r.renderPolygonStatically(j)})}},{key:"renderPolygon",value:function(){var r=this.props,i=r.points,s=r.isAnimationActive,o=r.isRange,l=this.state.prevPoints;return s&&i&&i.length&&!o&&(!l||!we(l,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.className,o=r.points,l=r.isAnimationActive;if(i||!o||!o.length)return null;var d=this.state.isAnimationFinished,m=B("recharts-radar",s);return h.createElement(X,{className:m},this.renderPolygon(),(!l||d)&&Oe.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"renderDotItem",value:function(r,i){var s;if(h.isValidElement(r))s=h.cloneElement(r,i);else if(q(r))s=r(i);else{var o=i.key,l=rt(i,tt);s=h.createElement(Pe,G({},l,{key:o,className:B("recharts-radar-dot",typeof r!="boolean"?r.className:"")}))}return s}}])})(se.PureComponent);
1N(K,"displayName","Radar");N(K,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Ae.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});N(K,"getComposedData",function(t){var e=t.radiusAxis,a=t.angleAxis,r=t.displayedData,i=t.dataKey,s=t.bandSize,o=a.cx,l=a.cy,d=!1,m=[],u=a.type!=="number"?s??0:0;r.forEach(function(c,p){var y=Q(c,a.dataKey,p),j=Q(c,i),v=a.scale(y)+u,P=Array.isArray(j)?Se(j):j,b=J(P)?void 0:e.scale(P);Array.isArray(j)&&j.length>=2&&(d=!0),m.push(g(g({},k(o,l,b,v)),{},{name:y,value:j,cx:o,cy:l,radius:b,angle:v,payload:c}))});var f=[];return d&&m.forEach(function(c){if(Array.isArray(c.value)){var p=et(c.value),y=J(p)?void 0:e.scale(p);f.push(g(g({},c),{},{radius:y},k(o,l,y,c.angle)))}else f.push(c)}),{points:m,isRange:d,baseLinePoints:f}});var ut=Ee({chartName:"RadarChart",GraphicalChild:K,axisComponents:[{axisType:"angleAxis",AxisComp:oe},{axisType:"radiusAxis",AxisComp:le}],formatAxisMap:_e,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const mt={wisdom:{color:"from-rose-500/10 to-pink-500/10"}};function Nt(){const t=fe();he();const{data:e}=S({queryKey:["me"],queryFn:()=>R.auth.me()}),{data:a=[]}=S({queryKey:["meditation-sessions",e==null?void 0:e.email],queryFn:()=>e?R.entities.MeditationSession.filter({user_email:e.email},"-session_date",500):[],enabled:!!e}),{data:r=[]}=S({queryKey:["aura-readings",e==null?void 0:e.email],queryFn:()=>e?R.entities.AuraReading.filter({user_email:e.email},"-reading_date",100):[],enabled:!!e}),{data:i=[]}=S({queryKey:["dream-entries",e==null?void 0:e.email],queryFn:()=>e?R.entities.DreamEntry.filter({user_email:e.email},"-dream_date",100):[],enabled:!!e}),{data:s=[]}=S({queryKey:["compatibility-readings",e==null?void 0:e.email],queryFn:()=>e?R.entities.CompatibilityReading.filter({user_email:e.email},"-created_date",50):[],enabled:!!e}),{data:o=[]}=S({queryKey:["spiritual-milestones",e==null?void 0:e.email],queryFn:()=>e?R.entities.SpiritualGrowthMilestone.filter({user_email:e.email},"-achieved_date",50):[],enabled:!!e}),l=se.useMemo(()=>{var F;const c=Fe(new Date,30),p=Math.min(100,a.filter(x=>new Date(x.session_date)>=c).length*5),y=Math.min(100,(((F=r[0])==null?void 0:F.energy_level)||0)*10),j=Math.min(100,i.filter(x=>new Date(x.dream_date)>=c).length*8),v=Math.min(100,s.reduce((x,W)=>x+(W.overall_score||0),0)/Math.max(s.length,1));o.filter(x=>x.achieved).length*10;const P=(p+y+j+v)/4;let b=1,O="Seeker";return P>=25&&(b=2,O="Awakening"),P>=50&&(b=3,O="Expanding"),P>=75&&(b=4,O="Enlightening"),P>=90&&(b=5,O="Illuminated"),{overallScore:Math.round(P),meditationScore:Math.round(p),auraScore:Math.round(y),dreamScore:Math.round(j),chartScore:Math.round(v),level:b,levelName:O,totalXP:a.length*10+r.length*15+i.length*12+o.filter(x=>x.achieved).length*(x=>x.xp_reward||50)}},[a,r,i,s,o]),d=[{category:"Meditation",value:l.meditationScore},{category:"Aura",value:l.auraScore},{category:"Dreams",value:l.dreamScore},{category:"Astrology",value:l.chartScore}],m=[{name:"Meditation",value:l.meditationScore,icon:"ð§"},{name:"Aura",value:l.auraScore,icon:"â¨"},{name:"Dreams",value:l.dreamScore,icon:"ð"},{name:"Astrology",value:l.chartScore,icon:"â"}],u=o.filter(c=>c.achieved),f=o.filter(c=>!c.achieved).slice(0,5);return e?n.jsx("div",{className:"min-h-screen bg-background p-4 md:p-8",children:n.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[n.jsxs("div",{className:"flex items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsxs("h1",{className:"font-heading text-4xl font-bold text-foreground mb-2 flex items-center gap-2",children:[n.jsx(pe,{className:"w-8 h-8 text-primary"}),"Spiritual Growth Journey"]}),n.jsx("p",{className:"text-muted-foreground",children:"Track your transformation across all spiritual dimensions"})]}),n.jsx(ye,{variant:"ghost",onClick:()=>t("/"),className:"h-8",children:n.jsx(ge,{className:"w-4 h-4"})})]}),n.jsx(A.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:n.jsx(E,{className:`bg-gradient-to-br ${mt.wisdom.color} border-primary/30 overflow-hidden`,children:n.jsx(_,{className:"pt-8",children:n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 items-center",children:[n.jsxs("div",{className:"text-center",children:[n.jsx("div",{className:"text-6xl font-bold text-primary mb-2",children:l.level}),n.jsx("p",{className:"text-xl font-heading text-foreground mb-1",children:l.levelName}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Spiritual Level"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"flex items-center justify-between mb-1",children:[n.jsx("span",{className:"text-sm font-semibold text-foreground",children:"Overall Progress"}),n.jsxs("span",{className:"text-lg font-bold text-primary",children:[l.overallScore,"%"]})]}),n.jsx("div",{className:"w-full h-3 bg-secondary rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full bg-gradient-to-r from-primary to-accent transition-all",style:{width:`${l.overallScore}%`}})}),n.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Keep practicing to reach the next level"})]}),n.jsxs("div",{className:"space-y-2 text-center md:text-right",children:[n.jsxs("div",{className:"flex items-center justify-center md:justify-end gap-2",children:[n.jsx(be,{className:"w-5 h-5 text-orange-500"}),n.jsx("span",{className:"text-2xl font-bold text-foreground",children:a.length*10+r.length*15+i.length*12})]}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Spiritual XP"})]})]})})})}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n.jsx(A.div,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},transition:{delay:.1},children:n.jsxs(E,{className:"bg-card border-border",children:[n.jsx(C,{children:n.jsxs(L,{className:"font-heading flex items-center gap-2",children:[n.jsx(je,{className:"w-5 h-5 text-primary"}),"Growth Dimensions"]})}),n.jsx(_,{children:n.jsx(U,{width:"100%",height:300,children:n.jsxs(ut,{data:d,children:[n.jsx(ce,{stroke:"hsl(var(--border))"}),n.jsx(oe,{dataKey:"category",tick:{fill:"hsl(var(--muted-foreground))"}}),n.jsx(le,{angle:90,domain:[0,100],tick:{fill:"hsl(var(--muted-foreground))"}}),n.jsx(K,{name:"Growth",dataKey:"value",stroke:"hsl(var(--primary))",fill:"hsl(var(--primary))",fillOpacity:.3}),n.jsx(ee,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))"}})]})})})]})}),n.jsx(A.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.15},className:"lg:col-span-2",children:n.jsxs(E,{className:"bg-card border-border",children:[n.jsx(C,{children:n.jsxs(L,{className:"font-heading flex items-center gap-2",children:[n.jsx(ve,{className:"w-5 h-5 text-primary"}),"Category Progress"]})}),n.jsx(_,{children:n.jsx(U,{width:"100%",height:300,children:n.jsxs(ke,{data:m,children:[n.jsx(Re,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),n.jsx(De,{dataKey:"name",tick:{fill:"hsl(var(--muted-foreground))"}}),n.jsx(Me,{tick:{fill:"hsl(var(--muted-foreground))"},domain:[0,100]}),n.jsx(ee,{contentStyle:{backgroundColor:"hsl(var(--card))",border:"1px solid hsl(var(--border))"}}),n.jsx(Ce,{dataKey:"value",fill:"hsl(var(--primary))"})]})})})]})})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[n.jsx(A.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},children:n.jsxs(E,{className:"bg-card border-border",children:[n.jsx(C,{children:n.jsxs(L,{className:"font-heading flex items-center gap-2",children:[n.jsx(Te,{className:"w-5 h-5 text-primary"}),"Achievements (",u.length,")"]})}),n.jsx(_,{children:n.jsx("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:u.length>0?u.map((c,p)=>n.jsx(A.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:p*.05},className:"p-3 bg-green-500/10 border border-green-500/30 rounded-lg",children:n.jsxs("div",{className:"flex items-start justify-between gap-2",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx("p",{className:"font-semibold text-foreground text-sm",children:c.title}),n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.achieved_date&&xe(new Date(c.achieved_date),"MMM d, yyyy")})]}),n.jsxs(Z,{className:"bg-green-500/20 text-green-300 border-0",children:["+",c.xp_reward||50,"XP"]})]})},c.id)):n.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No achievements yet. Keep growing!"})})})]})}),n.jsx(A.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.25},children:n.jsxs(E,{className:"bg-card border-border",children:[n.jsx(C,{children:n.jsxs(L,{className:"font-heading flex items-center gap-2",children:[n.jsx($e,{className:"w-5 h-5 text-orange-500"}),"Active Milestones"]})}),n.jsx(_,{children:n.jsx("div",{className:"space-y-3",children:f.length>0?f.map((c,p)=>{const y=c.target?c.current_value/c.target*100:0;return n.jsxs(A.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:p*.05},className:"p-3 bg-secondary/30 border border-border/50 rounded-lg",children:[n.jsxs("div",{className:"flex items-start justify-between gap-2 mb-2",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx("p",{className:"font-semibold text-foreground text-sm",children:c.title}),n.jsxs("p",{className:"text-xs text-muted-foreground",children:[c.current_value||0," / ",c.target||"?"]})]}),n.jsxs(Z,{className:"bg-primary/20 text-primary text-xs",children:[Math.round(y),"%"]})]}),n.jsx("div",{className:"w-full h-1.5 bg-secondary rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.min(y,100)}%`}})})]},c.id)}):n.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No active milestones. Set your goals!"})})})]})})]}),n.jsxs(E,{className:"bg-gradient-to-br from-primary/5 to-accent/5 border-primary/30",children:[n.jsx(C,{children:n.jsxs(L,{className:"font-heading flex items-center gap-2",children:[n.jsx(Ke,{className:"w-5 h-5 text-primary"}),"Your Spiritual Insights"]})}),n.jsxs(_,{className:"space-y-3",children:[l.meditationScore>
170&&n.jsx("p",{className:"text-sm text-foreground",children:"ð§ Your meditation practice is strong! Keep building your daily streak for continued inner peace."}),l.auraScore>70&&n.jsx("p",{className:"text-sm text-foreground",children:"⨠Your aura energy is vibrant and clear. You're resonating at a high spiritual frequency."}),l.dreamScore>70&&n.jsx("p",{className:"text-sm text-foreground",children:"ð Your dream work is deepening. The subconscious messages are guiding your spiritual path."}),l.overallScore>=75&&n.jsx("p",{className:"text-sm text-foreground",children:"ð You're well on your way to enlightenment. Your consistent practice is creating profound transformation."}),l.overallScore<50&&n.jsx("p",{className:"text-sm text-foreground",children:"ð« Your journey is just beginning. Start with daily meditation and aura readings to accelerate your growth."})]})]})]})}):null}export{Nt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.