(()=>{var e={};e.id=6916,e.ids=[6916],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:e=>{"use strict";e.exports=require("os")},24033:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>d,pages:()=>p,routeModule:()=>c,tree:()=>l});var s=r(5853),o=r(60554),n=r(30708),i=r.n(n),a=r(8067),u={};for(let e in a)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(u[e]=()=>a[e]);r.d(t,u);let l={children:["",{children:["consultation",{children:["request",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,84349)),"/home/kencert/Desktop/Work/consultingsystem/frontend/app/consultation/request/page.jsx"]}]},{}]},{metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,31077))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,34997)),"/home/kencert/Desktop/Work/consultingsystem/frontend/app/layout.js"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,92192,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(r.t.bind(r,82137,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(r.t.bind(r,48358,23)),"next/dist/client/components/unauthorized-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,31077))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]}.children,p=["/home/kencert/Desktop/Work/consultingsystem/frontend/app/consultation/request/page.jsx"],d={require:r,loadChunk:()=>Promise.resolve()},c=new s.AppPageRouteModule({definition:{kind:o.RouteKind.APP_PAGE,page:"/consultation/request/page",pathname:"/consultation/request",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},27910:e=>{"use strict";e.exports=require("stream")},28354:e=>{"use strict";e.exports=require("util")},28556:(e,t,r)=>{Promise.resolve().then(r.bind(r,74587))},29021:e=>{"use strict";e.exports=require("fs")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31077:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var s=r(41808);let o=async e=>[{type:"image/x-icon",sizes:"192x192",url:(0,s.fillMetadataSegment)(".",await e.params,"favicon.ico")+""}]},33873:e=>{"use strict";e.exports=require("path")},34631:e=>{"use strict";e.exports=require("tls")},55511:e=>{"use strict";e.exports=require("crypto")},55591:e=>{"use strict";e.exports=require("https")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65004:(e,t,r)=>{Promise.resolve().then(r.bind(r,84349))},74075:e=>{"use strict";e.exports=require("zlib")},74587:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var s=r(28625),o=r(16882),n=r(64996);function i(){let{socket:e,isConnected:t}=(0,o.F)(),[r,i]=(0,n.useState)(""),[a,u]=(0,n.useState)("");return(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"Request Consultation"}),(0,s.jsx)("textarea",{className:"w-full p-2 border rounded mb-4",value:r,onChange:e=>i(e.target.value),placeholder:"Describe your symptoms..."}),(0,s.jsx)("button",{className:"bg-blue-500 text-white px-4 py-2 rounded disabled:bg-gray-400",onClick:()=>{e&&t&&e.emit("consultation_request",{message:r,timestamp:new Date().toISOString()})},disabled:!t,children:t?"Send Request":"Connecting..."}),a&&(0,s.jsxs)("p",{className:"mt-4",children:["Status: ",a]})]})}},79428:e=>{"use strict";e.exports=require("buffer")},79551:e=>{"use strict";e.exports=require("url")},79646:e=>{"use strict";e.exports=require("child_process")},81630:e=>{"use strict";e.exports=require("http")},83997:e=>{"use strict";e.exports=require("tty")},84349:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});let s=(0,r(20413).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/kencert/Desktop/Work/consultingsystem/frontend/app/consultation/request/page.jsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/kencert/Desktop/Work/consultingsystem/frontend/app/consultation/request/page.jsx","default")},91645:e=>{"use strict";e.exports=require("net")},94735:e=>{"use strict";e.exports=require("events")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1625,4204,1808,1166],()=>r(24033));module.exports=s})();