PageSourceSearch

https://www.curiominds.ai/_next/static/chunks/5938.d6b196a91a9b4a93.js

js curiominds.ai collected 2026-10-05 15:33:31 UTC 3,345 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5938],{95938:function(e,a,t){t.r(a),t.d(a,{default:function(){return g}});var s=t(57437),n=t(2265),l=t(41021),r=t(1829),i=t(83464),c=t(34766),o=t(33145),d=t(91142);let h=()=>{document.querySelectorAll(".highlighted-text").forEach(e=>{let a=e.parentNode;for(;e.firstChild;)a.insertBefore(e.firstChild,e);a.removeChild(e)})};var u=t(20009),x=t(33887),m=t(10122),p=t(15290),g=e=>{let{selectedText:a,setShowParagraphButton:t,suggestEdit:g,setChatBar:k,mode:f}=e,{askModal:j,setAskModal:b,currentEvent:N,buddyResponse:v,setAskAIModalText:w}=(0,n.useContext)(d.J),[C,Z]=(0,n.useState)(""),[P,E]=(0,n.useState)(""),[S,_]=(0,n.useState)(!1),y=()=>{b(!1),h(),t(!1)},A=async()=>{_(!0);try{let t=await i.Z.post("/api/Assistant/api/generalAssistant",{content:a});if(200===t.status){var e;_(!1),E(null===(e=t.data)||void 0===e?void 0:e.data)}}catch(e){console.error("Explain error: ".concat(e)),_(!1),l.ZP.error("Error explaining text")}};return(0,n.useEffect)(()=>{"explain"===N&&A()},[N]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.Z,{open:j||g,closeIcon:null,onCancel:y,footer:null,width:600,className:"ask-explain-modal ".concat("write-prompt"===f?"write":""),children:(0,s.jsxs)("div",{className:"ask-modal-wrapper",children:[(0,s.jsx)("div",{className:"ask-modal-head",children:"explain"===N?(0,s.jsx)(s.Fragment,{children:S?(0,s.jsx)("p",{className:"response-text",children:"Loading..."}):(0,s.jsx)("p",{className:"response-text",children:P||"response-text"})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("p",{className:"response-text",children:null!=v?v:"Response"})})}),"homePage"!==f&&(0,s.jsxs)("div",{className:"ask-modal-body",children:[(0,s.jsx)(c.Z,{value:C,onChange:e=>{Z(e.target.value)},autoSize:{minRows:1,maxRows:6},maxLength:500,placeholder:"Ask AI Buddy",style:{height:"90%",resize:"none",marginTop:"10px"}}),(0,s.jsx)(o.default,{src:m.Z,alt:"repeat",width:24,height:24,className:"send-icon",onClick:()=>{b(!1),k(!0),w(C)}})]}),(0,s.jsx)("div",{className:"ask-modal-footer",children:"explain"!==N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{className:"ask-modal-btn",onClick:y,children:[(0,s.jsx)(o.default,{src:u.Z,alt:"close",width:20,height:20}),"Cancel"]}),"askParagraph"!==N&&(0,s.jsxs)("button",{className:"ask-modal-btn",onClick:()=>{b(!1),h(),l.ZP.info("Feature under development")},children:[(0,s.jsx)(o.default,{src:x.Z,alt:"close",width:20,height:20}),"Replace"]}),"askParagraph"===N||"suggestEdit"===N&&(0,s.jsxs)("div",{className:"ask-paragraph-btn",children:[(0,s.jsx)(o.default,{src:p.Z,alt:"close",width:20,height:20}),(0,s.jsx)("button",{className:"ask-button",onClick:()=>l.ZP.info("Make Paragraph Shorter"),children:"Shorter"}),(0,s.jsx)("button",{className:"ask-button",onClick:()=>l.ZP.info("Make Paragraph Medium"),children:"Medium"}),(0,s.jsx)("button",{className:"ask-button",onClick:()=>l.ZP.info("Make Paragraph Longer"),children:"Longer"})]})]})})]})})})}},20009:function(e,a){a.Z={src:"/_next/static/media/close-circle-black.1d2c9397.svg",height:16,width:16,blurWidth:0,blurHeight:0}},33887:function(e,a){a.Z={src:"/_next/static/media/repeat-circle.86ab8e59.svg",height:20,width:20,blurWidth:0,blurHeight:0}},10122:function(e,a){a.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.