1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],11241)},23482,e=>{"use strict";let t=(0,e.i(56420).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",0,t],23482)},91323,e=>{"use strict";let t=(0,e.i(56420).default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["BadgeCheck",0,t],91323)},96639,e=>{"use strict";let t=(0,e.i(56420).default)("file-check-corner",[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]]);e.s(["FileCheck2",0,t],96639)},90454,e=>{"use strict";var t=e.i(43476),s=e.i(22016),a=e.i(18566),r=e.i(71645),l=e.i(46932),i=e.i(88653),d=e.i(42580),n=e.i(86909),x=e.i(61238),c=e.i(99847),o=e.i(11241),m=e.i(91323),h=e.i(56423),u=e.i(96639),b=e.i(26091),g=e.i(23482),p=e.i(76248),f=e.i(32781),k=e.i(66595),E=e.i(28623);function j({active:e,onClick:s,label:a,count:r}){return 0===r?null:(0,t.jsxs)("button",{onClick:s,className:`rounded-2xl px-5 py-2.5 text-sm font-black transition ${e?"bg-[#0E7A5E] text-white shadow-sm dark:bg-[#6EE7C6] dark:text-[#061A16]":"bg-white text-[#27443D] border border-[#DDEEE8] hover:bg-[#F2FBF7] dark:bg-white/5 dark:text-[#D9EFE9] dark:border-white/5 dark:hover:bg-white/10"}`,children:[a," ",void 0!==r&&(0,t.jsxs)("span",{className:"ml-1 text-xs opacity-75",children:["(",r,")"]})]})}function y({question:e}){return(0,t.jsxs)("div",{className:"rounded-[24px] border border-[#DDEEE8] bg-white p-5 shadow-sm hover:shadow-md transition dark:border-white/10 dark:bg-[#0B241F]/90",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"rounded-full bg-[#EAF7F2] px-3 py-1 text-xs font-black text-[#0E7A5E] dark:bg-[#0E7A5E]/20 dark:text-[#6EE7C6]",children:"mcq"===e.type?"Ø§Ø®ØªÙØ§Ø± Ù
Ù Ù
تعدد":"true_false"===e.type?"ØµØ / خطأ":"سؤا٠Ù
ÙØ§ÙÙ"}),(0,t.jsx)("span",{className:`rounded-full px-3 py-1 text-xs font-black ${"easy"===e.difficulty?"bg-green-50 text-green-700 dark:bg-green-950/20 dark:text-green-400":"hard"===e.difficulty?"bg-red-50 text-red-700 dark:bg-red-950/20 dark:text-red-400":"bg-yellow-50 text-yellow-700 dark:bg-yellow-950/20 dark:text-yellow-400"}`,children:"easy"===e.difficulty?"سÙÙ":"hard"===e.difficulty?"صعب":"Ù
ØªÙØ³Ø·"})]}),(0,t.jsx)("h3",{className:"mt-4 text-base font-black text-[#075244] dark:text-white leading-relaxed",children:e.question_text}),e.options&&Array.isArray(e.options)&&(0,t.jsx)("div",{className:"mt-4 space-y-2",children:e.options.map((s,a)=>{let r=s===e.correct_answer;return(0,t.jsxs)("div",{className:`rounded-xl border p-2.5 text-xs font-bold transition ${r?"border-green-300 bg-green-50/50 text-green-800 dark:border-green-800/40 dark:bg-green-950/20 dark:text-green-300":"border-[#E7F2EE] bg-[#FDFDFD] text-[#5F746E] dark:border-white/5 dark:bg-white/5 dark:text-[#CBE3DD]"}`,children:[s," ",r&&(0,t.jsx)("span",{className:"text-[10px] text-green-600 dark:text-green-400 font-black",children:"(Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©)"})]},a)})}),(!e.options||!Array.isArray(e.options))&&e.correct_answer&&(0,t.jsxs)("div",{className:"mt-4 rounded-xl border border-green-200 bg-green-50/20 p-3 dark:border-green-900/20 dark:bg-green-950/10",children:[(0,t.jsx)("p",{className:"text-xs font-bold text-green-700 dark:text-green-400",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© اÙÙÙ
ÙØ°Ø¬ÙØ©:"}),(0,t.jsx)("p",{className:"mt-1 text-sm font-black text-green-900 dark:text-green-300",children:e.correct_answer})]})]})}function N({resource:e}){return(0,t.jsxs)("div",{className:"rounded-[24px] border border-[#DDEEE8] bg-white p-5 shadow-sm hover:shadow-md transition dark:border-white/10 dark:bg-[#0B241F]/90 flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"rounded-full bg-[#FFF7E3] px-3 py-1 text-xs font-black text-[#A66A05] dark:bg-[#E2AD3B]/10 dark:text-[#FFD56B]",children:"assignment"===e.type?"ÙØ§Ø¬Ø¨ Ù
ÙØ²ÙÙ":"homework"===e.type?"ÙØ±ÙØ© عÙ
Ù":"enrichment"===e.type?"إثراء":"exam"===e.type?"اختبار":"ÙØ§Ùب درس"}),e.is_shared&&(0,t.jsx)("span",{className:"rounded-full bg-blue-50 px-3 py-1 text-xs font-black text-blue-700 dark:bg-blue-950/20 dark:text-blue-400",children:"Ù
شار٠Ù٠اÙÙ
جتÙ
ع"})]}),(0,t.jsx)("h3",{className:"mt-4 text-base font-black text-[#075244] dark:text-white leading-relaxed",children:e.title}),(0,t.jsx)("div",{className:"mt-4 flex flex-wrap gap-x-4 gap-y-1 text-xs font-bold text-[#5F746E] dark:text-[#CBE3DD]",children:e.grade_level&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(g.GraduationCap,{size:14,className:"text-[#0E7A5E]"}),e.grade_level]})})]}
1),(0,t.jsxs)("div",{className:"mt-5 pt-3 border-t border-[#E7F2EE] dark:border-white/5 flex items-center justify-between",children:[(0,t.jsxs)("span",{className:"text-[11px] font-bold text-[#7A8C88] dark:text-[#AFC8C0]",children:["Ù
رات Ø§ÙØ§Ø³ØªØ®Ø¯Ø§Ù
: ",e.usage_count]}),(0,t.jsxs)(s.default,{href:"/library",className:"inline-flex items-center gap-1 text-xs font-black text-[#0E7A5E] hover:underline dark:text-[#6EE7C6]",children:["عرض Ù٠اÙÙ
ÙØªØ¨Ø©",(0,t.jsx)(o.ArrowLeft,{size:12})]})]})]})}function w({exam:e}){return(0,t.jsxs)("div",{className:"rounded-[24px] border border-[#DDEEE8] bg-white p-5 shadow-sm hover:shadow-md transition dark:border-white/10 dark:bg-[#0B241F]/90 flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:`rounded-full px-3 py-1 text-xs font-black ${"published"===e.status?"bg-green-50 text-green-700 dark:bg-green-950/20 dark:text-green-400":"bg-gray-100 text-gray-700 dark:bg-white/5 dark:text-gray-400"}`,children:"published"===e.status?"Ù
ÙØ´Ùر":"Ù
Ø³ÙØ¯Ø©"}),(0,t.jsxs)("span",{className:"text-xs font-black text-[#0E7A5E] dark:text-[#6EE7C6]",children:["Ø§ÙØ¯Ø±Ø¬Ø§Øª: ",e.total_points]})]}),(0,t.jsx)("h3",{className:"mt-4 text-base font-black text-[#075244] dark:text-white leading-relaxed",children:e.title})]}),(0,t.jsx)("div",{className:"mt-5 pt-3 border-t border-[#E7F2EE] dark:border-white/5 flex items-center justify-end",children:(0,t.jsxs)(s.default,{href:"/exams",className:"inline-flex items-center gap-1 text-xs font-black text-[#0E7A5E] hover:underline dark:text-[#6EE7C6]",children:["عرض Ø§ÙØ§Ø®ØªØ¨Ø§Ø±Ø§Øª",(0,t.jsx)(o.ArrowLeft,{size:12})]})})]})}function v({lesson:e}){return(0,t.jsxs)("div",{className:"rounded-[24px] border border-[#DDEEE8] bg-white p-5 shadow-sm hover:shadow-md transition dark:border-white/10 dark:bg-[#0B241F]/90 flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"rounded-full bg-[#EAF7F2] px-3 py-1 text-xs font-black text-[#0E7A5E] dark:bg-[#0E7A5E]/20 dark:text-[#6EE7C6]",children:"Ù
ÙÙØ¬ دراسÙ"}),e.semester&&(0,t.jsxs)("span",{className:"text-xs font-bold text-[#7A8C88] dark:text-[#AFC8C0]",children:["اÙÙØµÙ: ","1"===e.semester?"Ø§ÙØ£ÙÙ":"2"===e.semester?"Ø§ÙØ«Ø§ÙÙ":"Ø·ÙØ§Ù Ø§ÙØ¹Ø§Ù
"]})]}),(0,t.jsx)("h3",{className:"mt-4 text-base font-black text-[#075244] dark:text-white leading-relaxed",children:e.title}),(0,t.jsxs)("div",{className:"mt-4 flex flex-col gap-1 text-xs font-bold text-[#5F746E] dark:text-[#CBE3DD]",children:[e.grade_level&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(g.GraduationCap,{size:14,className:"text-[#0E7A5E]"}),e.grade_level]}),e.title_ar&&e.title_ar!==e.title&&(0,t.jsx)("p",{className:"text-[11px] opacity-75",children:e.title_ar})]})]}),(0,t.jsx)("div",{className:"mt-5 pt-3 border-t border-[#E7F2EE] dark:border-white/5 flex items-center justify-end",children:(0,t.jsxs)(s.default,{href:"/preparation/schedule",className:"inline-flex items-center gap-1 text-xs font-black text-[#0E7A5E] hover:underline dark:text-[#6EE7C6]",children:["Ø§ÙØ°Ùاب ÙÙØªØØ¶Ùر",(0,t.jsx)(o.ArrowLeft,{size:12})]})})]})}function A(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-36 top-0 h-[520px] w-[520px] rounded-full bg-[#D7F1E8]/80 blur-3xl dark:bg-[#0E7A5E]/14"}),(0,t.jsx)("div",{className:"pointer-events-none absolute -left-32 top-[18%] h-[460px] w-[460px] rounded-full bg-[#F6EAC9]/55 blur-3xl dark:bg-[#E2AD3B]/9"}),(0,t.jsx)("div",{className:"pointer-events-none absolute right-[42%] top-[10%] h-[300px] w-[300px] rounded-full bg-white/70 blur-3xl dark:bg-[#6EE7C6]/5"})]})}e.s(["default",0,function(){let e=(0,a.useRouter)(),[o,g]=(0,r.useState)(null),[C,F]=(0,r.useState)(""),[D,B]=(0,r.useState)(null),[z,S]=(0,r.useState)(!1),[_,q]=(0,r.useState)("all"),[L,T]=(0,r.useState)(null),M=(0,r.useRef)(0);(0,r.useEffect)(()=>
1{if(g((0,n.getAuthUser)()),"u">typeof document){let e=localStorage.getItem("hadr-theme")||localStorage.getItem("moeen-theme")||"light";document.documentElement.classList.toggle("dark","dark"===e),document.documentElement.dataset.theme="dark"===e?"dark":"light"}},[]);let R=(0,r.useCallback)(async(e,t)=>{let s=e.trim();if(s.length<2||!o)return;let a=++M.current;S(!0),T(null);try{var r;let e,l=await (r="all"===t?void 0:t,(e=new URLSearchParams).append("query",s),r&&e.append("type",r),(0,x.apiRequest)(`/search?${e.toString()}`,{method:"GET"}));if(a!==M.current)return;l.success?B(l.data):(B(null),T("ØØ¯Ø« خطأ Ø£Ø«ÙØ§Ø¡ Ø¬ÙØ¨ ÙØªØ§Ø¦Ø¬ Ø§ÙØ¨ØØ«."))}catch(e){if(a!==M.current)return;console.error("Search error:",e),B(null),T(e instanceof Error?e.message:"ÙØ´Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØ³ÙØ±ÙØ±. ÙØ±Ø¬Ù اÙÙ
ØØ§ÙÙØ© Ù
رة أخرÙ.")}finally{a===M.current&&S(!1)}},[o]),$=t=>{if(t?.preventDefault(),C.trim()){if(!o)return void e.push("/login?redirect=/search");R(C,_)}};(0,r.useEffect)(()=>{let e=C.trim();if(!e||e.length<2||!o){M.current+=1,B(null),T(null),S(!1);return}let t=setTimeout(()=>{R(e,_)},450);return()=>clearTimeout(t)},[C,_,o,R]);let G=D&&((D.questions?.length??0)>0||(D.resources?.length??0)>0||(D.exams?.length??0)>0||(D.lessons?.length??0)>0);return(0,t.jsxs)("main",{dir:"rtl",className:"relative min-h-screen overflow-hidden bg-[#F7FCFA] text-[#102A43] transition-colors dark:bg-[#071B17] dark:text-white",children:[(0,t.jsx)(A,{}),(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-[1640px] px-3 py-3 sm:px-5 lg:px-6",children:[(0,t.jsx)(d.default,{pageTitle:"Ø§ÙØ¨ØØ« Ø§ÙØ´Ø§Ù
Ù",className:"mb-4 sm:mb-6"}),(0,t.jsxs)("section",{className:"py-12 text-center sm:py-16",children:[(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2.5 rounded-full border border-[#0E7A5E]/15 bg-[#EAF7F2] px-4 py-2 text-xs font-black text-[#0E7A5E] dark:border-white/10 dark:bg-white/8 dark:text-[#6EE7C6]",children:[(0,t.jsx)(E.Sparkles,{size:14,className:"animate-pulse"}),(0,t.jsx)("span",{children:"Ø§ÙØ¨ØØ« Ø§ÙØ°Ù٠اÙÙ
ÙØØ¯"})]}),(0,t.jsxs)("h1",{className:"mt-6 text-3xl font-black tracking-tight text-[#075244] dark:text-white sm:text-5xl lg:text-6xl",children:["Ø§Ø¨ØØ« Ø¹Ù Ø£Ù Ø´ÙØ¡ ÙÙ ",(0,t.jsx)("span",{className:"bg-gradient-to-l from-[#0E7A5E] to-[#24B998] bg-clip-text text-transparent",children:"ØÙضر"})]}),(0,t.jsx)("p",{className:"mx-auto mt-4 max-w-2xl text-sm font-medium leading-8 text-[#5F746E] dark:text-[#CBE3DD] sm:text-base",children:"ØªØµÙØ ÙØ§Ø¨ØØ« عبر Ø§ÙØ£Ø³Ø¦ÙØ©Ø Ø§ÙÙ
ÙØ§Ø±Ø¯ Ø§ÙØªØ¹ÙÙÙ
ÙØ©Ø Ø§ÙØ§Ø®ØªØ¨Ø§Ø±Ø§Øª Ø§ÙØ®Ø§ØµØ© Ø¨ÙØ ÙØ§ÙÙ
ÙØ§Ùج Ø§ÙØ¯Ø±Ø§Ø³ÙØ© ÙÙ Ù
ÙØ§Ù ÙØ§ØØ¯."})]}),(0,t.jsx)(l.motion.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.6,delay:.15},className:"mx-auto mt-8 max-w-3xl",children:(0,t.jsxs)("form",{onSubmit:$,className:"flex flex-col gap-3 sm:flex-row",children:[(0,t.jsxs)("div",{className:"relative flex-1",children:[(0,t.jsx)("input",{type:"text",placeholder:"Ø§Ø¨ØØ« Ø¹Ù Ø³Ø¤Ø§ÙØ Ù
ÙØ¶ÙØ¹Ø Ø£Ù Ø§Ø®ØªØ¨Ø§Ø±...",value:C,onChange:e=>F(e.target.value),autoComplete:"off",className:"h-14 w-full rounded-3xl border border-[#DDEEE8] bg-white px-6 pl-14 text-base font-bold text-[#075244] outline-none shadow-sm transition-all focus:border-[#0E7A5E] focus:ring-4 focus:ring-[#0E7A5E]/8 dark:border-white/10 dark:bg-[#0B241F]/90 dark:text-white dark:focus:border-[#6EE7C6]"}),(0,t.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-5 pointer-events-none text-[#5F746E] dark:text-[#CBE3DD]",children:z?(0,t.jsx)(f.Loader2,{size:20,className:"animate-spin text-[#0E7A5E] dark:text-[#6EE7C6]"}):(0,t.jsx)(k.Search,{size:20})})]}),(0,t.jsx)("button",{type:"submit",disabled:z||!C.trim(),className:"h-14 rounded-3xl bg-gradient-to-l from-[#0E7A5E] to-[#24B998] px-8 text-base font-black text-white shadow-md transition hover:-translate-y-0.5 hover:shadow-lg disabled:opacity-50 disabled:pointer-events-none",children:z?"Ø¬Ø§Ø±Ù Ø§ÙØ¨ØØ«...":"Ø§Ø¨ØØ« Ø§ÙØ¢Ù"})]})})]}),(0,t.jsx)("section",{className:"py-6",children:o?L?(0,t.jsxs)("div",{className:"mx-auto max-w-lg rounded-2xl border border-red-100 bg-red-50/50 p-5 text-center dark:border-red-950/20 dark:bg-red-950/10",children:[(0,t.jsx)(c.AlertCircle,{className:"mx-auto text-red-600 dark:text-red-400",size:32}),(0,t.jsx)("p",{className:"mt-2 text-sm font-black text-red-800 dark:text-red-200",children:L}),(0,t.jsx)("button",{onClick:()=>$(),className:"mt-3 text-xs font-black text-[#0E7A5E] underline dark:text-[#6EE7C6]",children:"إعادة اÙÙ
ØØ§ÙÙØ©"})]}):D?G?(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap justify-center gap-2 border-b border-[#
1E7F2EE] pb-4 dark:border-white/10",children:[(0,t.jsx)(j,{active:"all"===_,onClick:()=>q("all"),label:"اÙÙÙ",count:(D.questions?.length??0)+(D.resources?.length??0)+(D.exams?.length??0)+(D.lessons?.length??0)}),(0,t.jsx)(j,{active:"questions"===_,onClick:()=>q("questions"),label:"Ø§ÙØ£Ø³Ø¦ÙØ© ÙØ§ÙØ£Ø¬ÙØ¨Ø©",count:D.questions?.length}),(0,t.jsx)(j,{active:"resources"===_,onClick:()=>q("resources"),label:"Ø§ÙØ£Ùشطة ÙØ§ÙÙ
صادر",count:D.resources?.length}),(0,t.jsx)(j,{active:"exams"===_,onClick:()=>q("exams"),label:"Ø§ÙØ§Ø®ØªØ¨Ø§Ø±Ø§Øª",count:D.exams?.length}),(0,t.jsx)(j,{active:"lessons"===_,onClick:()=>q("lessons"),label:"Ø§ÙØ¯Ø±Ùس",count:D.lessons?.length})]}),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(i.AnimatePresence,{mode:"wait",children:(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"grid gap-8",children:[("all"===_||"questions"===_)&&(D.questions?.length??0)>0&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h2",{className:"text-xl font-black text-[#075244] dark:text-white flex items-center gap-2",children:[(0,t.jsx)(m.BadgeCheck,{size:20,className:"text-[#0E7A5E] dark:text-[#6EE7C6]"}),"Ø§ÙØ£Ø³Ø¦ÙØ© ÙØ§ÙØ£Ø¬ÙØ¨Ø© (",D.questions?.length,")"]}),(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:D.questions?.map(e=>(0,t.jsx)(y,{question:e},e.id))})]}),("all"===_||"resources"===_)&&(D.resources?.length??0)>0&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h2",{className:"text-xl font-black text-[#075244] dark:text-white flex items-center gap-2",children:[(0,t.jsx)(u.FileCheck2,{size:20,className:"text-[#0E7A5E] dark:text-[#6EE7C6]"}),"Ø§ÙØ£Ùشطة ÙØ§ÙÙ
صادر Ø§ÙØªØ¹ÙÙÙ
ÙØ© (",D.resources?.length,")"]}),(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:D.resources?.map(e=>(0,t.jsx)(N,{resource:e},e.id))})]}),("all"===_||"exams"===_)&&(D.exams?.length??0)>0&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h2",{className:"text-xl font-black text-[#075244] dark:text-white flex items-center gap-2",children:[(0,t.jsx)(b.FileText,{size:20,className:"text-[#0E7A5E] dark:text-[#6EE7C6]"}),"Ø§ÙØ§Ø®ØªØ¨Ø§Ø±Ø§Øª (",D.exams?.length,")"]}),(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:D.exams?.map(e=>(0,t.jsx)(w,{exam:e},e.id))})]}),("all"===_||"lessons"===_)&&(D.lessons?.length??0)>0&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h2",{className:"text-xl font-black text-[#075244] dark:text-white flex items-center gap-2",children:[(0,t.jsx)(h.BookOpen,{size:20,className:"text-[#0E7A5E] dark:text-[#6EE7C6]"}),"Ø§ÙØ¯Ø±Ùس ÙØ§ÙÙ
ÙØ§Ùج (",D.lessons?.length,")"]}),(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:D.lessons?.map(e=>(0,t.jsx)(v,{lesson:e},e.id))})]})]},_)})})]}):(0,t.jsxs)("div",{className:"py-12 text-center text-[#5F746E] dark:text-[#CBE3DD]",children:[(0,t.jsx)(c.AlertCircle,{size:48,className:"mx-auto opacity-40 text-[#0E7A5E] dark:text-[#6EE7C6]"}),(0,t.jsxs)("p",{className:"mt-4 text-lg font-black text-[#075244] dark:text-white",children:['ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ Ø£Ù ÙØªØ§Ø¦Ø¬ تطاب٠"',C,'"']}),(0,t.jsx)("p",{className:"mt-2 text-sm font-medium",children:"ØØ§ÙÙ Ø§ÙØ¨ØØ« بÙÙÙ
ات أخر٠أ٠تÙÙÙÙ ØªÙØ§ØµÙÙ Ø§ÙØ¨ØØ«."})]}):(0,t.jsxs)("div",{className:"py-12 text-center text-[#5F746E] dark:text-[#CBE3DD]",children:[(0,t.jsx)(p.HelpCircle,{size:48,className:"mx-auto opacity-40 text-[#0E7A5E] dark:text-[#6EE7C6]"}),(0,t.jsx)("p",{className:"mt-4 text-sm font-black",children:"Ø§ÙØªØ¨ ØØ±ÙÙ٠عÙÙ Ø§ÙØ£ÙÙØ ÙØ³ØªØ¸Ùر اÙÙØªØ§Ø¦Ø¬ تÙÙØ§Ø¦ÙÙØ§ Ø£Ø«ÙØ§Ø¡ اÙÙØªØ§Ø¨Ø©"})]}):(0,t.jsxs)("div",{className:"mx-auto max-w-md rounded-[30px] border border-[#DDEEE8] bg-white/90 p-8 text-center shadow-lg dark:border-white/10 dark:bg-[#0B241F]/90",children:[(0,t.jsx)(c.AlertCircle,{size:44,className:"mx-auto text-[#D89C22] dark:text-[#FFD56B]"}),(0,t.jsx)("h3",{className:"mt-4 text-lg font-black text-[#075244] dark:text-white",children:"ÙØªØ·Ùب تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"}),(0,t.jsx)("p",{className:"mt-2 text-sm font-medium text-[#5F746E] dark:text-[#CBE3DD] leading-relaxed",children:"ÙØ±Ø¬Ù تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙØªÙ
ÙÙ Ù
Ù Ø§ÙØ¨ØØ« ÙÙ ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª ÙØ§ÙØ£Ø³Ø¦ÙØ© Ø§ÙØ®Ø§ØµØ© بÙ."}),(0,t.jsx)(s.default,{href:"/login?redirect=/search",className:"mt-6 inline-flex w-full items-center justify-center rounded-2xl bg-gradient-to-l from-[#0E7A5E] to-[#24B998] py-3 text-sm font-black text-white",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]})})]})]})}],90454)}]);
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.