1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,99847,e=>{"use strict";let t=(0,e.i(56420).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],99847)},66595,e=>{"use strict";let t=(0,e.i(56420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66595)},58925,e=>{"use strict";let t=(0,e.i(56420).default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",0,t],58925)},36923,77706,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(22016),s=e.i(64569),i=e.i(74544),d=e.i(99847),l=e.i(16327);let n=(0,e.i(56420).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var c=e.i(84026),o=e.i(28623),h=e.i(86909),x=e.i(61238);async function m(){try{return await (0,x.apiRequest)("/subscription/current",{method:"GET"})}catch(e){if(e instanceof x.ApiError&&402===e.status){let t=e.data;if(t&&"object"==typeof t&&["subscription_required","subscription_expired","trial_expired","no_active_subscription"].includes(t.code??"")&&"plan"in t&&!1===t.is_subscribed&&!1===t.is_in_trial&&!1===t.can_prepare_lesson)return t}throw e}}function u(e){return{subscription_id:e.plan?.id,subscription:e.plan?{...e.plan,price:String(e.plan.price)}:null,is_subscribed:e.is_subscribed,is_in_trial:e.is_in_trial,is_unlimited:e.is_unlimited,can_prepare_lesson:e.can_prepare_lesson,ai_quota_remaining:e.usage?.ai_remaining??(e.is_unlimited?null:0),subscription_ends_at:e.subscription_ends_at,subscription_days_remaining:e.subscription_days_remaining,trial_ends_at:e.trial_ends_at,trial_days_remaining:e.trial_days_remaining}}function b(e){if(!e)return"â";try{let t=new Date(e);if(isNaN(t.getTime()))return"â";return t.toLocaleDateString("ar-SA",{year:"numeric",month:"short",day:"numeric"})}catch{return"â"}}e.s(["getCurrentSubscription",0,m,"subscriptionTeacherPatch",0,u],77706),e.s(["default",0,function({className:e=""}){let[x,p]=(0,r.useState)(null),[k,f]=(0,r.useState)(null),[g,w]=(0,r.useState)(!1),y=(0,r.useRef)(null),j=(0,r.useCallback)(()=>{p((0,h.getStoredTeacher)())},[]),v=(0,r.useCallback)(async()=>{if((0,h.getToken)())try{let e=await m();f(e),(0,h.updateStoredTeacher)(u(e))}catch{}},[]);if((0,r.useEffect)(()=>{let e=window.setTimeout(()=>{j(),v()},0),t=()=>j();window.addEventListener("hader-auth-updated",t);let r=()=>void v(),a=()=>{"visible"===document.visibilityState&&v()},s=window.setInterval(()=>void v(),6e4);return window.addEventListener("focus",r),document.addEventListener("visibilitychange",a),()=>{window.clearTimeout(e),window.removeEventListener("hader-auth-updated",t),window.removeEventListener("focus",r),document.removeEventListener("visibilitychange",a),window.clearInterval(s)}},[v,j]),(0,r.useEffect)(()=>{function e(e){y.current&&!y.current.contains(e.target)&&w(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),!x&&!k)return null;let E=new Date,N=!!(k?.is_subscribed??x?.is_subscribed??(x?.subscription&&Number(x.subscription.price)>0&&"free"!==x.subscription.slug)),_=k?.trial_ends_at||x?.trial_ends_at,F=!!(!N&&(k?.is_in_trial??x?.is_in_trial??(_&&new Date(_)>E))),A=k?.plan?.name||x?.subscription?.name||(F?"تجربة Ù
جاÙÙØ©":"ÙØ§ ØªÙØ¬Ø¯ خطة ÙØ´Ø·Ø©"),C=k?.code==="subscription_required"||k?.code==="no_active_subscription"?"ØºÙØ± Ù
شترÙ":"Ù
ÙØªÙÙ",B=0;F&&_&&(B=Math.max(0,Math.ceil((new Date(_).getTime()-E.getTime())/864e5)));let D=k?.subscription_ends_at||x?.subscription_ends_at,M=0;return N&&D&&(M=Math.max(0,Math.ceil((new Date(D).getTime()-E.getTime())/864e5))),(0,t.jsxs)("div",{className:`relative inline-block ${e}`,ref:y,dir:"rtl",children:[(0,t.jsxs)("button",{onClick:()=>w(!g),className:`group flex items-center gap-1.5 rounded-full px-2.5 py-1 sm:px-3 sm:py-1.5 text-xs font-bold transition-all duration-300 hover:shadow-md ${N?"border border-[#A8E5D0] bg-gradient-to-l from-[#E6F9F2] to-[#F2FCF8] dark:bg-none text-[#075244] hover:border-[#24B998] dark:border-[#24B998]/30 dark:bg-[#0B2E26] dark:text-[#A4F2DC]":F?"border border-amber-200 bg-gradient-to-l from-amber-50 to-orange-50/80 dark:bg-none text-amber-900 hover:border-amber-300 dark:border-amber-500/30 dark:bg-amber-950/40 dark:text-amber-200":"border border-red-200 bg-red-50 text-red-700 hover:border-red-300 dark:border-red-500/30 dark:bg-red-950/40 dark:text-red-300"}`,title:"اÙÙØ± ÙØ¹Ø±Ø¶ ØªÙØ§ØµÙ٠خطة Ø§ÙØ§Ø´ØªØ±Ø§Ù",children:[N?(0,t.jsx)("span",{className:"flex h-4 w-4 sm:h-5 sm:w-5 items-center justify-center rounded-full bg-[#0E7A5E] text-white shadow-sm shrink-0",children:(0,t.jsx)(s.Zap,{className:"h-2.5 w-2.5 sm:h-3 sm:w-3"})}):F?(0,t.jsx)("span",{className:"flex h-4 w-4 sm:h-5 sm:w-5 items-center justify-center rounded-full bg-amber-500 text-white shadow-sm shrink-0",children:(0,t.jsx)(i.Clock,{className:"h-2.5 w-2.5 sm:h-3 sm:w-3"})}):(0,t.jsx)("span",{className:"flex h-4 w-4 sm:h-5 sm:w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm shrink-0",children:(0,t.jsx)(d.AlertCircle,{className:"h-2.5 w-2.5 sm:h-3 sm:w-3"})}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{className:"font-black truncate max-w-[85px] xs:max-w-[110px] sm:max-w-none",children:N?A:F?"تجربة Ù
جاÙÙØ©":C}),(0,t.jsx)("span",{className:"hidden xs:inline text-[10px] opacity-80 whitespace-nowrap",children:N?"(Ù
ÙØ¹ÙÙ)":F?`(${B} ÙÙÙ
)`:"(اشترÙ)"})]}),(0,t.jsx)(l.ChevronDown,{className:`h-3 w-3 opacity-60 transition-transform duration-200 ${g?"rotate-180":""}`})]}),g&&(0,t.jsxs)("div",{className:"absolute left-0 sm:right-0 sm:left-auto top-full z-[150] mt-2 w-72 sm:w-80 rounded-3xl border border-white/90 bg-white/95 p-5 shadow-[0_20px_50px_rgba(13,84,70,0.18)] backdrop-blur-2xl transition-all dark:border-white/10 dark:bg-[#0C2923]/98 dark:text-white",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-[#
1EAF3F0] pb-3 dark:border-white/10",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:`grid h-8 w-8 place-items-center rounded-2xl ${N?"bg-emerald-100 text-emerald-800 dark:bg-emerald-900/60 dark:text-emerald-300":F?"bg-amber-100 text-amber-800 dark:bg-amber-900/60 dark:text-amber-300":"bg-red-100 text-red-800"}`,children:N?(0,t.jsx)(c.ShieldCheck,{className:"h-4 w-4"}):F?(0,t.jsx)(o.Sparkles,{className:"h-4 w-4"}):(0,t.jsx)(d.AlertCircle,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-bold text-[#6D827D] dark:text-[#A2BCB5]",children:"خطة Ø§ÙØ§Ø´ØªØ±Ø§Ù Ø§ÙØØ§ÙÙØ©"}),(0,t.jsx)("p",{className:"text-sm font-black text-[#075244] dark:text-white",children:A})]})]}),(0,t.jsx)("span",{className:`rounded-full px-2.5 py-0.5 text-[11px] font-black ${N?"bg-emerald-100 text-emerald-800 dark:bg-emerald-900/80 dark:text-emerald-300":F?"bg-amber-100 text-amber-900 dark:bg-amber-900/80 dark:text-amber-300":"bg-red-100 text-red-800 dark:bg-red-900/80 dark:text-red-300"}`,children:N?"Ø§Ø´ØªØ±Ø§Ù ÙØ´Ø·":F?"تجربة Ù
جاÙÙØ©":C})]}),(0,t.jsxs)("div",{className:"space-y-2.5 py-3 text-xs",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-2xl bg-[#F6FBF9] p-2.5 dark:bg-white/5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-[#6D827D] dark:text-[#A2BCB5]",children:[(0,t.jsx)(n,{className:"h-3.5 w-3.5 text-[#0E7A5E]"}),N||k?.code==="subscription_expired"?"ØªØ§Ø±ÙØ® Ø§ÙØªÙاء Ø§ÙØ§Ø´ØªØ±Ø§Ù:":"ØªØ§Ø±ÙØ® Ø§ÙØªÙاء Ø§ÙØªØ¬Ø±Ø¨Ø©:"]}),(0,t.jsx)("span",{className:"font-black text-[#075244] dark:text-white",children:N||k?.code==="subscription_expired"?b(D):b(_)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-2xl bg-[#F6FBF9] p-2.5 dark:bg-white/5",children:[(0,t.jsx)("span",{className:"text-[#6D827D] dark:text-[#A2BCB5]",children:"اÙÙ
دة اÙÙ
تبÙÙØ©:"}),(0,t.jsx)("span",{className:"font-black text-[#0E7A5E] dark:text-[#4AE3B5]",children:N?`${M} ÙÙÙ
`:F?`${B} ${1===B?"ÙÙÙ
":"Ø£ÙØ§Ù
"}`:C})]}),k?.usage&&(0,t.jsxs)("div",{className:"space-y-1.5 rounded-2xl border border-[#DDEEE8] bg-white p-2.5 dark:border-white/10 dark:bg-[#10342C]",children:[(0,t.jsxs)("div",{className:"flex justify-between text-[11px] font-bold text-[#6D827D] dark:text-[#A2BCB5]",children:[(0,t.jsx)("span",{children:"ØªØØ¶Ùرات اÙÙÙÙ
اÙÙ
تبÙÙØ©:"}),(0,t.jsx)("span",{className:"font-black text-[#075244] dark:text-white",children:k.is_unlimited||null===k.usage.lessons_remaining_today||Number(k.usage.lessons_remaining_today)>=9999?"ØºÙØ± Ù
ØØ¯Ùد":`${k.usage.lessons_remaining_today} درس`})]}),(0,t.jsxs)("div",{className:"flex justify-between text-[11px] font-bold text-[#6D827D] dark:text-[#A2BCB5]",children:[(0,t.jsx)("span",{children:"Ø±ØµÙØ¯"}),(0,t.jsx)("span",{className:"font-black text-[#075244] dark:text-white",children:k.is_unlimited||null===k.usage.ai_remaining||Number(k.usage.ai_remaining)>=9999?"ØºÙØ± Ù
ØØ¯Ùد":`${k.usage.ai_remaining} عÙ
ÙÙØ©`})]})]})]}),!N&&!F&&k?.message&&(0,t.jsx)("p",{className:"mb-3 text-xs font-bold text-red-700 dark:text-red-300",children:k.message}),(0,t.jsx)("div",{className:"pt-1",children:(0,t.jsxs)(a.default,{href:"/checkout",onClick:()=>w(!1),className:"flex w-full items-center justify-center gap-2 rounded-2xl bg-gradient-to-l from-[#0E7A5E] to-[#24B998] py-2.5 text-xs font-black text-white shadow-[0_10px_24px_rgba(14,122,94,0.20)] transition-transform duration-200 hover:scale-[1.02]",children:[(0,t.jsx)(s.Zap,{className:"h-3.5 w-3.5"}),N?"عرض ØªÙØ§ØµÙÙ Ø§ÙØ§Ø´ØªØ±Ø§Ù":"اشتر٠ÙÙ Ø¨Ø§ÙØ© Ù
دÙÙØ¹Ø©"]})})]})]})}],36923)},56423,e=>{"use strict";let t=(0,e.i(56420).default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",0,t],56423)},26091,e=>{"use strict";let t=(0,e.i(56420).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],26091)}
1,84026,e=>{"use strict";let t=(0,e.i(56420).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["ShieldCheck",0,t],84026)},29768,e=>{"use strict";let t=(0,e.i(56420).default)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);e.s(["CalendarDays",0,t],29768)},82022,e=>{"use strict";let t=(0,e.i(56420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],82022)},16327,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],16327)},82625,e=>{"use strict";let t=(0,e.i(56420).default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);e.s(["Gift",0,t],82625)},67784,e=>{"use strict";let t=(0,e.i(56420).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],67784)},93583,e=>{"use strict";let t=(0,e.i(56420).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,t],93583)},65649,e=>{"use strict";let t=(0,e.i(56420).default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);e.s(["UserRound",0,t],65649)},57443,e=>{"use strict";let t=(0,e.i(56420).default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserPlus",0,t],57443)},20545,e=>{"use strict";let t=(0,e.i(56420).default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",0,t],20545)},97923,e=>{"use strict";let t=(0,e.i(56420).default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);e.s(["LogIn",0,t],97923)},22530,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(96699),s=e.i(35965);let i="moeen_theme";function d(e){let t=document.documentElement;"dark"===e?t.classList.add("dark"):t.classList.remove("dark"),t.setAttribute("data-theme",e),localStorage.setItem(i,e)}e.s(["default",0,function(){let[e,l]=(0,r.useState)("light"),[n,c]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e,t="light"===(e=localStorage.getItem(i))||"dark"===e?e:document.documentElement.classList.contains("dark")?"dark":"light";l(t),d(t),c(!0)},[]),(0,t.jsx)("button",{type:"button",onClick:()=>{let t="dark"===e?"light":"dark";l(t),d(t)},"aria-label":"dark"===e?"ØªÙØ¹Ù٠اÙÙØ¶Ø¹ اÙÙØ§ØªØ":"ØªÙØ¹Ù٠اÙÙØ¶Ø¹ Ø§ÙØ¯Ø§ÙÙ",title:"dark"===e?"اÙÙØ¶Ø¹ اÙÙØ§ØªØ":"اÙÙØ¶Ø¹ Ø§ÙØ¯Ø§ÙÙ",className:"group grid h-11 w-11 shrink-0 place-items-center rounded-full border border-[#0E7A5E]/15 bg-[#F2FBF7] text-[#0E7A5E] shadow-[0_8px_20px_rgba(13,84,70,0.06)] transition-all duration-300 hover:-translate-y-0.5 hover:bg-white hover:shadow-[0_14px_30px_rgba(14,122,94,0.12)] dark:border-white/10 dark:bg-white/10 dark:text-[#E2AD3B] dark:hover:bg-white/15",children:n?"dark"===e?(0,t.jsx)(s.Sun,{size:18,className:"transition duration-300 group-hover:rotate-12"}):(0,t.jsx)(a.Moon,{size:18,className:"transition duration-300 group-hover:-rotate-12"}):(0,t.jsx)(a.Moon,{size:18})})}])},16306,e=>{"use strict";let t=(0,e.i(56420).default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);e.s(["ShieldAlert",0,t],16306)},42580,76248,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(57688),s=e.i(22016),i=e.i(18566),d=e.i(88653),l=e.i(46932),n=e.i(29768),c=e.i(20545),o=e.i(82625),h=e.i(66595),x=e.i(56423),m=e.i(16327),u=e.i(65649),b=e.i(67784),p=e.i(97923),k=e.i(57443),f=e.i(93583),g=e.i(63676),w=e.i(16306),y=e.i(28623),j=e.i(82022);let v=(0,e.i(56420).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["HelpCircle",0,v],76248);var E=e.i(26091),N=e.i(58925),_=e.i(22530),F=e.i(36923),A=e.i(86909),C=e.i(28352);let B=[{title:"Ø§ÙØ±Ø¦ÙØ³ÙØ©",href:"/",match:e=>"/"===e},{title:"Ø¹Ù ØØ¶Ùر",href:"/about",match:e=>e.startsWith("/about")},{title:"اÙÙ
ÙØªØ¨Ø©",href:"/library",match:e=>e.startsWith("/library")},{title:"Ø§ÙØªØØ¶Ùر",href:"/preparation/schedule",match:e=>e.startsWith("/preparation")},{title:"Ø§ÙØ¹Ø±Ùض",href:"/presentations",match:e=>e.startsWith("/presentations")},{title:"Ø§ÙØªÙØ§Ø±ÙØ±",href:"/reports",match:e=>e.startsWith("/reports")},{title:"Ø§ÙØ§Ø®ØªØ¨Ø§Ø±Ø§Øª",href:"/exams",match:e=>e.startsWith("/exams")},{title:"Ø§ÙØ¨Ø§Ùات",href:"/checkout",match:e=>e.startsWith("/checkout")}],D=[{title:"ØªÙØ²Ùع اÙÙ
ÙØ§Ùج",href:"/curriculum",desc:"خطة اÙÙ
ÙÙØ¬ عÙÙ Ø£Ø³Ø§Ø¨ÙØ¹ اÙÙØµÙ Ø§ÙØ¯Ø±Ø§Ø³Ù",icon:n.CalendarDays},{title:"اÙÙØªØ¨ Ø§ÙØ¯Ø±Ø§Ø³ÙØ©",href:"/curriculum",desc:"تØÙ
ÙÙ ÙØªØ¨ Ø§ÙØ·Ø§Ùب ÙÙÙ Ù
ادة",icon:x.BookOpen},{title:"Ø§ÙØ´Ùادات",href:"/certificates",desc:"Ø´ÙØ§Ø¯Ø§Øª Ø´ÙØ± ÙØªÙØ¯ÙØ± ÙÙØ·Ùاب",icon:c.Award},{title:"تغÙÙØ± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±",href:"/account/password",desc:"ØªØØ¯ÙØ« ÙØªØ£Ù
ÙÙ ÙÙÙ
Ø© Ù
Ø±ÙØ± ØØ³Ø§Ø¨Ù",icon:N.KeyRound},{title:"Ø³ÙØ±Ø§Ø¡ ØØ¶Ùر",href:"/referrals",desc:"Ø¨Ø±ÙØ§Ù
ج Ø§ÙØ¥ØØ§Ùات ÙØ§ÙÙ
ÙØ§Ùآت",icon:o.Gift},{title:"Ø´Ø±Ø Ø¥Ø¶Ø§ÙØ© ØØ¶Ùر",href:"/extension-guide",desc:"طرÙÙØ© ØªØ«Ø¨ÙØª ÙØ±Ø¨Ø· Ø¥Ø¶Ø§ÙØ© اÙÙ
ØªØµÙØ",icon:j.ExternalLink},{title:"Ø§ÙØ¨ØØ« Ø§ÙØ´Ø§Ù
Ù",href:"/search",desc:"Ø¨ØØ« ÙÙ Ø§ÙØ¯Ø±Ùس ÙØ§ÙØªØØ§Ø¶Ùر ÙØ§ÙØ£Ø³Ø¦ÙØ©",icon:h.Search},{title:"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§",href:"/contact",desc:"Ø§ÙØ¯Ø¹Ù
اÙÙÙÙ ÙØªØ°Ø§Ùر اÙÙ
ساعدة",icon:v}];e.s(["default",0,function({pageTitle:e,pageSubtitle:c,extraActions:o,className:x=""}){let j=(0,i.usePathname)(),v=(0,i.useRouter)(),[M,z]=(0,r.useState)(null),[S,L]=(0,r.useState)(!1),[T,$]=(0,r.useState)(!1),[q,R]=(0,r.useState)(!1),H=(0,r.useRef)(null),P=(0,r.useRef)(null);(0,r.useEffect)(()=>{z((0,A.getAuthUser)())},[j]),(0,r.useEffect)(()=>{function e(e){H.current&&!H.current.contains(e.target)&&L(!1),P.current&&!P.current.contains(e.target)&&$(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.useEffect)(()=>{R(!1),L(!1),$(!1)},[j]);let U=async()=>{try{await (0,C.logoutTeacher)()}catch{}finally{(0,A.clearAuthSession)(),z(null),v.replace("/login")}},I=M?.role==="admin";return(0,t.jsxs)("header",{className:`relative z-50 mx-auto w-full max-w-[1640px] transition-all duration-300 ${x}`,dir:"rtl",children:[(0,t.jsxs)("div",{className:"flex min-h-[66px] sm:min-h-[72px] items-center justify-between gap-2 sm:gap-3 rounded-[24px] sm:rounded-[30px] border border-white/80 bg-white/92 px-3 py-2 sm:px-5 sm:py-2.5 shadow-[0_14px_45px_rgba(13,84,70,0.08)] backdrop-blur-2xl transition-colors dark:border-white/10 dark:bg-[#0B241F]/90 dark:shadow-[0_16px_45px_rgba(0,0,0,0.28)]",children:[(0,t.jsx)("div",{className:"flex items-center gap-3 shrink-0",children:(0,t.jsxs)(s.default,{href:"/","aria-label":"ØÙضر",className:"group flex items-center gap-2.5 rounded-2xl transition hover:opacity-90",children:[(0,t.jsx)("div",{className:"grid h-12 w-12 sm:h-14 sm:w-14 place-items-center overflow-hidden rounded-2xl bg-white shadow-[0_8px_20px_rgba(13,84,70,0.08)] ring-1 ring-[#E4F0EC] transition duration-300 group-hover:scale-105 dark:bg-white dark:ring-white/15",children:(0,t.jsx)(a.default,{src:"/logo.png",alt:"ØÙضر",width:70,height:70,priority:!0,className:"h-full w-full object-contain"})}),(0,t.jsxs)("div",{className:"hidden xs:block text-right",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-lg sm:text-xl font-black leading-none text-[#075244] dark:text-[#F4FFFC]",children:"ØÙضر"}),e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs text-[#98AAA4] dar
1k:text-white/40",children:"/"}),(0,t.jsx)("span",{className:"text-xs font-black text-[#0E7A5E] dark:text-[#6EE7C6]",children:e})]})]}),(0,t.jsx)("p",{className:"mt-0.5 text-[10px] font-bold text-[#7A8E89] dark:text-[#A9C5BD]",children:c||"Ù
Ø³Ø§Ø¹Ø¯Ù Ø§ÙØ°ÙÙ ÙÙÙ
عÙÙ
ÙÙ"})]})]})}),(0,t.jsxs)("nav",{className:"hidden lg:flex items-center justify-center gap-1 xl:gap-1.5 flex-1 max-w-fit px-2",children:[B.map(e=>{let r=e.match?e.match(j):j===e.href;return(0,t.jsxs)(s.default,{href:e.href,className:`group relative rounded-full px-3 py-2 text-xs xl:text-sm font-extrabold transition-all duration-200 ${r?"bg-[#EAF7F2] text-[#0E7A5E] shadow-sm dark:bg-white/10 dark:text-[#6EE7C6]":"text-[#244A43] hover:bg-[#F2FBF7] hover:text-[#0E7A5E] dark:text-[#CFE5DF] dark:hover:bg-white/8 dark:hover:text-[#6EE7C6]"}`,children:[e.title,r&&(0,t.jsx)("span",{className:"absolute bottom-1 right-1/2 h-0.5 w-3.5 translate-x-1/2 rounded-full bg-[#0E7A5E] dark:bg-[#6EE7C6]"})]},e.href)}),(0,t.jsxs)("div",{className:"relative",ref:H,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>L(!S),className:`flex items-center gap-1 rounded-full px-3 py-2 text-xs xl:text-sm font-extrabold transition-all duration-200 ${S?"bg-[#F2FBF7] text-[#0E7A5E] dark:bg-white/10 dark:text-[#6EE7C6]":"text-[#244A43] hover:bg-[#F2FBF7] hover:text-[#0E7A5E] dark:text-[#CFE5DF] dark:hover:bg-white/8 dark:hover:text-[#6EE7C6]"}`,children:[(0,t.jsx)("span",{children:"اÙÙ
Ø²ÙØ¯"}),(0,t.jsx)(m.ChevronDown,{size:14,className:`transition-transform duration-200 ${S?"rotate-180 text-[#0E7A5E]":"opacity-60"}`})]}),S&&(0,t.jsx)("div",{className:"absolute right-0 top-full z-[100] mt-2 w-64 rounded-2xl border border-[#DDEEE8] bg-white/95 p-2 shadow-[0_20px_50px_rgba(13,84,70,0.16)] backdrop-blur-2xl dark:border-white/10 dark:bg-[#0B241F]/98",children:D.map(e=>{let r=e.icon;return(0,t.jsxs)(s.default,{href:e.href,onClick:()=>L(!1),className:"flex items-start gap-2.5 rounded-xl p-2.5 text-right transition hover:bg-[#F2FBF7] dark:hover:bg-white/8",children:[(0,t.jsx)("div",{className:"grid h-8 w-8 shrink-0 place-items-center rounded-lg bg-[#EAF7F2] text-[#0E7A5E] dark:bg-white/10 dark:text-[#6EE7C6]",children:(0,t.jsx)(r,{size:15})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block text-xs font-black text-[#075244] dark:text-white",children:e.title}),(0,t.jsx)("span",{className:"mt-0.5 block text-[10px] font-bold text-[#7A8E89] dark:text-[#A9C5BD]",children:e.desc})]})]},e.title)})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 shrink-0",children:[o&&(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:o}),!I&&M&&(0,t.jsx)(F.default,{}),I&&(0,t.jsxs)(s.default,{href:"/admin/teachers",className:"inline-flex items-center gap-1 rounded-full border border-amber-500/25 bg-amber-500/10 px-2.5 py-1 text-[11px] font-black text-amber-700 dark:border-amber-400/20 dark:text-amber-300 transition hover:bg-amber-500/15",children:[(0,t.jsx)(w.ShieldAlert,{size:12}),(0,t.jsx)("span",{className:"hidden xs:inline",children:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©"})]}),(0,t.jsx)(_.default,{}),(0,t.jsx)(s.default,{href:"/search","aria-label":"Ø§ÙØ¨ØØ« Ø§ÙØ´Ø§Ù
Ù",title:"Ø§ÙØ¨ØØ« Ø§ÙØ´Ø§Ù
Ù",className:"hidden sm:grid h-9 w-9 place-items-center rounded-full border border-[#DDEEE8] bg-white text-[#0E7A5E] shadow-sm transition hover:-translate-y-0.5 hover:bg-[#F2FBF7] dark:border-white/10 dark:bg-white/8 dark:text-[#6EE7C6] dark:hover:bg-white/12",children:(0,t.jsx)(h.Search,{size:16})}),M?(0,t.jsxs)("div",{className:"relative",ref:P,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>$(!T),className:"group flex items-center gap-2 rounded-full border border-[#0E7A5E]/15 bg-[#F2FBF7] p-1 pe-2 sm:pe-3 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md dark:border-white/10 dark:bg-white/8",children:[(0,t.jsx)("div",{className:"grid h-7 w-7 sm:h-8 sm:w-8 place-items-center rounded-full bg-[#0E7A5E] text-white shadow-sm dark:bg-[#6EE7C6] dark:text-[#062019]",children:(0,t.jsx)(u.UserRound,{size:15})}),(0,t.jsxs)("div",{className:"hidden md:block text-right leading-none max-w-[90px] truncate",children:[(0,t.jsx)("span",{className:"block text-[9px] font-bold text-[#7A8E89] dark:text-[#A9C5BD]",children:I?"Ù
سؤÙÙ":"اÙÙ
عÙÙ
"}),(0,t.jsx)("span",{className:"block text-xs font-black text-[#075244] dark:text-white truncate",children:M.name})]}),(0,t.jsx)(m.ChevronDown,{size:13,className:`opacity-60 transition ${T?"rotate-180":""}`})]}),T&&(0,t.jsxs)("div",{className:"absolute left-0 sm:right-0 sm:left-auto top-full z-[100] mt-2 w-56 rounded-2xl border border-[#DDEEE8] bg-white/98 p-2 shadow-[0_20px_50px_rgba(13,84,70,0.18)] backdrop-blur-2xl dark:border-white/10 dark:bg-[#0B241F]/98",children:[(0,t.jsxs)("div",{className:"border-b border-[#
1EAF3F0] px-3 py-2 dark:border-white/10",children:[(0,t.jsx)("p",{className:"text-xs font-black text-[#075244] dark:text-white truncate",children:M.name}),(0,t.jsx)("p",{className:"text-[10px] font-bold text-[#7A8E89] dark:text-[#A9C5BD] truncate",children:M.email})]}),(0,t.jsxs)("div",{className:"py-1 space-y-0.5",children:[I?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.default,{href:"/admin/teachers",onClick:()=>$(!1),className:"flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-[#075244] transition hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8",children:[(0,t.jsx)(w.ShieldAlert,{size:15,className:"text-amber-500"}),"ÙÙØØ© تØÙÙ
اÙÙ
عÙÙ
ÙÙ"]}),(0,t.jsxs)(s.default,{href:"/admin/questions",onClick:()=>$(!1),className:"flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-[#075244] transition hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8",children:[(0,t.jsx)(E.FileText,{size:15,className:"text-[#0E7A5E]"}),"Ù
راجعة Ø§ÙØ£Ø³Ø¦ÙØ©"]}),(0,t.jsxs)(s.default,{href:"/admin/payments",onClick:()=>$(!1),className:"flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-[#075244] transition hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8",children:[(0,t.jsx)(y.Sparkles,{size:15,className:"text-[#0E7A5E]"}),"إدارة اÙÙ
دÙÙØ¹Ø§Øª"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s.default,{href:"/preparation/schedule",onClick:()=>$(!1),className:"flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-[#075244] transition hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8",children:[(0,t.jsx)(n.CalendarDays,{size:15,className:"text-[#0E7A5E]"}),"جدÙÙ Ø§ÙØªØØ¶Ùر Ø§ÙØ£Ø³Ø¨ÙعÙ"]}),(0,t.jsxs)(s.default,{href:"/checkout",onClick:()=>$(!1),className:"flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-[#075244] transition hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8",children:[(0,t.jsx)(y.Sparkles,{size:15,className:"text-emerald-500"}),"إدارة Ø¨Ø§ÙØ© Ø§ÙØ§Ø´ØªØ±Ø§Ù"]}),(0,t.jsxs)(s.default,{href:"/account/password",onClick:()=>$(!1),className:"flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-[#075244] transition hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8",children:[(0,t.jsx)(N.KeyRound,{size:15,className:"text-[#0E7A5E]"}),"تغÙÙØ± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±"]})]}),(0,t.jsxs)("button",{type:"button",onClick:U,className:"flex w-full items-center gap-2 rounded-xl px-3 py-2 text-xs font-black text-red-600 transition hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-950/40",children:[(0,t.jsx)(b.LogOut,{size:15}),"تسجÙÙ Ø§ÙØ®Ø±Ùج"]})]})]})]}):(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsxs)(s.default,{href:"/login",className:"inline-flex h-9 items-center gap-1.5 rounded-full border border-[#0E7A5E]/20 bg-white px-3 text-xs font-black text-[#0E7A5E] shadow-sm transition hover:bg-[#F2FBF7] dark:border-white/10 dark:bg-white/8 dark:text-[#6EE7C6]",children:[(0,t.jsx)(p.LogIn,{size:14}),(0,t.jsx)("span",{className:"hidden xs:inline",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]}),(0,t.jsxs)(s.default,{href:"/register",className:"hidden sm:inline-flex h-9 items-center gap-1.5 rounded-full bg-gradient-to-l from-[#0E7A5E] to-[#24B998] px-3.5 text-xs font-black text-white shadow-[0_8px_18px_rgba(14,122,94,0.20)] transition hover:opacity-95",children:[(0,t.jsx)(k.UserPlus,{size:14}),(0,t.jsx)("span",{children:"ØØ³Ø§Ø¨ Ø¬Ø¯ÙØ¯"})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>R(!q),className:"grid lg:hidden h-9 w-9 place-items-center rounded-2xl border border-[#0E7A5E]/15 bg-white text-[#0E7A5E] shadow-sm transition hover:bg-[#F2FBF7] dark:border-white/10 dark:bg-white/8 dark:text-[#6EE7C6]","aria-label":q?"Ø¥ØºÙØ§Ù اÙÙØ§Ø¦Ù
Ø©":"ÙØªØ اÙÙØ§Ø¦Ù
Ø©",children:q?(0,t.jsx)(g.X,{size:18}):(0,t.jsx)(f.Menu,{size:18})})]})]}),(0,t.jsx)(d.AnimatePresence,{children:q&&(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:-12,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-12,scale:.98},transition:{duration:.2},className:"lg:hidden absolute left-0 right-0 top-full z-[120] mt-2 rounded-3xl border border-[#DDEEE8] bg-white/96 p-4 shadow-[0_24px_60px_rgba(13,84,70,0.18)] backdrop-blur-2xl dark:border-white/10 dark:bg-[#0B241F]/98",children:[(0,t.jsx)("div",{className:"space-y-1",children:B.map(e=>{let r=e.match?e.match(j):j===e.href;return(0,t.jsx)(s.default,{href:e.href,onClick:()=>R(!1),className:`flex items-center justify-between rounded-2xl px-4 py-2.5 text-sm font-black transition ${r?"bg-[#EAF7F2] text-[#0E7A5E] dark:bg-white/10 dark:text-[#6EE7C6]":"text-[#244A43] hover:bg-[#F2FBF7] dark:text-white dark:hover:bg-white/8"}`,children:(0,t.jsx)("span",{children:e.title})},e.href)})}
1),(0,t.jsx)("div",{className:"my-3 border-t border-[#EAF3F0] dark:border-white/10"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2",children:D.map(e=>{let r=e.icon;return(0,t.jsxs)(s.default,{href:e.href,onClick:()=>R(!1),className:"flex items-center gap-2 rounded-2xl border border-[#DDEEE8] bg-white/80 p-2.5 text-xs font-black text-[#075244] shadow-sm transition hover:bg-[#F2FBF7] dark:border-white/10 dark:bg-white/5 dark:text-white",children:[(0,t.jsx)(r,{size:16,className:"text-[#0E7A5E] shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.title})]},e.title)})}),M?(0,t.jsxs)("div",{className:"mt-4 flex flex-col gap-2 pt-3 border-t border-[#EAF3F0] dark:border-white/10",children:[(0,t.jsx)("div",{className:"flex items-center justify-between px-2 py-1",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"grid h-8 w-8 place-items-center rounded-xl bg-[#0E7A5E] text-white text-xs font-black",children:M.name.charAt(0)}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-black text-[#075244] dark:text-white",children:M.name}),(0,t.jsx)("p",{className:"text-[10px] text-[#7A8E89] dark:text-[#A9C5BD]",children:M.email})]})]})}),(0,t.jsxs)(s.default,{href:"/account/password",onClick:()=>R(!1),className:"flex h-10 items-center justify-center gap-2 rounded-2xl border border-[#DDEEE8] bg-white text-xs font-black text-[#075244] shadow-sm dark:border-white/10 dark:bg-white/8 dark:text-white",children:[(0,t.jsx)(N.KeyRound,{size:15,className:"text-[#0E7A5E]"}),"تغÙÙØ± ÙÙÙ
Ø© اÙÙ
Ø±ÙØ±"]}),(0,t.jsxs)("button",{type:"button",onClick:()=>{R(!1),U()},className:"flex h-10 items-center justify-center gap-2 rounded-2xl border border-red-200 bg-red-50 text-xs font-black text-red-700 shadow-sm transition hover:bg-red-100 dark:border-red-900/40 dark:bg-red-950/40 dark:text-red-300",children:[(0,t.jsx)(b.LogOut,{size:15}),"تسجÙÙ Ø§ÙØ®Ø±Ùج"]})]}):(0,t.jsxs)("div",{className:"mt-4 flex flex-col gap-2 pt-2 border-t border-[#EAF3F0] dark:border-white/10",children:[(0,t.jsxs)(s.default,{href:"/register",onClick:()=>R(!1),className:"flex h-11 items-center justify-center gap-2 rounded-2xl bg-gradient-to-l from-[#0E7A5E] to-[#24B998] text-sm font-black text-white shadow-sm",children:[(0,t.jsx)(k.UserPlus,{size:16}),"Ø¥ÙØ´Ø§Ø¡ ØØ³Ø§Ø¨ Ø¬Ø¯ÙØ¯ Ù
جاÙÙØ§"]}),(0,t.jsxs)(s.default,{href:"/login",onClick:()=>R(!1),className:"flex h-11 items-center justify-center gap-2 rounded-2xl border border-[#DDEEE8] bg-white text-sm font-black text-[#0E7A5E] dark:border-white/10 dark:bg-white/8 dark:text-[#6EE7C6]",children:[(0,t.jsx)(p.LogIn,{size:16}),"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"]})]})]})})]})}],42580)}]);
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.