PageSourceSearch

https://xoots.ai/_next/static/chunks/5540.054ef21a974a6148.js

js xoots.ai collected 2026-10-05 16:00:34 UTC 3,692 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5540],{22246:function(t,e,a){"use strict";a.d(e,{Qs:function(){return c},UE:function(){return n},rI:function(){return s}}),a(83079);var i=a(12119);(0,i.$)("c299621d13e8d90004ed73f64dfe5842872f4921"),(0,i.$)("12760f6ac0cb8edb8246348e687ddc0aedfc951e"),(0,i.$)("83a876f95f1aac26d60c87b05eb9d65767943d15");var n=(0,i.$)("dd9029d96751a5790583b5ca6fa8a79f8414285f"),c=(0,i.$)("946f94a4e64f7f3396b3e7d646433ab0dc21418e"),s=(0,i.$)("06e45599cc278edb2fccbaf63882da4cf1a82c4e")},5540:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return f}});var i=a(57437);a(73989);var n=a(57586),c=a(98239),s=a(99376),l=a(2265),d=a(31055),o=a(22246),r=a(53335),u=a(50774),p=a(18848);let h=l.forwardRef((t,e)=>{let{content:a,className:n,...c}=t,s=(0,l.useMemo)(()=>p.Z.sanitize(a,{ALLOWED_TAGS:["p","br","strong","em","u","b","i","h1","h2","h3","h4","h5","h6","ul","ol","li","a","img","blockquote","code","pre","span","div","table","thead","tbody","tr","td","th","hr","section","article"],FORBID_TAGS:["style","script","link"],FORBID_ATTR:["style"],ALLOWED_ATTR:["href","src","alt","title","class","id","target","rel","data-*"]}),[a]);return(0,i.jsx)("div",{ref:e,style:{whiteSpace:"pre-line"},dangerouslySetInnerHTML:{__html:s},className:n,...c})});var f=()=>{var t;let e=(0,s.useSearchParams)(),a=(0,s.useRouter)(),p=(0,s.usePathname)(),f=(0,s.useParams)(),{currentHash:v,courseProgress:_,currentChapter:m,currentTopic:b,topicProgression:y,initialCourseTopics:g,isQuestion1TemporaryCompleted:x,isQuestion1Completed:I,isMidExerciseCompleted:w,isEndExerciseCompleted:E,isEndChapterExerciseTime:N,isTopicInProgress:S,setIsExerciseOnGoing:T}=(0,u.T)(),j=(0,l.useMemo)(()=>null==g?void 0:g.find(t=>"#".concat(null==t?void 0:t._id)===v),[g,v]),[k,A]=(0,d._)("exercise-tab",!0);return(0,l.useEffect)(()=>{let t=window.location.hash;t?a.push("".concat(p,"?chapter=").concat(e.get("chapter")).concat(t)):e.get("chapter")?a.push("".concat(p,"?chapter=").concat(e.get("chapter"),"#").concat(null==b?void 0:b._id)):a.push("".concat(p,"?chapter=").concat(null==m?void 0:m._id,"#").concat(null==b?void 0:b._id))},[]),(0,l.useEffect)(()=>{w||I||E||x?I&&w&&!E&&"demotionNotPossible"!==y&&"demoted"!==y&&(async()=>{var t,e;let a=await (0,o.UE)({courseId:f.slug.toString(),chapterId:null!==(t=null==m?void 0:m._id)&&void 0!==t?t:"",topicId:null!==(e=null==b?void 0:b._id)&&void 0!==e?e:"",type:"end_topic_exercise"});"data"in a&&"status"in a&&200===a.status&&(T(!0),A(!0))})():(async()=>{var t,e;let a=await (0,o.UE)({courseId:f.slug.toString(),chapterId:null!==(t=null==m?void 0:m._id)&&void 0!==t?t:"",topicId:null!==(e=null==b?void 0:b._id)&&void 0!==e?e:"",type:"topic_questions_1"});"data"in a&&"status"in a&&200===a.status&&(T(!0),A(!0))})(),N&&(async()=>{var t;let e=await (0,o.UE)({courseId:f.slug.toString(),chapterId:null!==(t=null==m?void 0:m._id)&&void 0!==t?t:"",type:"end_chapter_exercise"});"data"in e&&"status"in e&&200===e.status&&(T(!0),A(!0))})()},[e,w,E,I,null==_?void 0:_.is_activity_in_progress,S,x]),(0,i.jsx)("div",{className:"h-[calc(100vh-90px)] overflow-y-auto bg-slate-50",children:(0,i.jsx)(n.M,{children:(0,i.jsx)("div",{className:(0,r.m6)("mx-auto h-full max-sm:pb-14"),children:(0,i.jsx)(c.E.div,{initial:{opacity:0,transitionDelay:"250ms"},animate:{y:0,opacity:1},exit:{opacity:0,transition:{duration:.4}},transition:{type:"spring",damping:40,stiffness:70},className:(0,r.m6)("ProseMirror relative whitespace-pre-line text-slate-950 sm:py-4"),children:(0,i.jsx)(h,{id:null==j?void 0:j._id,className:"px-5",content:null!==(t=null==j?void 0:j.html_content)&&void 0!==t?t:""})},null==j?void 0:j._id)})})})}},73989:function(){}}]);

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.