1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,486976,e=>{"use strict";var r=e.i(843476),t=e.i(349303),a=e.i(382373),s=e.i(248256),i=e.i(283086),l=e.i(757592),n=e.i(846932);let o=[{word:"pronunciation",ipa:"/prÉËnÊnsiËeɪÊÉn/",accent:"US"},{word:"extraordinary",ipa:"/ɪkËstrÉËrdÉnÉri/",accent:"UK"},{word:"schedule",ipa:"/ËskedÊuËl/",accent:"AU"},{word:"worcestershire",ipa:"/ËwÊstÉrÊÉr/",accent:"UK"},{word:"entrepreneur",ipa:"/ËÉËntrÉprÉËnÉËr/",accent:"US"}];function c(){return(0,r.jsxs)("section",{className:"relative py-20 md:py-32 overflow-hidden bg-gradient-to-br from-gray-900 via-gray-950 to-gray-900",children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-[700px] h-[700px] bg-gradient-to-bl from-pink-500/20 via-pink-500/10 to-transparent rounded-full blur-3xl -translate-y-1/4 translate-x-1/3 animate-pulse-slow"}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 w-[600px] h-[600px] bg-gradient-to-tr from-yellow-500/20 via-yellow-500/10 to-transparent rounded-full blur-3xl translate-y-1/4 -translate-x-1/4 animate-pulse-slow animation-delay-1000"}),(0,r.jsx)("div",{className:"absolute top-1/2 left-1/2 w-[500px] h-[500px] bg-gradient-to-r from-blue-500/20 to-transparent rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-grid-slate-800 [mask-image:radial-gradient(ellipse_at_center,white,transparent_70%)] opacity-40"}),(0,r.jsx)("div",{className:"relative z-10 mx-auto w-full max-w-7xl px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"grid lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[(0,r.jsx)(n.motion.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.6,delay:.2},className:"order-2 lg:order-1",children:(0,r.jsx)(l.PronunciationCarousel,{words:o})}),(0,r.jsxs)(n.motion.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.6,delay:.4},className:"text-center lg:text-left order-1 lg:order-2 space-y-10",children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("h1",{className:"text-5xl sm:text-6xl lg:text-7xl font-black text-white leading-[1.05] tracking-tight",children:["Stop Guessing.",(0,r.jsx)("span",{className:"block mt-2 text-blue-400",children:"Pronounce Confidently."})]}),(0,r.jsx)("p",{className:"text-xl sm:text-2xl text-gray-300 leading-relaxed font-medium",children:"Master English pronunciation through real voices, phonetics, and feedback â trusted by learners in 145 countries."})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center lg:items-start gap-5 pt-2",children:[(0,r.jsx)(n.motion.div,{whileHover:{scale:1.03},whileTap:{scale:.98},children:(0,r.jsxs)(t.ConditionalCTAButton,{size:"xl",variant:"brand-pink",className:"group text-2xl px-12 py-8 shadow-2xl hover:shadow-pink/50 relative overflow-hidden",loggedInHref:"/dashboard",children:[(0,r.jsx)(a.Volume2,{className:"mr-4 h-8 w-8 relative z-10 group-hover:scale-110 transition-transform"}),"Hear a word said properly"]})}),(0,r.jsxs)("div",{className:"flex flex-col items-center lg:items-start gap-3",children:[(0,r.jsx)("p",{className:"text-sm text-gray-400 font-medium",children:"100% free ⢠No credit card required"}),(0,r.jsxs)("div",{className:"flex items-center gap-6 text-sm text-gray-300",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(a.Volume2,{className:"h-4 w-4 text-blue-400"}),(0,r.jsx)("span",{className:"font-semibold",children:"16M+ views"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(s.Globe,{className:"h-4 w-4 text-blue-400"}),(0,r.jsx)("span",{className:"font-semibold",children:"145 countries"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)(i.Sparkles,{className:"h-4 w-4 text-yellow-400"}),(0,r.jsx)("span",{className:"font-semibold",children:"25,000+ words"})]})]})]})]})]})]})})]})}e.s(["default",()=>c])},497961,e=>{"use strict";var r=e.i(843476),t=e.i(271645),a=e.i(248256),s=e.i(761911),i=e.i(431343),l=e.i(503116);let n=(0,e.i(770703).default)(()=>e.A(166334).then(e=>({default:e.WorldMap})),{loadableGenerated:{modules:[128460]},ssr:!1,loading:()=>null}),o=[{icon:i.Play,value:0x103d82d,label:"Video Views",suffix:"",color:"text-blue-300",bgColor:"bg-blue-500/10",borderColor:"border-blue-500/30"},{icon:s.Users,value:14100,label:"Subscribers",suffix:"+",color:"text-green-300",bgColor:"bg-green-500/10",borderColor:"border-green-500/30"},{icon:a.Globe,value:145,label:"Countries",suffix:"",color:"text-purple-300",bgColor:"bg-purple-500/10",borderColor:"border-purple-500/30"},{icon:l.Clock,value:74176,label:"Hours Watched",suffix:"",color:"text-orange-300",bgColor:"bg-orange-500/10",borderColor:"border-orange-500/30"}];function c({end:e,duration:a=2e3}){let[s,i]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let r,t,s=l=>{r||(r=l);let n=Math.min((l-r)/a,1);i(Math.floor(n*e)),n<1&&(t=requestAnimationFrame(s))};return t=requestAnimationFrame(s),()=>cancelAnimationFrame(t)}
1,[e,a]),(0,r.jsx)(r.Fragment,{children:s.toLocaleString()})}function d(){return(0,r.jsx)("section",{className:"bg-gray-900/50 backdrop-blur-sm py-9",children:(0,r.jsxs)("div",{className:"mx-auto max-w-6xl px-6",children:[(0,r.jsxs)("div",{className:"text-center mb-8",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-white mb-4",children:"Proven Global Impact"}),(0,r.jsx)("p",{className:"text-base text-gray-300 leading-relaxed max-w-2xl mx-auto",children:"Join millions of learners worldwide who trust Pronounce for perfect English pronunciation"})]}),(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:o.map((e,t)=>{let a=e.icon;return(0,r.jsxs)("div",{className:"text-center group",children:[(0,r.jsx)("div",{className:`${e.bgColor} border ${e.borderColor} p-4 rounded-2xl w-fit mx-auto mb-4 group-hover:scale-110 transition-transform`,children:(0,r.jsx)(a,{className:`${e.color} h-8 w-8`})}),(0,r.jsxs)("div",{className:`text-4xl font-bold ${e.color} mb-2`,children:[(0,r.jsx)(c,{end:e.value}),e.suffix]}),(0,r.jsx)("p",{className:"text-base text-gray-400 font-medium",children:e.label})]},t)})}),(0,r.jsx)("div",{className:"text-center mt-8",children:(0,r.jsx)("p",{className:"text-sm text-gray-400",children:"Real-time stats from our YouTube channel and platform analytics"})}),(0,r.jsxs)("div",{className:"mt-12",children:[(0,r.jsxs)("div",{className:"text-center mb-6",children:[(0,r.jsx)("h3",{className:"text-2xl font-bold text-white mb-3",children:"Learners Across the Globe"}),(0,r.jsx)("p",{className:"text-base text-gray-300",children:"Real-time visitor activity from 145 countries"})]}),(0,r.jsx)("div",{className:"bg-gray-800 p-5 rounded-2xl shadow-lg border border-gray-700",children:(0,r.jsx)(n,{className:"w-full min-h-[400px]"})})]})]})})}e.s(["default",()=>d])},758489,e=>{"use strict";var r=e.i(843476);let t=(0,e.i(770703).default)(()=>e.A(955973).then(e=>({default:e.FeaturedWordsClient})),{loadableGenerated:{modules:[159297]},ssr:!1});function a({initialWords:e}){return(0,r.jsx)(t,{initialWords:e})}e.s(["default",()=>a])},463751,e=>{"use strict";var r=e.i(843476),t=e.i(349303),a=e.i(382373),s=e.i(431343),i=e.i(657688);function l(){return(0,r.jsxs)("section",{className:"py-20 relative overflow-hidden",style:{background:"var(--gradient-hero)"},children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/20 via-black/30 to-black/40"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-grid-white/10 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))] -z-10"}),(0,r.jsx)("div",{className:"absolute top-0 left-0 w-64 h-64 bg-white/10 rounded-full -translate-x-32 -translate-y-32"}),(0,r.jsx)("div",{className:"absolute bottom-0 right-0 w-96 h-96 bg-white/5 rounded-full translate-x-48 translate-y-48"}),(0,r.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl px-6 text-center text-white",children:[(0,r.jsx)("div",{className:"flex justify-center mb-8",children:(0,r.jsx)("div",{className:"bg-white/20 backdrop-blur-sm p-6 rounded-2xl",children:(0,r.jsx)("div",{className:"relative h-16 w-16",children:(0,r.jsx)(i.default,{src:"/pronounce-logo.png",alt:"Pronounce Logo",width:64,height:64,className:"object-contain brightness-0 invert"})})})}),(0,r.jsxs)("h2",{className:"text-4xl md:text-5xl font-bold mb-6 leading-tight",children:["Ready to Master Perfect",(0,r.jsx)("span",{className:"block",children:"English Pronunciation?"})]}),(0,r.jsx)("p",{className:"text-xl text-white/90 mb-8 max-w-2xl mx-auto leading-relaxed",children:"Join millions of learners worldwide who trust Pronounce for clear, confident, and accurate English pronunciation. Start your journey today - it's completely free!"}),(0,r.jsx)("div",{className:"flex justify-center mb-8",children:(0,r.jsxs)(t.ConditionalCTAButton,{variant:"cta-primary",size:"xl",className:"text-lg px-12 py-7 shadow-2xl hover:shadow-3xl transition-all hover:scale-105",loggedInHref:"/dashboard",children:[(0,r.jsx)(a.Volume2,{className:"mr-3 h-6 w-6"}),"Hear a word said properly"]})}),(0,r.jsx)("p",{className:"text-sm text-white/70 mb-8",children:"No credit card required ⢠100% free forever"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mt-12",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-3xl font-bold mb-2",children:"25,000+"}),(0,r.jsx)("p",{className:"text-white/80",children:"Words Available"})]}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-3xl font-bold mb-2",children:"100%"}),(0,r.jsx)("p",{className:"text-white/80",children:"Free to Use"})]}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"text-3xl font-bold mb-2",children:"0"}),(0,r.jsx)("p",{className:"text-white/80",children:"Download Required"})]})]}),(0,r.jsx)("div",{className:"mt-12 pt-8 border-t border-white/20",children:(0,r.jsxs)("div",{className:"flex flex-wrap justify-center items-center gap-6 text-sm text-white/80",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)(s.Play,{className:"h-4 w-4"}),(0,r.jsx)("span",{children:"16.59M Video Views"})]}),(0,r.jsx)("div",{children:"â¢"}),(0,r.jsx)("div",{children:"145 Countries Served"}),(0,r.jsx)("div",{children:"â¢"}),(0,r.jsx)("div",{children:"Expert-Verified Content"}),(0,r.jsx)("div",{children:"â¢"}),(0,r.jsx)("div",{children:"Mobile Friendly"})]})})]})]})}e.s(["default",()=>l])},312889,e=>{"use strict";var r=e.i(248131),t=e.i(778204);function a(){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.MARKETING_HOMEPAGE_VIEWED,{[t.PARAM_KEYS.USER_STATE]:"anonymous"})}function s(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.HERO_PRACTICE_CTA_CLICKED,{[t.PARAM_KEYS.USER_STATE]:e.userState,cta_text:e.ctaText,destination:e.destination})}function i(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.WORDS_DUE_WIDGET_VIEWED,{words_due:e.wordsDue,[t.PARAM_KEYS.USER_STATE]:e.userState})}function l(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.WORDS_DUE_WORD_CLICKED,{[t.PARAM_KEYS.WORD_ID]:e.wordId,[t.PARAM_KEYS.WORD]:e.word,position:e.position})}function n(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.PROGRESS_WIDGET_VIEWED,{current_level:e.currentLevel,current_streak:e.currentStreak,streak_status:e.streakStatus})}function o(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.ACHIEVEMENT_HIGHLIGHT_CLICKED,{achievement_id:e.achievementId,achievement_name:e.achievementName,rarity:e.rarity})}function c(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.PERSONALIZED_RECOMMENDATION_SHOWN,{recommendation_type:e.recommendationType,word_count:e.wordCount,based_on:e.basedOn.join(",")})}function d(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.PERSONALIZED_RECOMMENDATION_CLICKED,{[t.PARAM_KEYS.WORD_ID]:e.wordId,[t.PARAM_KEYS.WORD]:e.word,recommendation_type:e.recommendationType,position:e.position})}function m(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.PREMIUM_UPSELL_BANNER_SHOWN,{reason:e.reason,words_remaining:e.wordsRemaining,[t.PARAM_KEYS.USER_STATE]:e.userState}),"near_limit"===e.reason&&void 0!==e.wordsRemaining&&(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.NEAR_LIMIT_WARNING_SHOWN,{words_remaining:e.wordsRemaining})}function x(e){(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.PREMIUM_UPSELL_BANNER_CLICKED,{reason:e.reason,destination:e.destination})}function h(e){var a,s,i,l;let{userContext:n}=e,{userState:o,stats:c}=n;a={userState:o,isPremium:c.isPremium,wordsDue:c.wordsDue,currentStreak:c.currentStreak,userId:n.userId},(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.PERSONALIZED_HOMEPAGE_VIEWED,{[t.PARAM_KEYS.USER_STATE]:a.userState,[t.PARAM_KEYS.MEMBERSHIP_TIER]:a.isPremium?"premium":"free",words_due:a.wordsDue,current_streak:a.currentStreak,[t.PARAM_KEYS.USER_ID]:a.userId}),(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.USER_STATE_DETECTED,{[t.PARAM_KEYS.USER_STATE]:a.userState,[t.PARAM_KEYS.MEMBERSHIP_TIER]:a.isPremium?"premium":"free"}),"at_risk"===c.streakStatus&&(s={streakLength:c.currentStreak,daysSinceLastPractice:c.daysSinceLastPractice},(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.STREAK_WARNING_SHOWN,{streak_length:s.streakLength,days_since_last_practice:s.daysSinceLastPractice})),"inactive_user"===o&&(i={daysSinceLastPractice:c.daysSinceLastPractice,previousStreak:c.currentStreak},(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.INACTIVE_USER_MESSAGE_SHOWN,{days_since_last_practice:i.daysSinceLastPractice,previous_streak:i.previousStreak})),"returning_user"===o&&(l={hasOnboarded:!0,hasPracticeHistory:!1},(0,r.trackEvent)(t.HOMEPAGE_PERSONALIZATION_EVENTS.RETURNING_USER_MESSAGE_SHOWN,{has_onboarded:l.hasOnboarded,has_practice_history:l.hasPracticeHistory})),!c.isPremium&&c.isNearLimit&&m({reason:"near_limit",wordsRemaining:c.wordsRemaining,userState:o})}e.s(["trackAchievementHighlightClick",()=>o,"trackHeroPracticeCTA",()=>s,"trackHomepageLoad",()=>h,"trackMarketingHomepageView",()=>a,"trackPersonalizedRecommendationClick",()=>d,"trackPersonalizedRecommendationShown",()=>c,"trackPremiumUpsellBannerClick",()=>x,"trackPremiumUpsellBannerShown",()=>m,"trackProgressWidgetView",()=>n,"trackWordsDueWidgetView",()=>i,"trackWordsDueWordClick",()=>l])},29081,e=>{"use strict";var r=e.i(271645),t=e.i(312889);function a(){return(0,r.useEffect)(()=>{(0,t.trackMarketingHomepageView)()},[]),null}e.s(["default",()=>a])},932396,e=>{"use strict";var r=e.i(843476),t=e.i(271645),a=e.i(312889),s=e.i(522016),i=e.i(431343),l=e.i(958377),n=e.i(620278),o=e.i(283086);function c({userContext:e}){let t=function(e){let{userState:r,stats:t,name:a}=e,s=a.split(" ")[0];switch(r){case"active_user":if(t.wordsDue>
10)return{headline:`Welcome back, ${s}!`,subheadline:`You have ${t.wordsDue} word${1===t.wordsDue?"":"s"} ready to practice`,primaryCta:"Play Now",ctaHref:"/play/quick"};return{headline:`Great to see you, ${s}!`,subheadline:"Ready to learn some new words?",primaryCta:"Play Now",ctaHref:"/play/quick"};case"at_risk_user":return{headline:`Don't break your streak, ${s}!`,subheadline:`Your ${t.currentStreak}-day streak is waiting. Practice now to keep it alive!`,primaryCta:"Play Now",ctaHref:"/play/quick"};case"inactive_user":if(t.currentStreak>0)return{headline:`We missed you, ${s}!`,subheadline:`You had a ${t.currentStreak}-day streak going. Ready to restart?`,primaryCta:"Play Now",ctaHref:"/play/quick"};return{headline:`Welcome back, ${s}!`,subheadline:"Ready to get back to practicing?",primaryCta:"Play Now",ctaHref:"/play/quick"};case"returning_user":if(t.wordsDue>0)return{headline:`Welcome, ${s}!`,subheadline:`You have ${t.wordsDue} word${1===t.wordsDue?"":"s"} ready to practice`,primaryCta:"Play Now",ctaHref:"/play/quick"};return{headline:`Welcome, ${s}!`,subheadline:"Start your pronunciation journey today",primaryCta:"Play Now",ctaHref:"/play/quick"};case"new_user":return{headline:`Welcome to Pronounce, ${s}!`,subheadline:"Let's get you set up with your learning preferences",primaryCta:"Complete Setup",ctaHref:"/onboarding"};default:return{headline:`Welcome, ${s}!`,subheadline:"Continue your pronunciation journey",primaryCta:"Play Now",ctaHref:"/play/quick"}}}(e),{stats:c,userState:d}=e;return(0,r.jsxs)("section",{className:`relative py-20 px-6 bg-gradient-to-br ${(()=>{switch(d){case"at_risk_user":return"from-orange-950/50 via-red-950/50 to-pink-950/50";case"inactive_user":return"from-pink-950/50 via-gray-950 to-blue-950/50";case"active_user":return"from-green-950/50 via-emerald-950/50 to-teal-950/50";default:return"from-blue-950/50 via-gray-950 to-pink-950/50"}})()}`,children:[(0,r.jsx)("div",{className:"absolute inset-0 opacity-10",children:(0,r.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")"}})}),(0,r.jsxs)("div",{className:"max-w-5xl mx-auto relative",children:[(0,r.jsx)("div",{className:"flex justify-center mb-6",children:(()=>{switch(d){case"at_risk_user":return(0,r.jsx)(l.Flame,{className:"w-12 h-12 text-orange-500"});case"active_user":return(0,r.jsx)(n.Target,{className:"w-12 h-12 text-green-500"});case"inactive_user":return(0,r.jsx)(o.Sparkles,{className:"w-12 h-12 text-pink-500"});default:return(0,r.jsx)(i.Play,{className:"w-12 h-12 text-blue-500"})}})()}),(0,r.jsx)("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-white text-center mb-4",children:t.headline}),(0,r.jsx)("p",{className:"text-xl md:text-2xl text-gray-300 text-center mb-8 max-w-3xl mx-auto",children:t.subheadline}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-4 md:gap-8 mb-10",children:[c.wordsDue>0&&(0,r.jsxs)("div",{className:"flex items-center gap-2 bg-gray-800 border border-gray-700 px-4 py-2 rounded-full shadow-sm",children:[(0,r.jsx)("div",{className:"w-2 h-2 bg-orange-500 rounded-full animate-pulse"}),(0,r.jsxs)("span",{className:"text-sm font-medium text-gray-300",children:[c.wordsDue," word",1===c.wordsDue?"":"s"," due"]})]}),c.currentStreak>0&&(0,r.jsxs)("div",{className:"flex items-center gap-2 bg-gray-800 border border-gray-700 px-4 py-2 rounded-full shadow-sm",children:[(0,r.jsx)(l.Flame,{className:`w-4 h-4 ${"at_risk"===c.streakStatus?"text-orange-400":"text-red-400"}`}),(0,r.jsxs)("span",{className:"text-sm font-medium text-gray-300",children:[c.currentStreak," day streak","at_risk"===c.streakStatus&&" (at risk!)"]})]}),c.wordsMastered>0&&(0,r.jsxs)("div",{className:"flex items-center gap-2 bg-gray-800 border border-gray-700 px-4 py-2 rounded-full shadow-sm",children:[(0,r.jsx)(o.Sparkles,{className:"w-4 h-4 text-yellow-400"}),(0,r.jsxs)("span",{className:"text-sm font-medium text-gray-300",children:[c.wordsMastered," mastered"]})]}),(0,r.jsx)("div",{className:`flex items-center gap-2 px-4 py-2 rounded-full shadow-sm ${c.isPremium?"bg-gradient-to-r from-purple-600 to-pink-600 text-white":"bg-gray-800 border border-gray-700 text-gray-300"}`,children:(0,r.jsx)("span",{className:"text-sm font-medium",children:c.isPremium?"â Premium":`${c.wordsRemaining}/${c.dailyWordLimit} left`})})]}),(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsxs)(s.default,{href:t.ctaHref,onClick:()=>{(0,a.trackHeroPracticeCTA)({userState:d,ctaText:t.primaryCta,destination:t.ctaHref})},className:"group relative inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-pink-500 to-pink-600 text-white text-lg font-semibold rounded-xl shadow-lg hover:shadow-xl hover:scale-105 transition-all duration-200",children:[(0,r.jsx)(i.Play,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"}),t.primaryCta,(0,r.jsx)("div",{className:"absolute inset-0 rounded-xl bg-white opacity-0 group-hover:opacity-10 transition-opacity"})]})}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-4 mt-6",children:[(0,r.jsx)(s.default,{href:"/browse",className:"text-gray-400 hover:text-white font-medium transition-colors",children:"Browse All Words â"}),(0,r.jsx)("span",{className:"text-gray-600",children:"â¢"}),(0,r.jsx)(s.default,{href:"/dashboard",className:"text-gray-400 hover:text-white font-medium transition-colors",children:"View Dashboard â"})]}),!c.isPremium&&c.isNearLimit&&(0,r.jsx)("div",{className:"mt-8 max-w-2xl mx-auto",children:(0,r.jsx)("div",{className:"bg-orange-500/10 border border-orange-500/30 rounded-lg p-4 text-center",children:(0,r.jsxs)("p",{className:"text-sm text-orange-300",children:[(0,r.jsxs)("span",{className:"font-semibold",children:["Only ",c.wordsRemaining," words left today!"]})," ",(0,r.jsx)(s.default,{href:"/pricing",className:"underline hover:text-orange-200 transition-colors",children:"Upgrade to Premium"})," ","for unlimited access."]})})})]})]})}var d=e.i(25652),m=e.i(664030),x=e.i(575822);function h({userContext:e,gamificationData:i}){let{stats:n}=e;if((0,t.useEffect)(()=>{(0,a.trackProgressWidgetView)({currentLevel:i?.currentLevel,currentStreak:n.currentStreak,streakStatus:n.streakStatus})},[i?.currentLevel,n.currentStreak,n.streakStatus]),!i)return(0,r.jsx)("section",{className:"py-12 px-6 bg-gray-900 border-y border-gray-800",children:(0,r.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,r.jsxs)("div",{className:"bg-gradient-to-br from-blue-950/50 to-indigo-950/50 rounded-2xl p-8 text-center border border-gray-800",children:[(0,r.jsx)(d.TrendingUp,{className:"w-12 h-12 text-blue-400 mx-auto mb-4"}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:"Your Progress"}),(0,r.jsx)("p",{className:"text-gray-300 mb-6",children:"Track your learning journey with detailed analytics"}),(0,r.jsx)(s.default,{href:"/dashboard",className:"inline-flex items-center gap-2 px-6 py-3 bg-gradient-to-r from-pink-500 to-pink-600 text-white font-semibold rounded-lg hover:from-pink-600 hover:to-pink-700 transition-colors",children:"View Full Dashboard â"})]})})});let o=i.progressToNext||0;return(0,r.jsx)("section",{className:"py-12 px-6 bg-gray-900 border-y border-gray-800",children:(0,r.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Your Progress"}),(0,r.jsx)("p",{className:"text-gray-400",children:"Keep up the great work!"})]}),(0,r.jsx)(s.default,{href:"/dashboard",className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"View Dashboard â"})]}),(0,r.jsxs)("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:[(0,r.jsxs)("div",{className:"bg-gradient-to-br from-purple-950/50 to-pink-950/50 rounded-xl p-6 border border-purple-500/30",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)(d.TrendingUp,{className:"w-8 h-8 text-purple-400"}),(0,r.jsxs)("span",{className:"text-sm font-medium text-purple-300 bg-purple-500/20 px-3 py-1 rounded-full",children:["Level ",i.currentLevel]})]}),(0,r.jsx)("h3",{className:"text-sm font-medium text-gray-300 mb-2",children:"Experience Points"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-2 mb-3",children:[(0,r.jsx)("span",{className:"text-3xl font-bold text-white",children:i.totalXp.toLocaleStr
1ing()}),(0,r.jsx)("span",{className:"text-sm text-gray-400",children:"XP"})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex justify-between text-xs text-gray-400",children:[(0,r.jsxs)("span",{children:[i.currentLevelXP," XP"]}),(0,r.jsxs)("span",{children:[i.nextLevelXP," XP"]})]}),(0,r.jsx)("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-gradient-to-r from-purple-500 to-pink-500 transition-all duration-500 ease-out",style:{width:`${o}%`}})}),(0,r.jsxs)("p",{className:"text-xs text-center text-gray-400",children:[o.toFixed(0),"% to Level ",i.currentLevel+1]})]})]}),(0,r.jsxs)("div",{className:"bg-gradient-to-br from-orange-950/50 to-red-950/50 rounded-xl p-6 border border-orange-500/30",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)(l.Flame,{className:`w-8 h-8 ${"at_risk"===n.streakStatus?"text-orange-500":0===n.currentStreak?"text-gray-400":"text-red-500"}`}),"at_risk"===n.streakStatus&&(0,r.jsx)("span",{className:"text-xs font-medium text-orange-300 bg-orange-500/20 px-3 py-1 rounded-full",children:"At Risk!"})]}),(0,r.jsx)("h3",{className:"text-sm font-medium text-gray-300 mb-2",children:"Practice Streak"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-2 mb-3",children:[(0,r.jsx)("span",{className:"text-3xl font-bold text-white",children:n.currentStreak}),(0,r.jsx)("span",{className:"text-sm text-gray-400",children:"days"})]}),(0,r.jsxs)("p",{className:"text-xs text-gray-400",children:["active"===n.streakStatus&&"Keep it going! Practice today to maintain your streak.","at_risk"===n.streakStatus&&"Practice now to save your streak!","broken"===n.streakStatus&&"Start a new streak by practicing today."]})]}),(0,r.jsxs)("div",{className:"bg-gradient-to-br from-green-950/50 to-emerald-950/50 rounded-xl p-6 border border-green-500/30",children:[(0,r.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,r.jsx)(m.Trophy,{className:"w-8 h-8 text-green-400"})}),(0,r.jsx)("h3",{className:"text-sm font-medium text-gray-300 mb-2",children:"Words Mastered"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-2 mb-3",children:[(0,r.jsx)("span",{className:"text-3xl font-bold text-white",children:n.wordsMastered}),(0,r.jsx)("span",{className:"text-sm text-gray-400",children:"words"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:n.wordsInProgress>0?`${n.wordsInProgress} more in progress`:"Start practicing to master words"})]}),(0,r.jsxs)("div",{className:"bg-gradient-to-br from-yellow-950/50 to-amber-950/50 rounded-xl p-6 border border-yellow-500/30",children:[(0,r.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,r.jsx)(x.Coins,{className:"w-8 h-8 text-yellow-400"})}),(0,r.jsx)("h3",{className:"text-sm font-medium text-gray-300 mb-2",children:"Pronunciation Coins"}),(0,r.jsxs)("div",{className:"flex items-baseline gap-2 mb-3",children:[(0,r.jsx)("span",{className:"text-3xl font-bold text-white",children:i.pronunciationCoins.toLocaleString()}),(0,r.jsx)("span",{className:"text-sm text-gray-400",children:"coins"})]}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:"Earn more by practicing daily"})]})]}),n.wordsDue>0&&(0,r.jsx)("div",{className:"mt-6 bg-blue-500/10 border border-blue-500/30 rounded-lg p-4",children:(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"font-medium text-white",children:["You have ",n.wordsDue," word",1===n.wordsDue?"":"s"," ready to practice!"]}),(0,r.jsx)("p",{className:"text-sm text-gray-300",children:"Practice now to earn XP and maintain your streak"})]}),(0,r.jsx)(s.default,{href:"/dashboard/practice-session?mode=quick",className:"px-6 py-3 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition-colors whitespace-nowrap",children:"Start Practice"})]})})]})})}var u=e.i(503116),g=e.i(382373),p=e.i(778917);function b({userContext:e}){let{stats:i,userState:l}=e,[n,o]=(0,t.useState)([]),[c,d]=(0,t.useState)(!0);return((0,t.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/my-words?filter=due&limit=5");if(e.ok){let r=await e.json();o(r.words||[])}}catch(e){console.error("Error fetching due words:",e)}finally{d(!1)}};i.wordsDue>0?e():d(!1)},[i.wordsDue]),(0,t.useEffect)(()=>{c||(0,a.trackWordsDueWidgetView)({wordsDue:i.wordsDue,userState:l})},[c,i.wordsDue,l]),0===i.wordsDue)?(0,r.jsx)("section",{className:"py-12 px-6 bg-gradient-to-br from-green-950/50 to-emerald-950/50",children:(0,r.jsx)("div",{className:"max-w-6xl mx-auto text-center",children:(0,r.jsxs)("div",{className:"bg-gray-800 rounded-2xl p-8 max-w-2xl mx-auto border border-green-500/30",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-green-500/10 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)(u.Clock,{className:"w-8 h-8 text-green-400"})}),(0,r.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:"All Caught Up!"}),(0,r.jsx)("p",{className:"text-gray-300 mb-6",children:"No words due right now. Great job staying on top of your practice!"}),(0,r.jsx)(s.default,{href:"/browse",className:"inline-flex items-center gap-2 px-6 py-3 bg-green-600 text-white font-semibold rounded-lg hover:bg-green-700 transition-colors",children:"Explore New Words â"})]})})}):(0,r.jsx)("section",{className:"py-12 px-6 bg-gradient-to-br from-blue-950/50 via-gray-950 to-pink-950/50",children:(0,r.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Ready to Practice"}),(0,r.jsxs)("p",{className:"text-gray-400",children:[i.wordsDue," word",1===i.wordsDue?"":"s"," due for review"]})]}),(0,r.jsxs)(s.default,{href:"/dashboard/my-words?filter=due",className:"text-blue-400 hover:text-blue-300 font-medium transition-colors flex items-center gap-1",children:["View All (",i.wordsDue,")",(0,r.jsx)(p.ExternalLink,{className:"w-4 h-4"})]})]}),c&&(0,r.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(e=>(0,r.jsxs)("div",{className:"bg-gray-800 rounded-xl p-6 border border-gray-700 animate-pulse",children:[(0,r.jsx)("div",{className:"h-6 bg-gray-700 rounded w-3/4 mb-4"}),(0,r.jsx)("div",{className:"h-4 bg-gray-700 rounded w-1/2 mb-2"}),(0,r.jsx)("div",{className:"h-4 bg-gray-700 rounded w-2/3"})]},e))}),!c&&n.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 mb-6",children:n.map((e,t)=>(0,r.jsxs)(s.default,{href:`/word/${e.slug}`,onClick:()=>{(0,a.trackWordsDueWordClick)({wordId:e.id,word:e.word,position:t})},className:"group bg-gray-800 rounded-xl p-6 border border-gray-700 hover:border-blue-500/50 hover:shadow-lg transition-all duration-200",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("span",{className:"text-xs font-medium text-blue-300 bg-blue-500/10 px-2 py-1 rounded border border-blue-500/30",children:["Review ",e.currentInterval+1,"/5"]}),(0,r.jsx)(g.Volume2,{className:"w-4 h-4 text-gray-400 group-hover:text-blue-400 transition-colors"})]}),(0,r.jsx)("h3",{className:"text-xl font-bold text-white mb-2 group-hover:text-blue-400 transition-colors",children:e.word}),e.phonetic&&(0,r.jsx)("p",{className:"text-sm text-blue-400 font-mono mb-3",children:e.phonetic}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-400",children:[(0,r.jsx)(u.Clock,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:"Due for practice"})]})]},e.id))}),(0,r.jsx)("div",{className:"text-center",children:(0,r.jsxs)(s.default,{href:"/dashboard/practice-session?mode=quick",className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-pink-500 to-pink-600 text-white font-semibold rounded-xl shadow-lg hover:shadow-xl hover:scale-105 transition-all duration-200",children:[(0,r.jsx)(g.Volume2,{className:"w-5 h-5"}),"Practice All ",i.wordsDue," Words"]})})]}),!c&&0===n.length&&i.wordsDue>0&&(0,r.jsxs)("div",{className:"bg-gray-800 rounded-xl p-8 text-center border border-gray-700",children:[(0,r.jsx)(u.Clock,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-gray-300 mb-4",children:"Unable to load your due words. Please try again."}),(0,r.jsx)(s.default,{href:"/dashboard/my-words?filter=due",className:"inline-flex items-center gap-2 px-6 py-3 bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 transition-colors",children:"View in Dashboard â"})]})]})})}var f=e.i(846932),N=e.i(555436),v=e.i(810980),y=e.i(870273),w=e.i(970065),j=e.i(647163);function k({stats:e,className:t}){let a=[{id:"practice",label:"Practice Now",description:e.wordsDue>0?`${e.wordsDue} words ready`:"Start practicing",icon:i.Play,href:"/dashboard/practice-session",variant:"primary",badge:e.wordsDue>0?e.wordsDue.toString():void 0,color:"from-primary to-primary/80"},{id:"browse",label:"Browse Words",description:"Explore 25K+ words",icon:v.BookOpen,href:"/browse",variant:"secondary",color:"from-blue-500 to-blue-600"},{id:"search",label:"Search",description:"Find any word",icon:N.Search,href:"/browse?focus=search",variant:"outline",color:"from-purple-500 to-purple-600"},{id:"progress",label:"My Progress",description:`Level ${e.currentLevel||1}`,icon:d.TrendingUp,href:"/dashboard",variant:"outline",color:"from-green-500 to-green-600"},{id:"achievements",label:"Achievements",description:"View rewards",icon:m.Trophy,href:"/dashboard/achievements",variant:"outline",color:"from-yellow-500 to-yellow-600"}
1,{id:"favorites",label:"Saved words",description:`${e.totalWords} saved`,icon:y.Star,href:"/my-words",variant:"outline",color:"from-pink-500 to-pink-600"}],l={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:24}}};return(0,r.jsx)(f.motion.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.05}}},initial:"hidden",animate:"visible",className:(0,j.cn)("w-full",t),children:(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",children:a.map(e=>(0,r.jsx)(f.motion.div,{variants:l,children:(0,r.jsx)(s.default,{href:e.href,children:(0,r.jsxs)(w.Card,{className:(0,j.cn)("relative group overflow-hidden transition-all duration-300 hover:shadow-lg cursor-pointer bg-gray-800 border-gray-700","border-2 hover:border-primary/50","primary"===e.variant&&"border-primary"),children:[(0,r.jsx)("div",{className:(0,j.cn)("absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300","bg-gradient-to-br",e.color)}),(0,r.jsxs)("div",{className:"relative p-4 flex flex-col items-center text-center gap-2",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:(0,j.cn)("p-3 rounded-full transition-transform duration-300 group-hover:scale-110","primary"===e.variant?"bg-primary text-white":"bg-gray-700 text-gray-300"),children:(0,r.jsx)(e.icon,{className:"w-5 h-5"})}),e.badge&&(0,r.jsx)(f.motion.div,{initial:{scale:0},animate:{scale:1},className:"absolute -top-1 -right-1 bg-destructive text-destructive-foreground text-xs font-bold rounded-full w-6 h-6 flex items-center justify-center",children:e.badge})]}),(0,r.jsxs)("div",{className:"space-y-0.5",children:[(0,r.jsx)("p",{className:"font-semibold text-sm text-white",children:e.label}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:e.description})]})]})]})})},e.id))})})}var E=e.i(972520),S=e.i(842009),_=e.i(87316),A=e.i(551804),P=e.i(271008),C=e.i(975),R=e.i(234566),T=e.i(991799),I=e.i(98919),O=e.i(248256),D=e.i(790597),M=e.i(167881),L=e.i(625725);let H={star:y.Star,flame:l.Flame,"book-open":v.BookOpen,book:v.BookOpen,sparkles:o.Sparkles,award:S.Award,trophy:m.Trophy,calendar:_.Calendar,"calendar-check":A.CalendarCheck,zap:P.Zap,target:n.Target,crosshair:C.Crosshair,sunrise:R.Sunrise,moon:T.Moon,shield:I.Shield,globe:O.Globe,heart:D.Heart};function V({className:e}){let[i,c]=(0,t.useState)([]),[d,x]=(0,t.useState)(!0),h=(0,t.useCallback)(e=>{let r=[],t=new Date;t.setDate(t.getDate()-7);let a=e.earned.filter(e=>new Date(e.earnedAt)>t).map(e=>({...e.achievement,earnedAt:e.earnedAt,earned:!0})).sort((e,r)=>new Date(r.earnedAt).getTime()-new Date(e.earnedAt).getTime()).slice(0,2);if(r.push(...a),r.length<4){let t=e.available.filter(e=>e.progress&&e.progress.percentage>=80).sort((e,r)=>(r.progress?.percentage||0)-(e.progress?.percentage||0)).slice(0,4-r.length);r.push(...t)}if(r.length<4){let t={legendary:4,epic:3,rare:2,common:1},a=e.earned.filter(e=>!r.find(r=>r.id===e.achievement.id)).map(e=>({...e.achievement,earnedAt:e.earnedAt,earned:!0})).sort((e,r)=>t[r.rarity]-t[e.rarity]).slice(0,4-r.length);r.push(...a)}return r.slice(0,4)},[]),u=(0,t.useCallback)(async()=>{try{let e=await fetch("/api/achievements");if(!e.ok)throw Error("Failed to fetch achievements");let r=await e.json(),t=h(r);c(t)}catch(e){console.error("Error fetching achievement highlights:",e)}finally{x(!1)}},[h]);(0,t.useEffect)(()=>{u()},[u]);let g={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:24}}};return d?(0,r.jsx)("section",{className:(0,j.cn)("py-12 px-4 sm:px-6 lg:px-8 bg-gray-950",e),children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})})})}):0===i.length?(0,r.jsx)("section",{className:(0,j.cn)("py-12 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-gray-950 to-gray-900",e),children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold tracking-tight flex items-center gap-2 text-white",children:[(0,r.jsx)(m.Trophy,{className:"w-6 h-6 text-yellow-400"}),"Achievement Highlights"]}),(0,r.jsx)("p",{className:"text-gray-400 mt-1",children:"Unlock rewards as you learn"})]}),(0,r.jsx)(w.Card,{className:"bg-gradient-to-br from-purple-950/50 via-blue-950/50 to-indigo-950/50 border-2 border-purple-500/30",children:(0,r.jsxs)(w.CardContent,{className:"p-8 text-center",children:[(0,r.jsxs)("div",{className:"relative inline-block mb-4",children:[(0,r.jsx)(m.Trophy,{className:"w-16 h-16 text-purple-400 mx-auto"}),(0,r.jsx)(o.Sparkles,{className:"w-8 h-8 absolute -top-2 -right-2 text-yellow-400 animate-pulse"})]}),(0,r.jsx)("h3",{className:"text-xl font-bold text-white mb-2",children:"Start Your Achievement Journey"}),(0,r.jsx)("p",{className:"text-gray-300 mb-6 max-w-md mx-auto",children:"Practice words, maintain streaks, and explore new content to unlock achievements and earn rewards!"}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 max-w-3xl mx-auto mb-6",children:[{icon:y.Star,label:"First Steps",desc:"Practice your first word"},{icon:l.Flame,label:"Streak Master",desc:"Maintain daily practice"},{icon:v.BookOpen,label:"Word Explorer",desc:"Learn new vocabulary"},{icon:n.Target,label:"Perfect Pronunciation",desc:"Master difficult words"}].map((e,t)=>(0,r.jsx)(f.motion.div,{initial:{opacity:0,scale:.9}
1,animate:{opacity:1,scale:1},transition:{delay:.1*t},children:(0,r.jsx)(w.Card,{className:"hover:shadow-md transition-shadow bg-gray-800 border-gray-700",children:(0,r.jsxs)(w.CardContent,{className:"p-4 text-center",children:[(0,r.jsx)("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-blue-400 to-purple-500 flex items-center justify-center mx-auto mb-2",children:(0,r.jsx)(e.icon,{className:"w-6 h-6 text-white"})}),(0,r.jsx)("p",{className:"font-semibold text-sm mb-1 text-white",children:e.label}),(0,r.jsx)("p",{className:"text-xs text-gray-400",children:e.desc})]})})},e.label))}),(0,r.jsx)(s.default,{href:"/dashboard/achievements",children:(0,r.jsxs)(M.Button,{size:"lg",className:"gap-2",children:["View All Achievements",(0,r.jsx)(E.ArrowRight,{className:"w-4 h-4"})]})})]})})]})}):(0,r.jsx)("section",{className:(0,j.cn)("py-12 px-4 sm:px-6 lg:px-8 bg-gradient-to-b from-gray-950 to-gray-900",e),children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"mb-6 flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-2xl font-bold tracking-tight flex items-center gap-2 text-white",children:[(0,r.jsx)(m.Trophy,{className:"w-6 h-6 text-yellow-400"}),"Achievement Highlights"]}),(0,r.jsx)("p",{className:"text-gray-400 mt-1",children:"Recent unlocks and progress"})]}),(0,r.jsx)(s.default,{href:"/dashboard/achievements",children:(0,r.jsxs)(M.Button,{variant:"outline",className:"gap-2",children:["View All",(0,r.jsx)(E.ArrowRight,{className:"w-4 h-4"})]})})]}),(0,r.jsx)(f.motion.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.05}}},initial:"hidden",animate:"visible",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:i.map(e=>(0,r.jsx)(f.motion.div,{variants:g,whileHover:{y:-4},transition:{type:"spring",stiffness:300,damping:24},children:(0,r.jsx)(s.default,{href:"/dashboard/achievements",onClick:()=>{(0,a.trackAchievementHighlightClick)({achievementId:e.id,achievementName:e.name,rarity:e.rarity})},className:"block h-full",children:(0,r.jsx)(L.AchievementCard,{achievement:e,icon:H[e.iconName]||y.Star})})},e.id))})]})})}var W=e.i(278716),U=e.i(387951),$=e.i(270756),G=e.i(243553),B=e.i(994179);function K({userContext:e}){let{stats:i,userState:l}=e,n=i.isNearLimit?{reason:"near_limit",title:"Running out of words for today?",subtitle:`You've used ${i.wordsViewedToday} of ${i.dailyWordLimit} free words. Upgrade for unlimited access!`,icon:$.Lock,iconBg:"bg-orange-500/10",iconColor:"text-orange-400",gradient:"from-orange-950/50 via-amber-950/50 to-yellow-950/50",borderColor:"border-orange-500/30",features:[{icon:P.Zap,text:"Unlimited words every day",iconColor:"text-orange-500"},{icon:W.Video,text:"3D avatar guides + all accents",iconColor:"text-red-500"},{icon:U.Mic,text:"2x coin earnings",iconColor:"text-purple-500"}],ctaText:"Upgrade Now",urgent:!0}:"inactive_user"===l||"at_risk_user"===l?{reason:"inactive_user",title:"Welcome back!",subtitle:"Unlock advanced features to accelerate your pronunciation mastery",icon:G.Crown,iconBg:"bg-pink-500/10",iconColor:"text-pink-400",gradient:"from-pink-950/50 via-gray-950 to-pink-950/50",borderColor:"border-pink-500/30",features:[{icon:W.Video,text:"3D avatar pronunciation guides",iconColor:"text-red-500"},{icon:U.Mic,text:"5 free daily recordings",iconColor:"text-purple-500"},{icon:d.TrendingUp,text:"2x coin boost on all activities",iconColor:"text-green-500"}],ctaText:"See Premium Features",urgent:!1}:{reason:"feature_highlight",title:"Supercharge your learning",subtitle:"Join 500+ learners mastering pronunciation with premium features",icon:o.Sparkles,iconBg:"bg-blue-500/10",iconColor:"text-blue-400",gradient:"from-blue-950/50 via-gray-950 to-pink-950/50",borderColor:"border-blue-500/30",features:[{icon:P.Zap,text:"Unlimited daily practice",iconColor:"text-amber-500"},{icon:W.Video,text:"3D avatar pronunciation guides",iconColor:"text-red-500"},{icon:U.Mic,text:"2x coins + free recordings",iconColor:"text-purple-500"}],ctaText:"Explore Premium",urgent:!1};if((0,t.useEffect)(()=>{i.isPremium||(0,a.trackPremiumUpsellBannerShown)({reason:n.reason,wordsRemaining:i.wordsRemaining,userState:l})},[i.isPremium,n.reason,i.wordsRemaining,l]),i.isPremium)return null;
1let c=n.icon;return(0,r.jsx)("section",{className:"py-8 px-4 sm:px-6 lg:px-8",children:(0,r.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,r.jsx)(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:(0,r.jsxs)(w.Card,{className:`relative overflow-hidden border-2 ${n.borderColor} shadow-lg`,children:[(0,r.jsx)("div",{className:`absolute inset-0 bg-gradient-to-r ${n.gradient}`}),(0,r.jsx)("div",{className:"relative p-6 sm:p-8",children:(0,r.jsxs)("div",{className:"flex flex-col items-center text-center max-w-3xl mx-auto",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 mb-3",children:[(0,r.jsx)("div",{className:`w-16 h-16 rounded-2xl ${n.iconBg} flex items-center justify-center shadow-sm`,children:(0,r.jsx)(c,{className:`w-8 h-8 ${n.iconColor}`})}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("h3",{className:"text-2xl sm:text-3xl font-bold text-white",children:n.title}),i.isNearLimit&&(0,r.jsxs)(B.Badge,{className:"bg-orange-500 text-white animate-pulse",children:[i.wordsRemaining," left"]})]})]}),(0,r.jsx)("p",{className:"text-gray-300 text-base sm:text-lg mb-6 max-w-2xl",children:n.subtitle}),(0,r.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-6",children:n.features.map((e,t)=>{let a=e.icon;return(0,r.jsxs)(f.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.1*t},className:"flex items-center gap-2 px-4 py-2 bg-gray-800/90 backdrop-blur rounded-full shadow-sm border border-gray-700/50",children:[(0,r.jsx)(a,{className:`w-4 h-4 ${e.iconColor}`}),(0,r.jsx)("span",{className:"text-sm font-medium text-gray-300",children:e.text})]},t)})}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,r.jsx)(s.default,{href:"/pricing",onClick:()=>{(0,a.trackPremiumUpsellBannerClick)({reason:n.reason,destination:"/pricing"})},className:"w-full sm:w-auto",children:(0,r.jsxs)(M.Button,{size:"lg",className:`px-8 py-6 text-lg font-bold shadow-lg hover:shadow-xl transition-all group w-full sm:w-auto ${n.urgent?"bg-gradient-to-r from-orange-500 to-amber-500 hover:from-orange-600 hover:to-amber-600 text-white":"bg-gradient-to-r from-pink-500 to-pink-600 hover:from-pink-600 hover:to-pink-700 text-white"}`,children:[n.ctaText,(0,r.jsx)(E.ArrowRight,{className:"ml-2 w-5 h-5 transition-transform group-hover:translate-x-1"})]})}),(0,r.jsxs)("p",{className:"text-sm text-gray-400",children:[(0,r.jsx)("span",{className:"font-semibold text-gray-300",children:"Limited time:"})," ","Lock in founder pricing at ",(0,r.jsx)("span",{className:"font-semibold text-green-400",children:"$9/month"})," ",(0,r.jsx)("span",{className:"text-gray-500 line-through",children:"$15"})]})]})]})})]})})})})}var Y=e.i(671428);function Z({userContext:e}){let[i,l]=(0,t.useState)([]),[c,m]=(0,t.useState)(!0),[x,h]=(0,t.useState)(null);(0,t.useEffect)(()=>{(async()=>{try{m(!0),h(null);let r=await fetch("/api/recommendations/personalized?limit=4&mode=fast");if(!r.ok)throw Error("Failed to fetch recommendations");let t=await r.json();l(t.recommendations||[]),t.recommendations&&t.recommendations.length>0&&(0,a.trackPersonalizedRecommendationShown)({recommendationType:t.strategy||"personalized",wordCount:t.recommendations.length,basedOn:[e.stats.totalWords>0?"history":"cold_start","difficulty"]})}catch(e){console.error("Error fetching recommendations:",e),h("Unable to load recommendations")}finally{m(!1)}})()},[e.stats.totalWords]);let u=(0,t.useCallback)((e,r)=>{(0,a.trackPersonalizedRecommendationClick)({wordId:e.id,word:e.word,recommendationType:"personalized",position:r})},[]),g={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:24}}};return c?(0,r.jsx)("section",{className:"py-12 px-4 sm:px-6 lg:px-8 bg-gray-950",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)(Y.Skeleton,{className:"h-8 w-64 bg-gray-800"}),(0,r.jsx)(Y.Skeleton,{className:"h-4 w-96 mt-2 bg-gray-800"})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[1,2,3,4].map(e=>(0,r.jsx)(w.Card,{className:"p-4 bg-gray-800 border-gray-700",children:(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)(Y.Skeleton,{className:"h-6 w-32 bg-gray-700"}),(0,r.jsx)(Y.Skeleton,{className:"h-4 w-full bg-gray-700"}),(0,r.jsx)(Y.Skeleton,{className:"h-4 w-3/4 bg-gray-700"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(Y.Skeleton,{className:"h-6 w-20 bg-gray-700"}),(0,r.jsx)(Y.Skeleton,{className:"h-6 w-16 bg-gray-700"})]})]})},e))})]})}):x||0===i.length?null:(0,r.jsx)("section",{className:"py-12 px-4 sm:px-6 lg:px-8 bg-gray-950",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"mb-8",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-full bg-blue-500/10 flex items-center justify-center",children:(0,r.jsx)(o.Sparkles,{className:"w-5 h-5 text-blue-400"})}),(0,r.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-white",children:"Recommended for You"})]}),(0,r.jsx)("p",{className:"text-gray-400",children:e.stats.totalWords>0?"Based on your learning progress and goals":"Hand-picked words to get you started"})]}),(0,r.jsx)(f.motion.div,{variants:{hidden:{opacity:0}
1,visible:{opacity:1,transition:{staggerChildren:.08}}},initial:"hidden",animate:"visible",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:i.map((e,t)=>{var a,i;let l,c=(l=[n.Target,d.TrendingUp,P.Zap,o.Sparkles])[t%l.length];return(0,r.jsx)(f.motion.div,{variants:g,children:(0,r.jsx)(s.default,{href:`/word/${e.slug}`,onClick:()=>u(e,t),children:(0,r.jsxs)(w.Card,{className:"group relative h-full p-4 hover:shadow-lg transition-all duration-300 cursor-pointer border-2 bg-gray-800 border-gray-700 hover:border-blue-500/30",children:[(0,r.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-5 bg-gradient-to-br from-blue-500 to-purple-500 rounded-lg transition-opacity"}),(0,r.jsxs)("div",{className:"relative space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h3",{className:"text-xl font-bold text-white group-hover:text-blue-400 transition-colors",children:e.word}),e.partOfSpeech&&(0,r.jsx)("p",{className:"text-xs text-gray-400 uppercase tracking-wide mt-0.5",children:e.partOfSpeech})]}),(0,r.jsx)("div",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center",children:(0,r.jsx)(c,{className:"w-4 h-4 text-blue-400"})})]}),e.definition&&(0,r.jsx)("p",{className:"text-sm text-gray-300 line-clamp-2",children:e.definition}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,r.jsx)(B.Badge,{variant:"outline",className:(a=e.difficultyScore)<350?"bg-green-500/10 text-green-700 border-green-500/20":a<650?"bg-blue-500/10 text-blue-700 border-blue-500/20":"bg-purple-500/10 text-purple-700 border-purple-500/20",children:(i=e.difficultyScore)<350?"Beginner":i<650?"Intermediate":"Advanced"}),e.hasVideo&&(0,r.jsx)(B.Badge,{variant:"outline",className:"text-xs",children:"Video"})]}),(0,r.jsx)("div",{className:"pt-2 border-t border-gray-700/50",children:(0,r.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-400 group-hover:text-blue-400 transition-colors",children:[(0,r.jsx)("span",{children:"Learn this word"}),(0,r.jsx)(p.ExternalLink,{className:"w-3 h-3"})]})})]})]})})},e.id)})}),(0,r.jsx)("div",{className:"mt-8 text-center",children:(0,r.jsx)(s.default,{href:"/browse",children:(0,r.jsxs)(M.Button,{variant:"outline",size:"lg",className:"group",children:["Explore More Words",(0,r.jsx)(E.ArrowRight,{className:"ml-2 w-4 h-4 transition-transform group-hover:translate-x-1"})]})})})]})})}function z({userContext:e}){return(0,t.useEffect)(()=>{(0,a.trackHomepageLoad)({userContext:e})},[e]),(0,r.jsxs)("div",{className:"min-h-screen bg-gray-900",children:[(0,r.jsx)(c,{userContext:e}),(0,r.jsx)(K,{userContext:e}),e.stats.wordsDue>0&&(0,r.jsx)(b,{userContext:e}),(0,r.jsx)("section",{className:"py-12 px-4 sm:px-6 lg:px-8 bg-gray-900",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-white",children:"Quick Actions"}),(0,r.jsx)("p",{className:"text-gray-400 mt-1",children:"Jump right into learning"})]}),(0,r.jsx)(k,{stats:e.stats})]})}),(0,r.jsx)(Z,{userContext:e}),(0,r.jsx)(V,{}),(0,r.jsx)(h,{userContext:e,gamificationData:void 0})]})}e.s(["default",()=>z],932396)}]);
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.