PageSourceSearch

https://neuromentor.ai/app/_next/static/chunks/1037.15e740e7a62ae087.js

js neuromentor.ai collected 2026-10-05 12:19:57 UTC 7,495 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1037,6277,7271,2305,2253,4309,1997,8331],{86531:function(e,t,n){"use strict";n.r(t);var r=n(57437);n(2265);var a=n(45933),o=n(32489),i=n(97124),c=n(98045),s=n(30166);let l=(0,s.default)(()=>Promise.all([n.e(8342),n.e(9108),n.e(2338)]).then(n.bind(n,52338)),{loadableGenerated:{webpack:()=>[52338]},ssr:!1}),u=(0,s.default)(()=>Promise.all([n.e(9625),n.e(6373)]).then(n.bind(n,56373)),{loadableGenerated:{webpack:()=>[56373]},ssr:!1});t.default=e=>{let{currentLesson:t,currentBook:n,currentSubtopicId:s,isYouTubeContent:d,isBotTyping:p,setIsBotTyping:h,handlePageDataChange:f}=e,y=(0,i.Z)(e=>e.setZenMode),m=e=>{if(e){let t=document.querySelector("[data-user-page-change]");t&&t.__userPageChangeHandler&&t.__userPageChangeHandler(e)}};return(0,r.jsxs)("div",{className:"fixed inset-0 bg-[var(--bg-primary)] text-white flex",children:[(0,r.jsx)("div",{className:"absolute top-4 right-4 z-50",children:(0,r.jsx)(a.z,{variant:"ghost",size:"icon",onClick:()=>{y(!1)},className:"text-white hover:bg-white/10 h-8 w-8",children:(0,r.jsx)(o.Z,{size:20})})}),(0,r.jsx)("div",{className:"w-1/2 h-full bg-[var(--bg-primary)] relative",children:(0,r.jsx)(c.default,{isBotTyping:p,isMobile:!1,zenMode:!0})}),(0,r.jsx)("div",{className:"w-1/2 h-full bg-[var(--bg-primary)] relative",children:t&&s&&(d?(0,r.jsx)(u,{lessonId:t,isBotTyping:p,setIsBotTyping:h,onPageChange:f,onUserPageChange:m,isMobile:!1,zenMode:!0}):(0,r.jsx)(l,{lessonId:t,isBotTyping:p,setIsBotTyping:h,onPageChange:f,onUserPageChange:m,isMobile:!1,zenMode:!0}))})]})}},18319:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57437),a=n(2265);let o=a.lazy(()=>Promise.all([n.e(329),n.e(3954),n.e(3439),n.e(434),n.e(7479)]).then(n.bind(n,97479)));function i(e){let{children:t,gfm:n,components:i,style:c}=e;return(0,r.jsx)(a.Suspense,{fallback:(0,r.jsx)("div",{style:{whiteSpace:"pre-wrap"},children:t}),children:(0,r.jsx)(o,{gfm:n,components:i,style:c,children:t})})}},37062:function(e,t,n){"use strict";n.d(t,{cn:function(){return o}});var r=n(61994),a=n(53335);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.m6)((0,r.W)(t))}},42787:function(e,t,n){"use strict";n.d(t,{MV:function(){return u},aB:function(){return c},m:function(){return l},wc:function(){return s}});var r=n(90770);let a="games",o=null;function i(){return o||(o=new Promise((e,t)=>{if(!window.indexedDB){t(Error("IndexedDB not available"));return}let n=indexedDB.open("neuromentor_games",1);n.onerror=()=>t(n.error),n.onsuccess=()=>e(n.result),n.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(a)||t.createObjectStore(a,{keyPath:"subtopicId"}).createIndex("createdAt","createdAt",{unique:!1})}}))}async function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=await fetch((0,r.Qh)("/app/api/games",n),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subtopicId:Number(e),htmlContent:t})});if(!o.ok)throw Error("Failed to save game to DB: ".concat(o.status));let c=await o.json();try{let n=await i();await new Promise((r,o)=>{let i=n.transaction([a],"readwrite");i.objectStore(a).put({subtopicId:String(e),gameHtml:t,createdAt:Date.now()}),i.oncomplete=()=>r(),i.onerror=()=>o(i.error)})}catch(e){console.warn("IndexedDB cache save failed (non-critical):",e.message)}return c}async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{let n=(0,r.Qh)("/app/api/games?subtopicId=".concat(encodeURIComponent(e)),t),o=await fetch(n);if(!o.ok)return null;let c=await o.json();if(!c.exists||!c.htmlContent)return null;try{let t=await i();await new Promise(n=>{let r=t.transaction([a],"readwrite");r.objectStore(a).put({subtopicId:String(e),gameHtml:c.htmlContent,createdAt:Date.now()}),r.oncomplete=()=>n(),r.onerror=()=>n()})}catch(e){}return c.htmlContent}catch(e){return console.error("Failed to load game from API:",e),null}}async function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;try{let t=await i();await new Promise(n=>{let r=t.transaction([a],"readwrite").objectStore(a),o=r.index("createdAt"),i=[],c=o.openCursor();c.onsuccess=t=>{let a=t.target.result;if(a)i.push({subtopicId:a.value.subtopicId,createdAt:a.value.createdAt}),a.continue();else{i.sort((e,t)=>
1t.createdAt-e.createdAt);let t=i.slice(e);t.forEach(e=>r.delete(e.subtopicId)),n(t.length)}},c.onerror=()=>n(0)})}catch(e){}}async function u(e,t){try{let n=await i();await new Promise(r=>{let o=n.transaction([a],"readwrite");o.objectStore(a).put({subtopicId:String(e),gameHtml:t,createdAt:Date.now()}),o.oncomplete=()=>r(),o.onerror=()=>r()})}catch(e){}}},71769:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("BookOpen",[["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"}]])},64972:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("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"}]])},92934:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},51817:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},13041:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},32489:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},48049:function(e,t,n){"use strict";var r=n(14397);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},40718:function(e,t,n){e.exports=n(48049)()},14397:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);

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.