"use strict";(()=>{var e={};e.id=2246,e.ids=[2246],e.modules={53524:e=>{e.exports=require("@prisma/client")},47849:e=>{e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},6113:e=>{e.exports=require("crypto")},92761:e=>{e.exports=require("node:async_hooks")},6005:e=>{e.exports=require("node:crypto")},71017:e=>{e.exports=require("path")},57310:e=>{e.exports=require("url")},23880:(e,t,r)=>{r.r(t),r.d(t,{GlobalError:()=>o.a,__next_app__:()=>p,originalPathname:()=>x,pages:()=>c,routeModule:()=>u,tree:()=>d}),r(85262),r(23891),r(32029),r(35866);var a=r(23191),n=r(88716),s=r(37922),o=r.n(s),i=r(95231),l={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>i[e]);r.d(t,l);let d=["",{children:["student",{children:["communication",{children:["messages",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,85262)),"C:\\School Management System\\Working\\V2\\src\\app\\student\\communication\\messages\\page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,23891)),"C:\\School Management System\\Working\\V2\\src\\app\\student\\layout.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(r.bind(r,32029)),"C:\\School Management System\\Working\\V2\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,35866,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(r.bind(r,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["C:\\School Management System\\Working\\V2\\src\\app\\student\\communication\\messages\\page.tsx"],x="/student/communication/messages/page",p={require:r,loadChunk:()=>Promise.resolve()},u=new a.AppPageRouteModule({definition:{kind:n.x.APP_PAGE,page:"/student/communication/messages/page",pathname:"/student/communication/messages",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},85262:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var a=r(19510),n=r(95854),s=r(78459),o=r(43520);let i=async({searchParams:e})=>{let{userId:t,sessionClaims:r}=(0,s.I)();if(!t)return a.jsx("div",{children:"Not authenticated"});let i=r?.metadata?.role||"student",l=await (0,o.getInbox)(),d=l.success?l.data:[];return(0,a.jsxs)("div",{className:"p-6 bg-gray-50 min-h-screen",children:[a.jsx("div",{className:"flex justify-between items-center mb-6",children:a.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Communication"})}),a.jsx(n.ZP,{currentUserId:t,currentUserRole:i,initialInbox:d})]})}},23891:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var a=r(19510),n=r(89948),s=r(28345),o=r(17710),i=r(57371);function l({children:e}){return(0,a.jsxs)("div",{className:"h-screen flex overflow-hidden bg-gray-50",children:[(0,a.jsxs)("div",{className:"w-[14%] md:w-[8%] lg:w-[16%] xl:w-[14%] flex flex-col justify-between bg-[#0A1612]/95 backdrop-blur-xl border-r border-white/10 text-white shadow-[0_0_50px_rgba(0,0,0,0.5)] z-50 relative",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-school-green-900/50 via-transparent to-[#0A1612]/80 pointer-events-none"}),a.jsx("div",{className:"absolute inset-0 opacity-[0.02] pointer-events-none",style:{backgroundImage:`linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px)`,backgroundSize:"30px 30px"}}),a.jsx("div",{className:"relative z-10 p-4 pb-2",children:(0,a.jsxs)(i.default,{href:"/student",className:"flex items-center justify-center lg:justify-start gap-3 mb-4 p-2 rounded-xl transition-all hover:bg-white/5 group",children:[a.jsx("div",{className:"bg-gradient-to-br from-vibrant-gold/20 to-vibrant-gold/5 p-2 rounded-lg backdrop-blur-md border border-vibrant-gold/20 shadow-[0_0_20px_rgba(194,166,61,0.15)] group-hover:scale-105 group-hover:shadow-[0_0_30px_rgba(194,166,61,0.25)] transition-all duration-300",children:a.jsx(o.default,{src:"/logo.png",alt:"logo",width:32,height:32})}),(0,a.jsxs)("div",{className:"hidden lg:flex flex-col",children:[a.jsx("span",{className:"font-extrabold text-lg tracking-tight text-white leading-none font-display",children:"SCHOOL"}),a.jsx("span",{className:"text-[10px] text-vibrant-gold font-bold tracking-widest uppercase drop-shadow-[0_0_10px_rgba(194,166,61,0.5)]",children:"Student Panel"})]})]})}),a.jsx("div",{className:"relative z-10 flex-1 overflow-y-auto custom-scrollbar px-1 pb-4",children:a.jsx(n.ZP,{role:"student"})}),a.jsx("div",{className:"relative z-10 hidden lg:block p-4 text-center border-t border-white/5",children:(0,a.jsxs)("p",{className:"text-[10px] text-white/30 font-mono tracking-wider",children:["v2.0.0 ",a.jsx("span",{className:"text-vibrant-gold/50",children:"Superior"})]})})]}),(0,a.jsxs)("div",{className:"w-[86%] md:w-[92%] lg:w-[84%] xl:w-[86%] flex flex-col bg-[#F3F4F6] overflow-hidden",children:[a.jsx(s.Z,{}),a.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden scrollbar-main",children:a.jsx("div",{className:"max-w-[1920px] mx-auto w-full",children:e})})]})]})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,7070,8459,3706,4079,9404,2082,7343,9651,8341,7924,4064],()=>r(23880));module.exports=a})();