1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/AstroDefenderMode-DGk6UlGl.js","assets/js/react-vendor-BaX8wFxW.js","assets/js/index-CLYH3Hla.js","assets/js/data-vendor-B9G6AmzB.js","assets/js/charts-vendor-BEN4kyo5.js","assets/js/motion-vendor-C9lJIqxK.js","assets/js/icons-hi2-zdK1GiMw.js","assets/js/icons-other-B4wTEEQh.js","assets/index-Dkw0JwMr.css","assets/js/studyCardUtils-btbyyKFO.js","assets/js/useGameLoop-DnXAMUDM.js","assets/js/DungeonQuizMode-4Fsu5gh3.js","assets/DungeonQuizMode-Dotwu_n_.css","assets/js/WordNinjaMode-D_wyDWdQ.js","assets/js/StudyContext-C7-fNhAS.js","assets/WordNinjaMode-MvCB_tJt.css","assets/js/StarCatcherMode-CJn6GbH3.js","assets/js/AnimalRescueMode-Do5PvbFV.js","assets/js/PenaltyMode-k08yBwhT.js","assets/js/PixelPetSprite-nDiBnwSv.js","assets/PenaltyMode-B_3Z6vSx.css","assets/js/HeroRushMode-tO9JVuT_.js","assets/js/useProStatus-B2wkFa91.js","assets/js/billingService-Boi-1Fyr.js","assets/js/MemoryRoomMode-D3aKkv-z.js"])))=>i.map(i=>d[i]); 2import{u as R,t as z,$ as u,Z as B,ad as O,_ as l}from"./index-CLYH3Hla.js";import{k as W,r as a,j as e}from"./react-vendor-BaX8wFxW.js";import{H as D,am as P,F as V,G as I}from"./icons-hi2-zdK1GiMw.js";import{u as L}from"./StudyContext-C7-fNhAS.js";import{i as F,b as $}from"./studyModes-CwmJDFy9.js";import"./data-vendor-B9G6AmzB.js";import"./charts-vendor-BEN4kyo5.js";import"./motion-vendor-C9lJIqxK.js";import"./icons-other-B4wTEEQh.js";const H=a.lazy(()=>l(()=>import("./AstroDefenderMode-DGk6UlGl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),G=a.lazy(()=>l(()=>import("./DungeonQuizMode-4Fsu5gh3.js"),__vite__mapDeps([11,1,10,2,3,4,5,6,7,8,9,12]))),q=a.lazy(()=>l(()=>import("./WordNinjaMode-D_wyDWdQ.js"),__vite__mapDeps([13,1,10,2,3,4,5,6,7,8,9,14,15]))),J=a.lazy(()=>l(()=>import("./StarCatcherMode-CJn6GbH3.js"),__vite__mapDeps([16,2,1,3,4,5,6,7,8,9]))),X=a.lazy(()=>l(()=>import("./AnimalRescueMode-Do5PvbFV.js"),__vite__mapDeps([17,2,1,3,4,5,6,7,8,9]))),Q=a.lazy(()=>l(()=>import("./PenaltyMode-k08yBwhT.js"),__vite__mapDeps([18,1,7,2,3,4,5,6,8,19,9,14,20]))),Z=a.lazy(()=>l(()=>import("./HeroRushMode-tO9JVuT_.js"),__vite__mapDeps([21,1,6,7,2,3,4,5,8,22,23,19,9]))),K=a.lazy(()=>l(()=>import("./MemoryRoomMode-D3aKkv-z.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8]))),le=()=>{const{t:o}=R(),{mode:t}=W(),v=t==="penalty",x=t==="hero_rush",y=t==="memory_room",s=t==="dungeon",j=t==="ninja",m=x,n=v||x||y,{activeCards:r,setIsOptionsModalOpen:C,setStudyMode:h,handleArcadeCardCorrect:c,handleArcadeCardWrong:d,requestWordNinjaSessionStart:k}=L(),{settings:g,updateGameSetting:b}=z();a.useEffect(()=>{if(t&&F(t)){h("flashcard"),u();return}!t||$(t)||(h("flashcard"),u())},[t,h]);const p=()=>{window.setTimeout(()=>{B()},0)},N=()=>{if(window.ReactNativeWebView){window.ReactNativeWebView.postMessage(JSON.stringify({type:"CLOSE_GAME"}));return}h("flashcard"),u(),p()},i=()=>{if(window.ReactNativeWebView){window.ReactNativeWebView.postMessage(JSON.stringify({type:"CLOSE_GAME"}));return}h("flashcard"),u()},E=g.games.global.bgmEnabled===!1&&g.games.global.sfxEnabled===!1,M=()=>{const w=g.games.global.bgmEnabled!==!1||g.games.global.sfxEnabled!==!1;b("global","bgmEnabled",!w),b("global","sfxEnabled",!w),w?(p(),window.setTimeout(()=>O(),80)):(u(),p())},T=n?"h-10 sm:h-11 px-3 sm:px-5 flex items-center gap-1.5 sm:gap-2 bg-slate-950/90 hover:bg-slate-800 text-white rounded-xl transition-all font-bold text-xs sm:text-sm shadow-lg ring-1 ring-white/25 cursor-pointer active:scale-95 whitespace-nowrap":"h-10 sm:h-12 px-3 sm:px-6 flex items-center gap-1.5 sm:gap-2 bg-white/10 hover:bg-white/20 text-white rounded-xl backdrop-blur-md transition-all font-bold text-xs sm:text-sm shadow-lg ring-1 ring-white/20 cursor-pointer active:scale-95 whitespace-nowrap",S=n?"h-10 sm:h-11 px-3 sm:px-4 flex items-center gap-1.5 sm:gap-2 bg-slate-950/90 hover:bg-slate-800 text-white rounded-xl transition-all font-bold text-xs sm:text-xs shadow-lg ring-1 ring-white/25 cursor-pointer active:scale-95 whitespace-nowrap":"h-10 sm:h-12 px-3 sm:px-4 flex items-center gap-1.5 sm:gap-2 bg-white/10 hover:bg-white/20 text-white rounded-xl backdrop-blur-md transition-all font-bold text-xs sm:text-xs shadow-lg ring-1 ring-white/20 cursor-pointer active:scale-95 whitespace-nowrap",A=n?"w-10 h-10 sm:w-11 sm:h-11 flex items-center justify-center bg-slate-950/90 hover:bg-slate-800 text-white rounded-xl transition-all shadow-lg ring-1 ring-white/25 cursor-pointer active:scale-95 shrink-0":"w-10 h-10 sm:w-12 sm:h-12 flex items-center justify-center bg-white/10 hover:bg-white/20 text-white rounded-xl backdrop-blur-md transition-all shadow-lg ring-1 ring-white/20 cursor-pointer active:scale-95 shrink-0",f=n?"w-9 h-9 sm:w-10 sm:h-10 flex items-center justify-center bg-slate-950/90 hover:bg-slate-800 text-white rounded-xl transition-all shadow-lg ring-1 ring-white/25 cursor-pointer active:scale-95 shrink-0":"w-9 h-9 sm:w-10 sm:h-10 flex items-center justify-center bg-white/10 hover:bg-white/20 text-white rounded-xl backdrop-blur-md transition-all shadow-lg ring-1 ring-white/20 cursor-pointer active:scale-95 shrink-0",_="h-10 w-10 sm:h-11 sm:w-11 xl:h-10 xl:w-auto xl:min-w-[8rem] xl:px-3 flex items-center justify-center xl:justify-start gap-0 xl:gap-2.5 bg-slate-950/90 hover:bg-slate-800 text-white rounded-xl transition-all font-bold text-xs shadow-lg ring-1 ring-white/25 cursor-pointer active:scale-95 whitespace-nowrap";return e.jsxs("div",{className:"game-page-shell fixed inset-0 z-[999] bg-slate-950 flex flex-col items-stretch justify-start overflow-hidden animate-in zoom-in-95",style:{width:"100vw",height:"100dvh",margin:0,padding:0},children:[e.jsx("div",{className:`game-page-toolbar ${n?"penalty-toolbar":""} ${j?"ninja-toolbar":""} ${s?"dungeon-toolbar":""} absolute z-[1000] ${n?"top-[calc(env(safe-area-inset-top)+0.5rem)] left-2 right-auto sm:left-3":s?"top-[calc(env(safe-area-inset-top)+0.5rem)] right-2 left-auto sm:right-4":"top-[calc(env(safe-area-inset-top)+0.5rem)] left-2 right-2 sm:top-[calc(env(safe-area-inset-top)+1.5rem)] sm:left-6 sm:right-auto"}`,children:e.jsxs("div",{className:`flex items-center gap-2 sm:gap-3 rounded-2xl ${n?"penalty-toolbar-inner":""} ${s?"dungeon-toolbar-inner flex-row items-center gap-1.5 p-1.5 bg-slate-950/75 ring-1 ring-white/15 shadow-[0_12px_28px_rgba(15,23,42,0.28)]":""} ${n?"p-1.5 bg-slate-900/70 ring-1 ring-white/15 shadow-[0_12px_28px_rgba(15,23,42,0.28)]":s?"":"p-1.5 sm:p-0 bg-slate-900/35 sm:bg-transparent backdrop-blur-md sm:backdrop-blur-0"}`,children:[e.jsxs("button",{onClick:N,className:s?_:m?f:T,title:o("study.game_close"),"aria-label":o("study.game_close"),children:[e.jsx(D,{size:18,className:"sm:w-5 sm:h-5"}),!m&&e.jsx("span",{className:"hidden xl:inline",children:o("study.game_close")})]}),e.jsxs("button",{onClick:()=>{C(!0),p()},className:s?_:m?f:S,title:o("study.game_settings"),"aria-label":o("study.game_settings"),children:[e.jsx(P,{size:16,className:"sm:w-[18px] sm:h-[18px]"}),!m&&e.jsx("span",{className:"hidden xl:inline",children:o("study.game_settings")})]}),e.jsxs("button",{title:o("study.game_sound_toggle"),onClick:M,className:s?"h-10 w-10 sm:h-11 sm:w-11 xl:h-10 xl:w-auto xl:min-w-[8rem] xl:px-3 flex items-center justify-center xl:justify-start gap-0 xl:gap-2.5 bg-slate-950/90 hover:bg-slate-800 text-white rounded-xl transition-all font-bold text-xs shadow-lg ring-1 ring-white/25 cursor-pointer active:scale-95 whitespace-nowrap":m?f:A,"aria-label":o("study.game_sound_toggle"),children:[E?e.jsx(V,{size:20,className:"sm:w-5 sm:h-5"}):e.jsx(I,{size:20,className:"sm:w-5 sm:h-5"}),s&&e.jsx("span",{className:"hidden xl:inline",children:o("study.game_sound")})]})]})}),e.jsx("div",{className:`game-page-content w-full min-h-0 flex-1 flex flex-col items-center justify-center relative overflow-hidden ${s?"dungeon-game-page":""} ${x?"p-0 pt-[calc(env(safe-area-inset-top)+3.25rem)] sm:pt-[calc(env(safe-area-inset-top)+3.7
25rem)]":s?"p-0 pt-[calc(env(safe-area-inset-top)+0.5rem)] pb-[calc(env(safe-area-inset-bottom)+0.5rem)]":n?"p-0":"p-2 sm:p-4 md:p-8 pt-[calc(env(safe-area-inset-top)+4.25rem)] sm:pt-[calc(env(safe-area-inset-top)+5.5rem)] md:pt-[calc(env(safe-area-inset-top)+5rem)] pb-[calc(env(safe-area-inset-bottom)+0.5rem)]"}`,children:e.jsxs(a.Suspense,{fallback:null,children:[t==="astro"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(H,{activeCards:r,onBackToFlashcard:i,onCardCorrect:c,onCardWrong:d})}),t==="dungeon"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(G,{activeCards:r,onBackToFlashcard:i,onCardCorrect:c,onCardWrong:d})}),t==="ninja"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(q,{activeCards:r,onBackToFlashcard:i,onCardCorrect:c,onCardWrong:d,onRequestStartSession:k})}),t==="star"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(J,{activeCards:r,onBackToFlashcard:i})}),t==="rescue"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(X,{activeCards:r,onBackToFlashcard:i})}),t==="penalty"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(Q,{activeCards:r,onBackToFlashcard:i,onCardCorrect:c,onCardWrong:d})}),t==="hero_rush"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(Z,{activeCards:r,onBackToFlashcard:i,onCardCorrect:c,onCardWrong:d})}),t==="memory_room"&&e.jsx("div",{className:"w-full h-full min-h-0 flex justify-center items-center",children:e.jsx(K,{activeCards:r,onBackToFlashcard:i,onCardCorrect:c,onCardWrong:d})})]})})]})};export{le 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.