PageSourceSearch

https://medsy.ai/_next/static/chunks/564.6fa1accd695e4561.js

js medsy.ai collected 2026-10-05 12:15:52 UTC 9,052 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[564],{15220:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/_next/static/media/brainIcon.fc68447f.svg",height:24,width:24,blurWidth:0,blurHeight:0}},26898:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/_next/static/media/ontimeLoader.eaeb5830.gif",height:200,width:200,blurWidth:0,blurHeight:0}},32264:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var a=n(95155),l=n(19749),i=n(46495),s=n(90557),r=n(12115),o=n(39200);let c=(0,n(53095).A)(e=>{let{className:t,...n}=e;return(0,a.jsx)(i.A,{...n,classes:{popper:t}})})(e=>{let{theme:t}=e;return{["& .".concat(s.A.tooltip)]:{backgroundColor:"white",color:"var(--sortFilterTextColor)",fontSize:11,fontWeight:500,lineHeight:"16px",letterSpacing:"0.5px",boxShadow:"0px 1px 2px 0px #2b2b2b12, 0px 3px 3px 0px #2b2b2b0f, 0px 7px 4px 0px #2b2b2b0a, 0px 13px 5px 0px #2b2b2b03, 0px 20px 6px 0px #2b2b2b00"}}}),d=e=>{let t,n,i,s,d,u,h,v=(0,l.c)(21),{value:p,zIndex:g,isGrid:x,twoline:w,isWidthBasedOverflow:m}=e,y=(0,r.useRef)(null),[f,b]=(0,r.useState)(!1),k=(0,o.usePathname)();v[0]!==m?(t=()=>{if(y.current){let e=y.current;e.scrollWidth>e.clientWidth||(e.scrollHeight,e.clientHeight),b(m?e.scrollWidth>e.clientWidth:e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}},v[0]=m,v[1]=t):t=v[1];let j=t;v[2]!==j?(n=()=>(j(),window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)}),v[2]=j,v[3]=n):n=v[3],v[4]!==x?(i=[x],v[4]=x,v[5]=i):i=v[5],(0,r.useEffect)(n,i);let N=f?p:"",q=g||10;v[6]!==q?(s={zIndex:q},v[6]=q,v[7]=s):s=v[7];let _="cursor-ptr ".concat(k&&k.includes("blog")?"title-para cursor-ptr":""),S=w?"-webkit-box":"inline-block",A=w?"normal":"nowrap",C=w?2:void 0,W=w?"vertical":void 0;return v[8]!==C||v[9]!==W||v[10]!==S||v[11]!==A?(d={display:S,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:A,WebkitLineClamp:C,WebkitBoxOrient:W,maxWidth:"100%",verticalAlign:"bottom"},v[8]=C,v[9]=W,v[10]=S,v[11]=A,v[12]=d):d=v[12],v[13]!==d||v[14]!==_||v[15]!==p?(u=(0,a.jsx)("span",{className:_,ref:y,style:d,children:p}),v[13]=d,v[14]=_,v[15]=p,v[16]=u):u=v[16],v[17]!==u||v[18]!==N||v[19]!==s?(h=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c,{className:"common-tooltip",title:N,style:s,children:u})}),v[17]=u,v[18]=N,v[19]=s,v[20]=h):h=v[20],h}},58607:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,s:()=>l});var a=n(71751);async function l(e,t,n,l){return await fetch(a.v$+"?key=".concat(t,"&layer=").concat(n,"&type=").concat(e),{method:"GET",headers:{Authorization:l}})}async function i(e,t,n,l,i){return await fetch(a.sI+"?type=".concat(t,"&key=").concat(e,"&layer=").concat(n),{method:"POST",body:JSON.stringify(l),headers:{Authorization:i,"Content-Type":"application/json"}})}},70564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var a=n(95155),l=n(56929),i=n(88907),s=n(12115);n(70605);var r=n(58607),o=n(39200),c=n(84014),d=n(72321),u=n(26898),h=n(15220),v=n(32264),p=n(75114);let g=(0,l.default)(()=>Promise.all([n.e(1632),n.e(6554)]).then(n.bind(n,66554)),{loadableGenerated:{webpack:()=>[require.resolveWeak("./conversationalChat")]},ssr:!1}),x=e=>{var t,n;let{conversationalId:l,content:x,currentlayer:w,componentsPermissionData:m,name:y,setOpenCommon:f,setOpenType:b,pageId:k,index:j,comButClicked:N,pagesData:q,getCompletionStatus:_,ctcCompletionData:S}=e,A=c.A.get("token"),C=(0,o.usePathname)(),W=null==C?void 0:C.split("/").filter(e=>""!=e),H=l&&(null==(t=l[0])?void 0:t.id),[E,G]=(0,s.useState)(),[P,z]=(0,s.useState)(""),[I,T]=(0,s.useState)(!1),[L,Q]=(0,s.use
1State)(!1),[O,B]=(0,s.useState)([{system:(null==x?void 0:x.content)?null==x||null==(n=x.content)?void 0:n.question:null==x?void 0:x.question}]),[D,F]=(0,s.useState)(0),[R,J]=(0,s.useState)(!1),[K,M]=(0,s.useState)(""),[V,$]=(0,s.useState)(!0),[U,X]=(0,s.useState)(!1),[Y,Z]=(0,s.useState)(!1),ee=null==m?void 0:m.some(e=>(null==e?void 0:e.name)=="CTC"),et=async()=>{T(!0),J(!1),F(0),Z(!1);try{let e=await (0,r.s)("analysis",W[(null==W?void 0:W.length)-1],w,A),t=await e.json();z(""),G(t),B(e=>{var n;return[...e,(null==t?void 0:t.length)&&{system:"".concat(null==(n=t[0])?void 0:n.question)}]}),Q(!1)}catch(e){console.log(e)}finally{T(!1)}},en=async e=>{T(!0);try{var t,n;let a=await (0,r.P)(W[(null==W?void 0:W.length)-1],"analysis_validation",w,e,A),l=await a.json(),i=null==(t=l[0])?void 0:t.result,s=(null==(n=l[0])?void 0:n.mark)||0;return{validateddata:i,mark:s}}catch(e){return console.log(e),{validateddata:"",mark:0}}finally{T(!1)}},ea=async(e,t,n)=>{try{var a,l,i;let s={layer:w,key:W[(null==W?void 0:W.length)-1],["".concat(w,"_page")]:k,type:null==x?void 0:x.type,sequence:j,completed:!0,mark:t,user_answer:{you:e||"",doctor:n||""},id:(null==x?void 0:x.id)||""};q&&N&&(null==(l=q[N])||null==(a=l.child_pages)?void 0:a.length)>0&&(s.child=!0,s.parent_page=null==(i=q[N])?void 0:i.id),await (0,p.PT)(A,s),_()}catch(e){console.log(e)}},el=async(e,t)=>{if(C.includes("/saved")){f(!0),b("restriction"),z("");return}if(!A){f(!0),b("login"),z("");return}if(!ee){f(!0),b("subscription"),z("");return}if("hint"==t){var n;Q(!0);let e=D+1;F(e);let t={question:(null==x||null==(n=x.content)?void 0:n.question)||(null==x?void 0:x.question)||"Question",hint:"give me hint for the above question",attempt:e},{validateddata:a,mark:l}=await en(t);a&&B(e=>[...e,{hint:a}]),M((null==a?void 0:a.length)>0&&a),V&&(await ea(a,l,"Need help"),$(!1))}else et(H)},ei=async(e,t,n,a)=>{var l,i;if(C.includes("/saved")){f(!0),b("restriction"),z("");return}if(!A){f(!0),b("login"),z("");return}if(!ee){f(!0),b("subscription"),z("");return}if((null==t?void 0:t.length)!=0||a){if(a&&"Give answer"===t){Z(!0);let e=[{question:(null==x||null==(l=x.content)?void 0:l.question)||(null==x?void 0:x.question)||"Question",answer:"Give answer"}],{validateddata:t,mark:n}=await en(e);M((null==t?void 0:t.length)>0&&t),B(e=>[...e,{user:"Give answer"},{systemres:t}]),V&&(await ea(t,n,"Give answer"),$(!1));return}if("answer"===n){z(""),J(!0);let e=[{question:(null==x||null==(i=x.content)?void 0:i.question)||(null==x?void 0:x.question)||"Question",answer:t}],{validateddata:n,mark:a}=await en(e);M((null==n?void 0:n.length)>0&&n);let l=[];(null==n?void 0:n.length)&&l.push({systemres:n}),B(e=>[...e,{user:t},...l]),V&&(await ea(n,a,t),$(!1)),J(!1)}}};return(0,s.useEffect)(()=>{if((null==S?void 0:S.length)>0){var e,t;let n=S.find(e=>e.sequence===j);if((null==n?void 0:n.completed)&&"conversation"===n.type){let t=(null==x||null==(e=x.content)?void 0:e.question)||(null==x?void 0:x.question)||"Question";n.user_answer&&"object"==typeof n.user_answer&&("doctor"in n.user_answer||"you"in n.user_answer)?(B([{system:t},{user:n.user_answer.doctor||""},{systemres:n.user_answer.you||""}]),X(!0),Z(!0)):B([{system:t}])}else B([{system:(null==x?void 0:x.content)?null==x||null==(t=x.content)?void 0:t.question:null==x?void 0:x.question}])}},[S,j]),(null==O?void 0:O.length)>0&&(0,a.jsxs)("div",{className:"conversational-analysis-container d-flex-col gap-8 w-100",children:[(0,a.jsxs)("div",{className:"conversational-analysis-container-title w-100 d-flex-al gap-8",children:[(0,a.jsx)(i.default,{src:h.A,alt:"",width:24,height:24}),y,(0,a.jsx)("div",{className:"reasoning-category-container",children:(0,a.jsxs)("div",{className:"category-wrapper reasoning-category-wrapper",children:[(0,a.jsx)(i.default,{className:"category-image",alt:"category-image",src:"/assests/svg/reasoningImg.svg",width:24,height:24}),(0,a.jsx)("div",{className:"question-category reasoning",children:(0,a.jsx)(v.default,{value:"Reasoning Skills"})})]})})]}),(0,a.jsx)(g,{answeredValues:O,isLoading:I,IsNeedHelpAskedBefore:L,handleNeedHelp:el,conversationalData:E,crtAnswer:K}),!U&&!Y&&(0,a.jsxs)("div",{className:"conversational-analysis-container-answer d-flex-jb d-flex-al w-100",children:[(0,a.jsx)("input",{type:"text",placeholder:"Ask a logical Question",onChange:e=>{if(A&&z(e.target.value),A||(f(!0),b("login")),!ee){f(!0),b("subscription"),z("");return}},value:P,disabled:R,onKeyDown:e=>{"Enter"===e.key&&ei(x,P&&P.trim(),"answer")}}),I?(0,a.jsx)(i.default,{src:u.A,alt:"alt",width:32,height:32,className:"cursor-ptr"}):(0,a.jsx)(i.default,{src:d.A,alt:"",width:20,height:20,onClick:()=>ei(E,P&&P.trim(),"answer"),className:"cursor-ptr"})]}),(0,a.jsxs)("div",{className:"d-flex-al gap-8",children:[!L&&!I&&!U&&!Y&&(0,a.jsx)("button",{className:"conversation-history-container-help-btn cursor-ptr odd-chat-text",onClick:()=>el(E,"hint"),children:"Need help?"}),!I&&!U&&!Y&&(0,a.jsx)("button",{className:"conversation-history-container-help-btn cursor-ptr odd-chat-text",onClick:()=>ei(x,"Give answer","answer",!0),children:"Give diagnosis"})]}),(U||Y)&&(0,a.jsx)("div",{className:"conversational-analysis-container-crt-answer d-flex-col gap-8",children:(0,a.jsx)("button",{className:"conversational-analysis-get-more-btn cursor-ptr",onClick:()=>{et(),X(!1),Z(!1)},children:"Access More Conversation"})})]})}},70605:()=>{},72321:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={src:"/_next/static/media/messageIcon.dda3a48f.svg",height:20,width:20,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.