PageSourceSearch

https://adeebco-krcgguzr.manus.space/assets/EnglishGames-DAd1OXg8.js

js adeebco-krcgguzr.manus.space collected 2026-10-03 04:59:45 UTC 13,881 bytes, 11 lines download raw bytes

1import{c as u,r as l,a as A,R as j,T as G,S as E,j as e,L as I,A as B,C as $,f as L}from"./index-C9BAOTn9.js";import{P as h}from"./puzzle-C-sVajGP.js";import{H as _}from"./headphones-D3ROcCgu.js";import{I as q}from"./image-CEIHpzmT.js";import{M as R}from"./mic-DMtsll2B.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const p=u("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const f=u("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),z=[{id:"سهل",label:"سهل",tone:"#72d7ca"},{id:"متوسط",label:"متوسط",tone:"#f3a243"},{id:"صعب",label:"صعب",tone:"#f49b9b"}],b=["apple","book","cloud","dream","eagle","flower","garden","house","island","journey","kind","learn"],o=[["مطابقة الكلمات","Word Match",h,"اختر معنى كلمة apple",["تفاحة","كتاب","سيارة"],"تفاحة","#72d7ca"],["البطاقات السريعة","Flash Cards",A,"ما معنى كلمة happy؟",["سعيد","حزين","سريع"],"سعيد","#9f9cff"],["سباق التهجئة","Spelling Race",f,"اختر التهجئة الصحيحة لكلمة مدرسة",["School","Sckool","Skool"],"School","#f3a243"],["استمع واختر","Listen & Choose",_,"استمع ثم اختر الكلمة الصحيحة: book",["book","back","bike"],"book","#78a9ff"],["بناء الجملة","Sentence Builder",h,"أكمل: I ___ a student.",["am","is","are"],"am","#f49b9b"],["إصلاح القواعد","Grammar Fix",p,"اختر الجملة الصحيحة",["She likes tea.","She like tea.","She liking tea."],"She likes tea.","#d4b4f5"],["مفردات الصور","Picture Vocabulary",q,"ما اسم هذا الشيء؟ 🐱",["Cat","Dog","Bird"],"Cat","#7db8ff"],["أزواج الذاكرة","Memory Pairs",j,"طابق الكلمة مع ترجمتها: water",["ماء","نار","هواء"],"ماء","#72d7ca"],["تدريب النطق","Pronunciation",R,"تدرّب على نطق كلمة: three",["ابدأ التسجيل","شاهد المثال","تخطي"],"شاهد المثال","#f3a243"],["اختبار السرعة","Quiz Sprint",G,"اختر التحية المناسبة في الصباح",["Good morning","Good night","Goodbye"],"Good morning","#9f9cff"],["اختيار الاسم الصحيح","Name It Right",E,"اختر الاسم الصحيح للصورة: 🐶",["Dog","Cat","Fish"],"Dog","#72d7ca"],["صيد الكلمات","Word Hunt",f,"اعثر على الكلمة التي تبدأ بحرف B",["Book","Apple","Orange"],"Book","#f3a243"],["تركيب الكلمات","Word Builder",p,"كوّن جملة صحيحة من الكلمات",["I like books.","Books like I.","Like I books."],"I like books.","#9f9cff"]];function H(){const[d,N]=l.useState(0),[g,m]=l.useState(0),[c,x]=l.useState(1),[r,w]=l.useState("سهل"),[t,n]=l.useState(null),a=o[d],k=a[2],y=l.useMemo(()=>c===1?a[3]:`Stage ${c}: Choose the next English word — ${b[(c-2)%b.length]}`,[a,c]),v=s=>{t||(n(s),s===a[5]&&(m(i=>i+1),localStorage.setItem("adeeb-english-score",String(g+1))))},S=()=>{x(s=>s+1),n(null)},C=s=>{N(s),n(null),x(1)};return e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",dir:"rtl",className:"min-h-screen bg-[#070a12] px-5 py-7 text-white sm:px-10 sm:py-10",children:[e.jsxs("header",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mx-auto flex max-w-6xl items-center justify-between",children:[e.jsxs(I,{"data-loc":"client/src/pages/EnglishGames.tsx:19",href:"/languages",className:"inline-flex items-center gap-2 text-sm text-slate-400 transition hover:text-white",children:[e.jsx(B,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-4 w-4"})," العودة إلى اللغات"]}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"flex items-center gap-3",children:[e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"grid h-10 w-10 place-items-center rounded-xl bg-[#f3a243] text-black font-display font-black",children:"أ"}),e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"font-display font-bold",children:"ألعاب اللغة الإنجليزية"})]})]}),e.jsxs("main",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mx-auto mt-12 max-w-6xl",children:[e.jsxs("section",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"relative overflow-hidden rounded-[2rem] border border-[#9f9cff]/25 bg-gradient-to-br from-[#252252] via-[#171936] to-[#0e1422] p-7 sm:p-10",children:[e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"absolute -left-16 -top-16 h-48 w-48 rounded-full bg-[#9f9cff]/15 blur-3xl"}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"relative flex flex-col justify-between gap-6 md:flex-row md:items-end",children:[e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",children:[e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-sm font-bold text-[#c9c8ff]",children:"English Learning Arcade"}),e.jsx("h1",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-3 font-display text-3xl font-extrabold sm:text-5xl",children:"تعلّم الإنجليزية باللعب"}),e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-4 max-w-2xl text-base leading-8 text-slate-300",children:"اختر لعبة ومستوى مناسباً لك، ثم واصل اللعب في مراحل لا نهائية."})]}),e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",role:"img","aria-label":"مساعد ألعاب اللغة الإنجليزية",className:"hidden h-28 w-28 shrink-0 place-items-center rounded-[2rem] border border-white/10 bg-white/[0.06] text-[#f3a243] shadow-[0_20px_60px_rgba(159,156,255,0.18)] md:grid",children:e.jsx(E,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-14 w-14","aria-hidden":"true"})}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"flex items-center gap-3 rounded-2xl border border-white/10 bg-black/20 px-5 py-4",children:[e.jsx(G,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-6 w-6 text-[#f3a243]"}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",children:[e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-xs text-slate-500",children:"نقاطك"}),e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"font-display text-2xl font-extrabold text-[#f3a243]",children:g})]})]})]})]}),e.jsx("section",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-6 rounded-2xl border border-white/10 bg-[#0e1422] p-4",children:e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",children:[e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-xs font-bold text-[#9f9cff]",children:"مستوى الصعوبة"}),e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-1 text-sm text-slate-400",children:"يتغير التحدي مع اختيارك"})]}),e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"flex gap-2",children:z.map(s=>e.jsx("button",{"data-loc":"client/src/pages/EnglishGames.tsx:19",type:"button",onClick:()=>
11{w(s.id),n(null)},className:`rounded-xl px-4 py-2 text-sm font-bold transition ${r===s.id?"text-[#101a2c]":"text-slate-400 hover:bg-white/[0.06]"}`,style:r===s.id?{backgroundColor:s.tone}:void 0,children:s.label},s.id))})]})}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-8 grid gap-6 lg:grid-cols-[1fr_1.4fr]",children:[e.jsxs("section",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"rounded-[1.75rem] border border-white/10 bg-[#0e1422] p-5 sm:p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",children:[e.jsxs("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-xs font-bold text-[#f3a243]",children:["اللعبة ",d+1," من ",o.length," • المرحلة اللانهائية ",c]}),e.jsx("h2",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-1 font-display text-2xl font-extrabold",children:a[0]})]}),e.jsx("span",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"rounded-full bg-white/[0.06] px-3 py-1 text-xs text-slate-400",children:r})]}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-8 rounded-2xl border border-white/10 bg-[#070a12] p-6 text-center",children:[e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mx-auto grid h-16 w-16 place-items-center rounded-2xl",style:{backgroundColor:`${a[6]}18`,color:a[6]},children:e.jsx(k,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-8 w-8"})}),e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-6 text-lg font-bold text-slate-200",children:y}),e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-6 grid gap-3",children:a[4].map(s=>e.jsx("button",{"data-loc":"client/src/pages/EnglishGames.tsx:19",type:"button",onClick:()=>v(s),className:`rounded-xl border px-4 py-3 text-sm font-bold transition ${t===s?s===a[5]?"border-emerald-300/50 bg-emerald-300/15 text-emerald-200":"border-rose-300/50 bg-rose-300/15 text-rose-200":"border-white/10 bg-white/[0.04] text-slate-300 hover:border-white/25 hover:bg-white/[0.08]"}`,children:s},s))}),t&&e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:`mt-5 flex items-center justify-center gap-2 text-sm font-bold ${t===a[5]?"text-emerald-300":"text-rose-300"}`,children:[e.jsx($,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-4 w-4"}),t===a[5]?"إجابة صحيحة! انتقل للمرحلة التالية.":`الإجابة الصحيحة: ${a[5]}`]})]}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-5 flex items-center justify-between",children:[e.jsxs("button",{"data-loc":"client/src/pages/EnglishGames.tsx:19",type:"button",onClick:()=>{n(null),m(0),x(1)},className:"inline-flex items-center gap-2 text-xs text-slate-500 hover:text-white",children:[e.jsx(j,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-4 w-4"})," إعادة اللعبة"]}),t===a[5]?e.jsx("button",{"data-loc":"client/src/pages/EnglishGames.tsx:19",type:"button",onClick:S,className:"rounded-xl bg-[#f3a243] px-4 py-2.5 text-sm font-bold text-[#101a2c] transition hover:bg-[#ffc16f]",children:"مرحلة جديدة ←"}):e.jsx("span",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-xs text-slate-500",children:"أجب لتفتح المرحلة التالية"})]})]}),e.jsxs("section",{"data-loc":"client/src/pages/EnglishGames.tsx:19",children:[e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mb-4 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",children:[e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-sm font-bold text-[#9f9cff]",children:"اختر لعبتك"}),e.jsxs("h2",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-1 font-display text-xl font-extrabold",children:[o.length," ألعاب تعليمية"]})]}),e.jsxs("span",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"text-xs text-slate-500",children:[r," • مراحل لا نهائية"]})]}),e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"grid gap-3 sm:grid-cols-2",children:o.map((s,i)=>{const M=s[2];return e.jsxs("button",{"data-loc":"client/src/pages/EnglishGames.tsx:19",type:"button",onClick:()=>C(i),className:`group flex items-center gap-3 rounded-2xl border p-4 text-right transition hover:-translate-y-0.5 ${d===i?"border-[#9f9cff]/60 bg-[#9f9cff]/10":"border-white/10 bg-[#0e1422] hover:border-white/25"}`,children:[e.jsx("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"grid h-11 w-11 shrink-0 place-items-center rounded-xl",style:{backgroundColor:`${s[6]}18`,color:s[6]},children:e.jsx(M,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"h-5 w-5"})}),e.jsxs("div",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"min-w-0",children:[e.jsxs("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"truncate font-bold text-white",children:[i+1,". ",s[0]]}),e.jsx("p",{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mt-1 text-xs text-slate-500",children:s[1]})]}),e.jsx(L,{"data-loc":"client/src/pages/EnglishGames.tsx:19",className:"mr-auto h-4 w-4 text-slate-600 transition group-hover:text-slate-300"})]},s[1])})})]})]})]})]})}export{H 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.