PageSourceSearch

https://www.curiominds.ai/_next/static/chunks/9778.677a536b76ed849b.js

js curiominds.ai collected 2026-10-05 15:34:04 UTC 2,056 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9778],{29778:function(e,t,a){"use strict";a.r(t);var s=a(57437),r=a(2265),i=a(33145),n=a(83464),d=a(34766),o=a(10353),l=a(91142),u=a(10122);a(54108),t.default=e=>{let{mode:t,top:a,left:c,componentRef:h,setAskBuddy:p,setChatBar:x,setAssistantButton:w,selectedText:f}=e,[g,v]=(0,r.useState)(""),[b,k]=(0,r.useState)({width:0,height:0}),[m,C]=(0,r.useState)(!1),{setAskModal:y,setBuddyResponse:E,currentEvent:j,setChatHistory:N,chatHistory:S}=(0,r.useContext)(l.J),Z=async()=>{C(!0),N([...S,{role:"user",text:g}]);try{let t=await n.Z.post("/api/Assistant/api/generalAssistant",{content:g+" "+f});if(200===t.status){var e;y(!0),C(!1),E(null===(e=t.data)||void 0===e?void 0:e.data),N(e=>{var a;return[...e,{role:"assistant",text:null===(a=t.data)||void 0===a?void 0:a.data}]})}}catch(e){console.error(e),C(!1)}p(!1),y(!0),"ClassroomReadingList"!==t&&w(!0)};return(0,r.useEffect)(()=>{let e=()=>{(null==h?void 0:h.current)&&k({width:null==h?void 0:h.current.offsetWidth,height:null==h?void 0:h.current.offsetHeight})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[h]),(0,s.jsxs)("div",{ref:h,className:"ask-buddy-wrapper",style:{position:"absolute",width:"28vw",top:"askParagraph"===j?a+60:a,display:"flex",alignItems:"center",left:"askParagraph"===j?c+40:c,zIndex:2,padding:"12px 16px",borderRadius:b.width>300?"20px":"1000px",backgroundColor:"#FCFCFD",border:"1px solid #E6E8EC",boxShadow:"0px 4px 48px 0px rgba(82, 82, 82, 0.25)"},children:[(0,s.jsx)(d.Z,{placeholder:"Ask AI Buddy",className:"ask-buddy",value:g,onChange:e=>{v(e.target.value)},onKeyDown:e=>{e.key},autoSize:{minRows:1,maxRows:6}}),(0,s.jsx)("button",{className:"send-btn",onClick:Z,children:m?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.Z,{className:"loader-color"})}):(0,s.jsx)(i.default,{src:u.Z,alt:"send",width:24,height:24})})]})}},54108:function(){},10122:function(e,t){"use strict";t.Z={src:"/_next/static/media/send-2.41e02fe0.svg",height:24,width:24,blurWidth:0,blurHeight:0}}}]);

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.