PageSourceSearch

https://adelkhalil-academy.com/front/_next/static/chunks/app/%5Blocale%5D/layout-f0e79bc9e72d35b4.js

js adelkhalil-academy.com collected 2026-10-02 01:22:28 UTC 31,355 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{6439:(e,t,n)=>{"use strict";n.d(t,{G:()=>s,j:()=>a});var r=n(1213);let a=()=>(0,r.wA)(),s=r.d4},8842:(e,t,n)=>{"use strict";n.d(t,{N_:()=>i,a8:()=>l,rd:()=>d});var r=n(84497),a=n(55251);let s=(0,r.A)({locales:["en","ar"],defaultLocale:"ar",localePrefix:"always"}),{Link:i,redirect:o,usePathname:l,useRouter:d}=(0,a.A)(s)},12168:(e,t,n)=>{"use strict";n.d(t,{T9:()=>l,bO:()=>o,l1:()=>c,rd:()=>s,tg:()=>d,uT:()=>i});let r=[{value:"student",label:"Student"},{value:"teacher",label:"Teacher"},{value:"parent",label:"Parent"}],a=[{value:"male",label:"Male"},{value:"female",label:"Female"}];function s(e,t){return("categories"===t?r:"genders"===t?a:[]).map(n=>({value:n.value,label:e("".concat(t,".").concat(n.value))}))}let i=500,o=["#e94e1b","#ffffff","#000000","#3b82f6","#22c55e","#ef4444"],l={TOTAL:"vclasses_timer_total",RUNNING:"vclasses_timer_running",TARGET:"vclasses_timer_target",REMAINING_PAUSED:"vclasses_timer_remaining_paused",ACTIVE_TASK_ID:"vclasses_active_task_id",ACTIVE_TASK_TITLE:"vclasses_active_task_title",ACTIVE_TASK_COMPLETED:"vclasses_active_task_completed",FLOATING_EXPANDED:"vclasses_floating_timer_expanded"},d=e=>{if(!e)return!0;let t=e.replace(/^\/front/,"").replace(/^\/(ar|en)(\/|$)/,"/");return!/^\/(dashboard|auth|downloads|zoom|payment-callback|pdf-annotations|image-annotations)(\/|$)/.test(t)},c=e=>null==e||0!==Number(e)&&!1!==e&&"0"!==e},13044:(e,t,n)=>{"use strict";n.d(t,{TranslationOverrideManager:()=>c});var r=n(95155),a=n(12115),s=n(3809),i=n(36386),o=n(21858);let l={getWebTranslations:async(e,t)=>{try{let n=await o.A.get("/languages/web-translations/".concat(e),{headers:{"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"},params:{_t:Date.now(),...t?{_v:t}:{}}});return{success:!0,data:n.data}}catch(e){var n,r;return{success:!1,error:(null==e||null==(r=e.response)||null==(n=r.data)?void 0:n.error)||e.message||"Failed to fetch web translations"}}}};function d(e){return"vclasses_lang_words_".concat(e)}function c(e){let{children:t,bundledMessages:n,locale:o,timeZone:c="Africa/Cairo"}=e,{webSettings:u}=(0,i.A)(),[m,f]=(0,a.useState)(null),h=(0,a.useRef)(!1),p=null==u?void 0:u.current_language_updated_at;(0,a.useEffect)(()=>{let e=function(e){try{let t=localStorage.getItem(d(e));if(t)return JSON.parse(t)}catch(e){}return null}(o);e&&f(e)},[o]),(0,a.useEffect)(()=>{if(!p||h.current)return;let e="vclasses_lang_updated_at_".concat(o),t=null;try{t=localStorage.getItem(e)}catch(e){}t!==p&&(h.current=!0,l.getWebTranslations(o,p).then(t=>{var n;if(!t.success)return void console.warn("[TranslationOverrideManager] Failed to fetch web translations:",t.error);let r=(null==(n=t.data)?void 0:n.data)&&"object"==typeof t.data.data&&!Array.isArray(t.data.data)?t.data.data:t.data,a=null==r?void 0:r.words,s=(null==r?void 0:r.updated_at)||p;if(a&&"object"==typeof a&&Object.keys(a).length>0){let e=function(e){let t={};for(let[n,r]of Object.entries(e)){let e=n.split("."),a=t;for(let t=0;t<e.length-1;t++){let n=e[t];n in a&&"object"==typeof a[n]||(a[n]={}),a=a[n]}a[e[e.length-1]]=r}return t}(a);f(e);try{localStorage.setItem(d(o),JSON.stringify(e))}catch(e){}}else{f(null);try{localStorage.removeItem(d(o))}catch(e){}}if(s)try{localStorage.setItem(e,s)}catch(e){}}).catch(e=>{console.warn("[TranslationOverrideManager] Unexpected error during translations fetch:",e)}).finally(()=>{h.current=!1}))},[p,o]);let g=(0,a.useMemo)(()=>m?function e(t,n){let r={...t};for(let a of Object.keys(n)){let s=n[a],i=t[a];s&&"object"==typeof s&&!Array.isArray(s)&&i&&"object"==typeof i&&!Array.isArray(i)?r[a]=e(i,s):r[a]=s}return r}(n,m):n,[n,m]),v=m?"overridden":"bundled";return(0,r.jsx)(s.default,{locale:o,messages:g,timeZone:c,children:t},v)}},17819:(e,t,n)=>{"use strict";n.d(t,{DevToolsGuard:()=>s});var r=n(12115),a=n(26405);function s(){let{user:e}=(0,a.x)();return(0,r.useEffect)(()=>{(null==e?void 0:e.role)!=="admin"&&n.e(3061).then(n.t.bind(n,3061,23)).then(e=>{(e.default||e)({md5:"363b5cb6c699e5977dbf38fc76f25375",url:"about:blank",timeOutUrl:"about:blank",disableMenu:!0,clearLog:!0,disableSelect:!1,disableCopy:!1,disableCut:!1,disablePaste:!1,ondevtoolopen:(e,t)=>{t()}})})},[null==e?void 0:e.role]),null}},18937:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});let r=(e,t)=>{if("function"!=typeof window.fbq){let e=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.callMethod?e.callMethod.apply(e,n):e.queue.push(n)};window._fbq||(window._fbq=e),e.push=e,e.loaded=!0,e.version="2.0",e.queue=[],window.fbq=e}let n=window.fbq;"function"==typeof n&&(t?n("track",e,t):n("track",e))}},28622:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(12115),a=n(63199);function s(){return(0,r.useEffect)(()=>{let e="wahqvwjv17";e&&a.A.init(e)},[]),null}}
1,29143:(e,t,n)=>{"use strict";n.d(t,{AuthInitializer:()=>s});var r=n(37828),a=n(12115);function s(){return(0,r.Y)(),(0,a.useEffect)(()=>{sessionStorage.removeItem("chunk_reload_count")},[]),null}},32797:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,i:()=>a});let r=(0,n(59267).Z0)({name:"dashboard",initialState:{studentPerformance:-1},reducers:{setStudentPerformance:(e,t)=>{e.studentPerformance=t.payload}}}),{setStudentPerformance:a}=r.actions,s=r.reducer},33737:(e,t,n)=>{"use strict";n.d(t,{FaviconUpdater:()=>s});var r=n(12115),a=n(36386);function s(){let{webSettings:e}=(0,a.A)();return(0,r.useEffect)(()=>{if(null==e?void 0:e.favicon){let t=document.querySelector("link[rel='icon']");t||((t=document.createElement("link")).rel="icon",document.head.appendChild(t)),t.href=e.favicon}},[null==e?void 0:e.favicon]),null}},36386:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,V:()=>o});var r=n(53455),a=n(21858);let s={get:async()=>{try{return(await a.A.get("/web-setting")).data}catch(n){var e,t;throw Error((null==n||null==(t=n.response)||null==(e=t.data)?void 0:e.error)||n.message||"Failed to fetch web settings")}}},i=async()=>(await s.get()).data,o=e=>{let{data:t,isLoading:n,error:a}=(0,r.I)({queryKey:["webSettings"],queryFn:()=>i(),staleTime:3e5,initialData:e,retry:1});return{webSettings:t,isWebSettingsLoading:n,webSettingsError:a}},l=o},37106:(e,t,n)=>{"use strict";n.d(t,{D:()=>d,ThemeProvider:()=>l});var r=n(95155),a=n(12115),s=n(20063),i=n(12168);let o=(0,a.createContext)(void 0);function l(e){let{children:t,isScienceSharks:n=!1}=e,[l,d]=(0,a.useState)("light"),[c,u]=(0,a.useState)(!1),m=(0,s.usePathname)(),f=(n||"undefined"!=typeof document&&"science-sharks"===document.documentElement.getAttribute("data-landing-theme"))&&(0,i.tg)(m);(0,a.useEffect)(()=>{let e=localStorage.getItem("vclasses-theme")||"light";d(e),f||"dark"===e?(document.documentElement.classList.add("dark"),document.body.style.colorScheme="dark"):(document.documentElement.classList.remove("dark"),document.body.style.colorScheme="light"),u(!0)},[f]),(0,a.useEffect)(()=>{if(!c)return;let e=document.documentElement;f?(e.classList.add("dark"),document.body.style.colorScheme="dark"):("dark"===l?(e.classList.add("dark"),document.body.style.colorScheme="dark"):(e.classList.remove("dark"),document.body.style.colorScheme="light"),localStorage.setItem("vclasses-theme",l))},[l,c,m,f]);let h=(0,a.useCallback)(()=>{f||d(e=>{let t="light"===e?"dark":"light";if("undefined"!=typeof document){let e=document.documentElement;"dark"===t?(e.classList.add("dark"),document.body.style.colorScheme="dark"):(e.classList.remove("dark"),document.body.style.colorScheme="light"),localStorage.setItem("vclasses-theme",t)}return t})},[f]),p=f?"dark":l,g=(0,a.useMemo)(()=>({theme:p,toggleTheme:h,mounted:c}),[p,h,c]);return(0,r.jsx)(o.Provider,{value:g,children:t})}function d(){let e=(0,a.useContext)(o);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}},37828:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c});var r=n(12115),a=n(99776),s=n(6439),i=n(51581),o=n(46171),l=n(4259),d=n(56845);function c(){let e=(0,s.j)(),t=(0,a.jE)(),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>{n.current||(n.current=!0,(async()=>{try{e((0,i.AU)());let n=null,r=!navigator.onLine;try{n=await (0,l.H)()}catch(e){console.warn("[AuthInit] Failed to get session, assuming offline:",e),r=!0}if(!n&&!r)return void e((0,i.Hg)());let a=await t.fetchQuery({queryKey:["profile"],queryFn:async()=>{if(r){let e=localStorage.getItem("vclasses_user_cache");if(e)return JSON.parse(e);throw Error("Offline and no cache available")}let t=await (0,o.E)();if(!t.success){if("CHANGE_PASSWORD"===t.errorCode)return void e((0,i.Hg)());if(401===t.status)localStorage.removeItem("vclasses_user_cache"),(0,d._)().catch(e=>console.error("Failed to clear stale cookies in AuthInit:",e));else if(!t.status){let e=localStorage.getItem("vclasses_user_cache");if(e)return JSON.parse(e)}throw Error(t.error||"Failed to fetch profile")}return localStorage.setItem("vclasses_user_cache",JSON.stringify(t.data)),t.data},staleTime:3e5,networkMode:"offlineFirst"});e((0,i.Ne)({data:a.user.id,user:a.user}))}catch(t){console.error("[AuthInit] Error during initialization:",t);try{let t=localStorage.getItem("vclasses_user_cache");if(t){let n=JSON.parse(t);if(null==n?void 0:n.user)return void e((0,i.Ne)({data:n.user.id,user:n.user}))}}catch(e){}e((0,i.Hg)())}})())},[e,t])}},41290:()=>{}
1,43039:(e,t,n)=>{"use strict";n.d(t,{FacebookPixel:()=>c});var r=n(95155),a=n(12115),s=n(20063),i=n(68321),o=n(6439),l=n(18937);function d(e){let{pixelId:t,loaded:n}=e,r=(0,s.usePathname)(),i=(0,s.useSearchParams)(),o=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{if(n){if(o.current){o.current=!1;return}t&&(0,l.T)("PageView")}},[r,i,t,n]),null}function c(e){let{serverFbPixel:t}=e,[n,s]=(0,a.useState)(!1),l=(0,o.G)(e=>e.auth.user),c=(0,a.useMemo)(()=>{if(!l)return{};let e={};if(l.email&&(e.em=String(l.email).trim().toLowerCase()),(l.mobile||l.phone)&&(e.ph=String(l.mobile||l.phone).replace(/\D/g,"")),(l.first_name||l.fname)&&(e.fn=String(l.first_name||l.fname).trim().toLowerCase()),(l.last_name||l.lname)&&(e.ln=String(l.last_name||l.lname).trim().toLowerCase()),l.name&&!e.fn){let t=String(l.name).trim().split(" ");t[0]&&(e.fn=t[0].toLowerCase()),t.length>1&&(e.ln=t.slice(1).join(" ").toLowerCase())}return l.id&&(e.external_id=String(l.id)),e},[l]);if((0,a.useEffect)(()=>{n&&t&&"function"==typeof window.fbq&&Object.keys(c).length>0&&window.fbq("init",t,c)},[n,t,c]),!t)return null;let u=Object.keys(c).length>0?"fbq('init', '".concat(t,"', ").concat(JSON.stringify(c),");"):"fbq('init', '".concat(t,"');");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.default,{id:"fb-pixel",strategy:"afterInteractive",onLoad:()=>s(!0),children:"\n          !function(f,b,e,v,n,t,s)\n          {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n          n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n          if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n          n.queue=[];t=b.createElement(e);t.async=!0;\n          t.src=v;s=b.getElementsByTagName(e)[0];\n          s.parentNode.insertBefore(t,s)}(window, document,'script',\n          'https://connect.facebook.net/en_US/fbevents.js');\n          ".concat(u,"\n          fbq('track', 'PageView');\n        ")}),(0,r.jsx)("noscript",{children:(0,r.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(t,"&ev=PageView&noscript=1"),alt:""})}),(0,r.jsx)(a.Suspense,{fallback:null,children:(0,r.jsx)(d,{pixelId:String(t),loaded:n})})]})}},50659:(e,t,n)=>{"use strict";function r(e){if(!e)return"normal";let t=e.trim().toLowerCase();return"easy"===t||"normal"===t||"سهل"===t?"normal":"average"===t||"medium"===t||"متوسط"===t?"medium":"difficult"===t||"hard"===t||"صعب"===t?"hard":"very_difficult"===t||"very_hard"===t||"صعب جداً"===t||"صعب جدا"===t?"very_hard":"normal"}function a(e){let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}function s(e){var t,n;if(!e||!e.sections||!Array.isArray(e.sections))return e;let s=e.question_selection_type||(e.number_of_questions?"random":"all"),i=null!=(t=e.number_of_questions)?t:null,o=null!=(n=e.difficulty_distribution)?n:null;if("all"===s||!i&&!o)return e;let l=JSON.parse(JSON.stringify(e)),d=[];if(l.sections.forEach(e=>{Array.isArray(e.questions)&&d.push(...e.questions)}),0===d.length)return e;let c=[];if("by_difficulty"===s&&o){let e={normal:[],medium:[],hard:[],very_hard:[]};if(d.forEach(t=>{e[r(t.difficulty_level)].push(t)}),["normal","medium","hard","very_hard"].forEach(t=>{var n,r;let s=null!=(r=null!=(n=o[t])?n:o["normal"===t?"easy":"medium"===t?"average":"hard"===t?"difficult":"very_difficult"])?r:0,i="string"==typeof s?parseInt(s,10)||0:Number(s)||0;if(i>0){let n=a(e[t]).slice(0,i);c.push(...n)}}),i&&i>0&&c.length<i){let e=new Set(c.map(e=>e.id)),t=a(d.filter(t=>!e.has(t.id))),n=i-c.length;c.push(...t.slice(0,n))}}else"random"===s&&i&&i>0&&(c=a(d).slice(0,i));if(c.length>0){let e=new Set(c.map(e=>e.id));l.sections=l.sections.map(t=>({...t,questions:(t.questions||[]).filter(t=>e.has(t.id))})).filter(e=>e.questions&&e.questions.length>0),l.questions_count=c.length}return l}function i(e,t){var n;if(!e)return null;if(!t||!Array.isArray(t)||0===t.length)return e;let r=new Set;if(t.forEach(e=>{void 0!==e.question_id&&null!==e.question_id&&r.add(String(e.question_id))}),0===r.size)return e;let a=0;
1if(null==(n=e.sections)||n.forEach(e=>{var t;a+=(null==(t=e.questions)?void 0:t.length)||0}),a<=r.size)return e;let s=(e.sections||[]).map(e=>({...e,questions:(e.questions||[]).filter(e=>r.has(String(e.id)))})).filter(e=>e.questions&&e.questions.length>0);return{...e,questions_count:r.size,sections:s}}function o(e){return!!e&&!!(1===e.randomized||e.question_selection_type&&"all"!==e.question_selection_type||e.difficulty_distribution||e.number_of_questions&&Number(e.number_of_questions)>0)}n.d(t,{GZ:()=>i,TZ:()=>r,lf:()=>s,nt:()=>o})},51276:(e,t,n)=>{"use strict";n.d(t,{ReduxProvider:()=>i});var r=n(95155),a=n(1213),s=n(58490);function i(e){let{children:t}=e;return(0,r.jsx)(a.Kq,{store:s.M,children:t})}n(51581)},51675:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,DO:()=>l,IZ:()=>a,Lv:()=>d,Xq:()=>f,dW:()=>o,jk:()=>s,mU:()=>c,w4:()=>i});let r=(0,n(59267).Z0)({name:"download",initialState:{downloads:[],isExpanded:!0,isMinimized:!1},reducers:{addDownload:(e,t)=>{e.downloads.find(e=>e.id===t.payload.id)||e.downloads.unshift({...t.payload,progress:0,loaded:0,total:0,status:"pending",startedAt:Date.now()}),e.isMinimized=!1},updateDownloadProgress:(e,t)=>{let n=e.downloads.find(e=>e.id===t.payload.id);n&&"canceled"!==n.status&&"completed"!==n.status&&"failed"!==n.status&&(n.progress=t.payload.progress,n.loaded=t.payload.loaded,n.total=t.payload.total,n.status="downloading")},completeDownload:(e,t)=>{let n=e.downloads.find(e=>e.id===t.payload.id);n&&(n.status="completed",n.progress=100,n.completedAt=Date.now())},failDownload:(e,t)=>{let n=e.downloads.find(e=>e.id===t.payload.id);n&&(n.status="failed",n.error=t.payload.error,n.completedAt=Date.now())},cancelDownload:(e,t)=>{let n=e.downloads.find(e=>e.id===t.payload.id);n&&(n.status="canceled",n.completedAt=Date.now())},removeDownload:(e,t)=>{e.downloads=e.downloads.filter(e=>e.id!==t.payload.id)},clearCompletedDownloads:e=>{e.downloads=e.downloads.filter(e=>"pending"===e.status||"downloading"===e.status)},clearAllDownloads:e=>{e.downloads=e.downloads.filter(e=>"pending"===e.status||"downloading"===e.status)},toggleExpanded:e=>{e.isExpanded=!e.isExpanded},toggleMinimized:e=>{e.isMinimized=!e.isMinimized},setMinimized:(e,t)=>{e.isMinimized=t.payload}}}),{addDownload:a,updateDownloadProgress:s,completeDownload:i,failDownload:o,cancelDownload:l,removeDownload:d,clearCompletedDownloads:c,clearAllDownloads:u,toggleExpanded:m,toggleMinimized:f,setMinimized:h}=r.actions,p=r.reducer},52622:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,g6:()=>i,mO:()=>a,t4:()=>s});let r=(0,n(59267).Z0)({name:"timer",initialState:{activeTaskId:null,activeTaskTitle:null,activeTaskIsCompleted:!1,isRunning:!1},reducers:{setActiveTask:(e,t)=>{var n;e.activeTaskId=t.payload.id,e.activeTaskTitle=t.payload.title,e.activeTaskIsCompleted=null!=(n=t.payload.isCompleted)&&n},clearActiveTask:e=>{e.activeTaskId=null,e.activeTaskTitle=null,e.activeTaskIsCompleted=!1,e.isRunning=!1},setIsRunning:(e,t)=>{e.isRunning=t.payload},setTimerRunning:(e,t)=>{e.isRunning=t.payload}}}),{setActiveTask:a,clearActiveTask:s,setIsRunning:i,setTimerRunning:o}=r.actions,l=r.reducer},54037:(e,t,n)=>{"use strict";n.d(t,{OfflineStatusProvider:()=>d});var r=n(95155),a=n(20063),s=n(8842),i=n(18955),o=n(12115),l=n(44517);function d(e){let{children:t}=e,n=(0,i.c)("offline"),d=(0,a.usePathname)(),[c,u]=(0,o.useState)(!1),[m,f]=(0,o.useState)(!1);(0,o.useEffect)(()=>{f(!0),u(!window.navigator.onLine);let e=()=>{u(!0),l.default.error(n("offlineToast")||"أنت غير متصل بالإنترنت حالياً",{id:"offline-status-toast",duration:4e3})},t=()=>{u(!1),l.default.success(n("onlineToast")||"تم استعادة الاتصال بالإنترنت",{id:"offline-status-toast",duration:4e3})};return window.addEventListener("offline",e),window.addEventListener("online",t),()=>{window.removeEventListener("offline",e),window.removeEventListener("online",t)}},[n]);
1let h=d.includes("/downloads"),p=d.includes("/classes/")||d.includes("/chapters/");return m&&c&&!(h||p)?(0,r.jsx)("div",{className:"flex h-screen bg-dashboard-bg items-center justify-center p-4",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center text-center space-y-6 animate-in fade-in zoom-in duration-500 max-w-md w-full bg-dashboard-card p-8 rounded-3xl shadow-2xl",children:[(0,r.jsx)("div",{className:"w-24 h-24 bg-dashboard-card-collapsed rounded-full flex items-center justify-center mb-2",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-400",children:[(0,r.jsx)("path",{d:"M1 1l22 22"}),(0,r.jsx)("path",{d:"M16.72 11.06A10.94 10.94 0 0 1 19 12.55"}),(0,r.jsx)("path",{d:"M5 12.55a10.94 10.94 0 0 1 5.17-2.39"}),(0,r.jsx)("path",{d:"M10.71 5.05A16 16 0 0 1 22.58 9"}),(0,r.jsx)("path",{d:"M1.42 9a15.91 15.91 0 0 1 4.7-2.88"}),(0,r.jsx)("path",{d:"M8.53 16.11a6 6 0 0 1 6.95 0"}),(0,r.jsx)("line",{x1:"12",y1:"20",x2:"12.01",y2:"20"})]})}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-gray-100",children:n("title")}),(0,r.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:n("description")})]}),(0,r.jsx)(s.N_,{href:"/downloads",className:"block w-full px-6 py-3 bg-dynamic-primary-500 text-white font-bold rounded-xl hover:bg-dynamic-primary-600 transition-colors shadow-lg shadow-dynamic-primary-500/20 text-center",children:n("goToDownloads")})]})}):(0,r.jsxs)(r.Fragment,{children:[t,m&&!c&&(0,r.jsx)("div",{className:"hidden","aria-hidden":"true",children:(0,r.jsx)(s.N_,{href:"/downloads",prefetch:!0,children:n("prefetchDownloads")||"Prefetch Downloads"})})]})}},58490:(e,t,n)=>{"use strict";n.d(t,{M:()=>u});var r=n(59267),a=n(51581),s=n(82002),i=n(68120),o=n(51675),l=n(74155),d=n(32797),c=n(52622);let u=(0,r.U1)({reducer:{auth:a.Ay,modal:s.Ay,quiz:i.Ay,download:o.Ay,mistakesQuiz:l.Ay,dashboard:d.A,timer:c.Ay},devTools:!1})},62872:(e,t,n)=>{"use strict";n.d(t,{ColorProvider:()=>m});var r=n(95155),a=n(12115),s=n(99776),i=n(36386),o=n(19383);let l={50:"#FFF3EE",100:"#FFE2D6",200:"#FFC2AD",300:"#FFA183",400:"#FF7B54",500:"#E94E1B",600:"#CC4216",700:"#A83512"};function d(e){try{let t=e.startsWith("#")?e:"#".concat(e);return{50:(0,o.No)(t,.9),100:(0,o.nj)((0,o.a)(t,.3)),200:(0,o.nj)((0,o.a)(t,.2)),300:(0,o.nj)((0,o.a)(t,.1)),400:(0,o.nj)((0,o.a)(t,.05)),500:(0,o.nj)(t),600:(0,o.nj)((0,o.e$)(t,.1)),700:(0,o.nj)((0,o.e$)(t,.2))}}catch(e){return console.error("Error generating color shades:",e),l}}var c=n(98293);let u=(0,a.createContext)(void 0);function m(e){let{children:t,serverPrimaryColor:n,serverSecondaryColor:o,serverWebSettings:l}=e,m=(0,s.jE)(),f=(0,a.useRef)(!1);l&&!f.current&&(m.setQueryData(["webSettings"],l),f.current=!0);let{webSettings:h,isWebSettingsLoading:p}=(0,i.V)(),g=(null==h?void 0:h.primary_color)||n||"#1e3449",v=(null==h?void 0:h.secondary_color)||o||"#e84118",y=(0,a.useMemo)(()=>d(g),[g]),w=(0,a.useMemo)(()=>d(v),[v]),b="science-sharks"===(0,c.v)((null==h?void 0:h.vclasses_home_page)||(null==l?void 0:l.vclasses_home_page));(0,a.useEffect)(()=>{!function(e,t,n){if("undefined"==typeof document)return;let r=document.documentElement;Object.entries(e).forEach(e=>{let[t,n]=e;r.style.setProperty("--color-dynamic-primary-".concat(t),n)}),Object.entries(t).forEach(e=>{let[t,n]=e;r.style.setProperty("--color-dynamic-secondary-".concat(t),n)}),n?(r.setAttribute("data-landing-theme","science-sharks"),r.classList.add("theme-science-sharks")):(r.removeAttribute("data-landing-theme"),r.classList.remove("theme-science-sharks")),r.style.removeProperty("--color-dashboard-bg"),r.style.removeProperty("--color-dashboard-card"),r.style.removeProperty("--color-dashboard-card-collapsed"),r.style.removeProperty("--color-dashboard-card-collapsed-hover"),r.style.removeProperty("--color-background"),r.style.removeProperty("--color-background-card"),r.style.removeProperty("--color-background-card-collapsed"),r.style.removeProperty("--color-background-card-collapsed-hover")}(y,w,b)},[y,w,b]);let x=(0,a.useMemo)(()=>
1({primaryColor:g,secondaryColor:v,primaryShades:y,secondaryShades:w,isLoading:p}),[g,v,y,w,p]);return(0,r.jsx)(u.Provider,{value:x,children:t})}},68120:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>q,B9:()=>I,BK:()=>b,Ce:()=>h,E_:()=>p,Il:()=>w,JY:()=>u,Kx:()=>S,Nh:()=>c,PQ:()=>m,Yx:()=>f,gB:()=>x,ge:()=>v,gi:()=>l,l$:()=>T,l5:()=>y,r1:()=>d,ro:()=>g});var r=n(59267),a=n(50659);let s={activeQuiz:null,currentSectionIndex:0,currentQuestionIndex:0,answers:{},timeLeft:null,status:"idle",flags:[],maxReachedGlobalIndex:0,lastTickTimestamp:null,startTime:null,questionTimings:{},currentQuestionStartTime:null,classId:null,reportData:null,activeUploads:0},i=(e,t,n)=>{if(!e)return 0;let r=0;for(let n=0;n<t;n++)r+=e.sections[n].questions.length;return r+n},o=(0,r.Z0)({name:"quiz",initialState:s,reducers:{startQuiz:(e,t)=>{let n=t.payload,r=n&&"object"==typeof n&&"quiz"in n?n.quiz:n,s=null==n?void 0:n.classId;if(!r)return;let i=JSON.parse(JSON.stringify((0,a.lf)(r)));i.sections&&(i.sections=i.sections.map(e=>({...e,questions:(e.questions||[]).map(t=>({...t,question_type:(t.question_type||t.answer_type||"").toUpperCase(),originalSectionTitle:e.title,originalSectionDescription:e.description}))}))),1===i.randomized&&i.sections&&(i.sections=i.sections.map(e=>({...e,questions:(e=>{let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t})(e.questions)}))),e.activeQuiz=i,e.status="active",e.currentSectionIndex=0,e.currentQuestionIndex=0,e.answers={},e.flags=[],e.maxReachedGlobalIndex=0,e.lastTickTimestamp=Date.now(),e.activeUploads=0;let o=new Date;e.startTime="".concat(o.getFullYear(),"-").concat(String(o.getMonth()+1).padStart(2,"0"),"-").concat(String(o.getDate()).padStart(2,"0")," ").concat(String(o.getHours()).padStart(2,"0"),":").concat(String(o.getMinutes()).padStart(2,"0"),":").concat(String(o.getSeconds()).padStart(2,"0")),e.questionTimings={},e.currentQuestionStartTime=Date.now(),e.classId=s||null,i.duration?e.timeLeft=60*i.duration:i.timer?e.timeLeft=60*i.timer:e.timeLeft=null},setLoading:e=>{e.status="loading"},setError:e=>{e.status="error"},setAnswer:(e,t)=>{e.answers[t.payload.questionId]=t.payload.answer},toggleFlag:(e,t)=>{let n=t.payload;e.flags.includes(n)?e.flags=e.flags.filter(e=>e!==n):e.flags.push(n)},nextQuestion:e=>{var t,n;let r=null==(t=e.activeQuiz)?void 0:t.sections[e.currentSectionIndex];if(!r)return;let a=r.questions[e.currentQuestionIndex];if(a&&e.currentQuestionStartTime){let t=Math.round((Date.now()-e.currentQuestionStartTime)/1e3),n=String(a.id);e.questionTimings[n]=(e.questionTimings[n]||0)+t}e.currentQuestionIndex<r.questions.length-1?e.currentQuestionIndex+=1:e.currentSectionIndex<((null==(n=e.activeQuiz)?void 0:n.sections.length)||0)-1&&(e.currentSectionIndex+=1,e.currentQuestionIndex=0),e.currentQuestionStartTime=Date.now();let s=i(e.activeQuiz,e.currentSectionIndex,e.currentQuestionIndex);e.maxReachedGlobalIndex=Math.max(e.maxReachedGlobalIndex,s)},prevQuestion:e=>{var t,n;let r=null==(t=e.activeQuiz)?void 0:t.sections[e.currentSectionIndex],a=null==r?void 0:r.questions[e.currentQuestionIndex];if(a&&e.currentQuestionStartTime){let t=Math.round((Date.now()-e.currentQuestionStartTime)/1e3),n=String(a.id);e.questionTimings[n]=(e.questionTimings[n]||0)+t}if(e.currentQuestionIndex>0)e.currentQuestionIndex-=1;else if(e.currentSectionIndex>0){e.currentSectionIndex-=1;let t=null==(n=e.activeQuiz)?void 0:n.sections[e.currentSectionIndex];e.currentQuestionIndex=t.questions.length-1}e.currentQuestionStartTime=Date.now()},goToQuestion:(e,t)=>{var n;let r=null==(n=e.activeQuiz)?void 0:n.sections[e.currentSectionIndex],a=null==r?void 0:r.questions[e.currentQuestionIndex];if(a&&e.currentQuestionStartTime){let t=Math.round((Date.now()-e.currentQuestionStartTime)/1e3),n=String(a.id);e.questionTimings[n]=(e.questionTimings[n]||0)+t}e.currentSectionIndex=t.payload.sectionIndex,e.currentQuestionIndex=t.payload.questionIndex,e.currentQuestionStartTime=Date.now();let s=i(e.activeQuiz,e.currentSectionIndex,e.currentQuestionIndex);e.maxReachedGlobalIndex=Math.max(e.maxReachedGlobalIndex,s)},setTimeLeft:(e,t)=>{e.timeLeft=t.payload},resetLocalAnswers:e=>{e.answers={},e.flags=[]},setSubmitting:e=>{e.status="submitting"},setCompleted:e=>{e.status="completed",e.timeLeft=null},resetQuiz:e=>s,recordCurrentQuestionTime:e=>{if(e.activeQuiz&&e.currentQuestionStartTime){let t=Date.now(),n=(t-e.currentQuestionStartTime)/1e3,r=e.activeQuiz.sections[e.currentSectionIndex],a=null==r?void 0:r.questions[e.currentQuestionIndex];a&&(e.questionTimings[a.id]=(e.questionTimings[a.id]||0)+n),e.currentQuestionStartTime=t}},restoreProgress:(e,t)=>{let n=t.payload;e.answers=n.answers,e.flags=n.flags,e.currentSectionIndex=n.currentSectionIndex,e.currentQuestionIndex=n.currentQuestionIndex,e.startTime=n.startTime,e.questionTimings=n.questionTimings,e.t
1imeLeft=n.timeLeft,e.maxReachedGlobalIndex=n.maxReachedGlobalIndex,e.currentQuestionStartTime=Date.now()},setReportData:(e,t)=>{e.reportData=t.payload},incrementUpload:e=>{e.activeUploads+=1},decrementUpload:e=>{e.activeUploads>0&&(e.activeUploads-=1)}}}),{startQuiz:l,setLoading:d,setError:c,setAnswer:u,toggleFlag:m,nextQuestion:f,prevQuestion:h,goToQuestion:p,setTimeLeft:g,resetLocalAnswers:v,setSubmitting:y,setCompleted:w,resetQuiz:b,recordCurrentQuestionTime:x,restoreProgress:S,setReportData:_,incrementUpload:I,decrementUpload:T}=o.actions,q=o.reducer},74155:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,Ce:()=>f,E_:()=>h,Il:()=>g,Nh:()=>o,Yx:()=>m,Zb:()=>l,a8:()=>v,jw:()=>u,l5:()=>p,pt:()=>d,r1:()=>i,y8:()=>c});var r=n(59267);let a={questions:[],currentIndex:0,answers:{},correctCount:0,courseId:null,status:"idle"},s=(0,r.Z0)({name:"mistakesQuiz",initialState:a,reducers:{setLoading:e=>{e.status="loading"},setError:e=>{e.status="error"},startMistakesQuiz:(e,t)=>{e.questions=(t.payload.questions||[]).map(e=>({...e,question_type:(e.question_type||e.answer_type||"").toUpperCase()})),e.courseId=t.payload.courseId,e.currentIndex=0,e.answers={},e.correctCount=0,e.status="active"},answerQuestion:(e,t)=>{let{questionId:n,selected:r,correctAnswer:a}=t.payload;if(e.answers[n])return;let s=r.toUpperCase()===a.toUpperCase();e.answers[n]={selected:r,isCorrect:s},s&&(e.correctCount+=1)},answerCompleteQuestion:(e,t)=>{let{questionId:n,userAnswers:r,correctAnswer:a}=t.payload;if(e.answers[n])return;let s=r.map(e=>e.trim()).join(" ").toLowerCase()===a.trim().toLowerCase();e.answers[n]={selected:r.join(" "),isCorrect:s},s&&(e.correctCount+=1)},answerParagraphQuestion:(e,t)=>{let{questionId:n,subAnswers:r,correctSubAnswers:a}=t.payload;if(e.answers[n])return;let s=Object.keys(a).map(Number).every(e=>{var t,n;return(null==(t=r[e])?void 0:t.toUpperCase())===(null==(n=a[e])?void 0:n.toUpperCase())});e.answers[n]={selected:JSON.stringify(r),isCorrect:s},s&&(e.correctCount+=1)},nextQuestion:e=>{e.currentIndex<e.questions.length-1&&(e.currentIndex+=1)},prevQuestion:e=>{e.currentIndex>0&&(e.currentIndex-=1)},goToQuestion:(e,t)=>{let n=t.payload;n>=0&&n<e.questions.length&&(e.currentIndex=n)},setSubmitting:e=>{e.status="submitting"},setCompleted:e=>{e.status="completed"},resetMistakesQuiz:()=>a}}),{setLoading:i,setError:o,startMistakesQuiz:l,answerQuestion:d,answerCompleteQuestion:c,answerParagraphQuestion:u,nextQuestion:m,prevQuestion:f,goToQuestion:h,setSubmitting:p,setCompleted:g,resetMistakesQuiz:v}=s.actions,y=s.reducer},82002:(e,t,n)=>{"use strict";n.d(t,{AS:()=>i,Ay:()=>l,hQ:()=>s,ht:()=>o,x3:()=>a});let r=(0,n(59267).Z0)({name:"modal",initialState:{activeModal:null,modalData:null,viewWarningConfirmed:!1},reducers:{openGlobalModal:(e,t)=>{e.activeModal=t.payload.type,e.modalData=t.payload.data||null},closeGlobalModal:e=>{e.activeModal=null,e.modalData=null},confirmViewWarning:e=>{e.viewWarningConfirmed=!0},resetViewWarning:e=>{e.viewWarningConfirmed=!1}}}),{openGlobalModal:a,closeGlobalModal:s,confirmViewWarning:i,resetViewWarning:o}=r.actions,l=r.reducer},83453:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,41290,23)),Promise.resolve().then(n.bind(n,83869)),Promise.resolve().then(n.bind(n,51276)),Promise.resolve().then(n.bind(n,43039)),Promise.resolve().then(n.bind(n,29143)),Promise.resolve().then(n.bind(n,28622)),Promise.resolve().then(n.bind(n,17819)),Promise.resolve().then(n.bind(n,33737)),Promise.resolve().then(n.bind(n,54037)),Promise.resolve().then(n.bind(n,13044)),Promise.resolve().then(n.bind(n,62872)),Promise.resolve().then(n.bind(n,37106)),Promise.resolve().then(n.bind(n,64707)),Promise.resolve().then(n.t.bind(n,75935,23)),Promise.resolve().then(n.t.bind(n,57704,23)),Promise.resolve().then(n.bind(n,44517))},83869:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(95155),a=n(31461),s=n(99776),i=n(38217),o=n(12115);function l(e){let{children:t}=e,[n]=(0,o.useState)(()=>new a.E({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:6e4}}}));return(0,r.jsxs)(s.Ht,{client:n,children:[t,(0,r.jsx)(i.E,{initialIsOpen:!0})]})}}
1,98293:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,v:()=>a});var r=n(87358);function a(e){var t;let n=null==(t=r.env.LANDING_THEME)?void 0:t.trim().toLowerCase();if("science-sharks"===n||"fox-academy"===n||"default"===n||"modern"===n||"minimal"===n||"premium"===n||"classic"===n||"elite"===n)return n;if(!e)return"default";let a=e.trim().toLowerCase();return"react.home_3"===a||"science-sharks"===a?"science-sharks":"react.home_2"===a||"fox-academy"===a?"fox-academy":"react.home"===a||"default"===a?"default":"modern"===a||"minimal"===a||"premium"===a||"classic"===a||"elite"===a?a:"default"}function s(e){if(r.env.LANDING_THEME||!e)return!0;let t=e.trim().toLowerCase();return t.startsWith("react.")||"default"===t||"fox-academy"===t||"science-sharks"===t||"modern"===t||"minimal"===t||"premium"===t||"classic"===t||"elite"===t}}},e=>{e.O(0,[1741,7382,902,4517,2619,1029,5125,3455,1213,9267,5985,3492,6405,8441,4696,7358],()=>e(e.s=83453)),_N_E=e.O()}]);

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.