"use strict";(()=>{var e={};e.id=5273,e.ids=[5273],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")},51428:(e,t,a)=>{a.r(t),a.d(t,{GlobalError:()=>i.a,__next_app__:()=>p,originalPathname:()=>m,pages:()=>c,routeModule:()=>x,tree:()=>d}),a(44894),a(9457),a(32029),a(35866);var r=a(23191),n=a(88716),s=a(37922),i=a.n(s),o=a(95231),l={};for(let e in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);a.d(t,l);let d=["",{children:["admin",{children:["communication",{children:["messaging",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(a.bind(a,44894)),"C:\\School Management System\\Working\\V2\\src\\app\\admin\\communication\\messaging\\page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(a.bind(a,9457)),"C:\\School Management System\\Working\\V2\\src\\app\\admin\\layout.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(a.bind(a,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(a.bind(a,32029)),"C:\\School Management System\\Working\\V2\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(a.t.bind(a,35866,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(a.bind(a,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["C:\\School Management System\\Working\\V2\\src\\app\\admin\\communication\\messaging\\page.tsx"],m="/admin/communication/messaging/page",p={require:a,loadChunk:()=>Promise.resolve()},x=new r.AppPageRouteModule({definition:{kind:n.x.APP_PAGE,page:"/admin/communication/messaging/page",pathname:"/admin/communication/messaging",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},44894:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var r=a(19510),n=a(95854),s=a(78459),i=a(43520);let o=async({searchParams:e})=>{let{userId:t,sessionClaims:a}=(0,s.I)(),o=a?.metadata?.role||"admin",l=await (0,i.getInbox)(),d=l.success?l.data:[];return(0,r.jsxs)("div",{className:"p-6 bg-gray-50 min-h-screen",children:[r.jsx("div",{className:"flex justify-between items-center mb-6",children:r.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Communication Center"})}),r.jsx(n.ZP,{currentUserId:t||"admin",currentUserRole:o,initialInbox:d})]})}},9457:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(19510),n=a(89948),s=a(28345),i=a(17710),o=a(57371);function l({children:e}){return(0,r.jsxs)("div",{className:"min-h-screen flex bg-[#F3F4F6] font-body",children:[(0,r.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 fixed left-0 top-0 bottom-0 transition-all duration-300",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-school-green-900/50 via-transparent to-[#0A1612]/80 pointer-events-none"}),r.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"}}),r.jsx("div",{className:"relative z-10 p-6 pb-2",children:(0,r.jsxs)(o.default,{href:"/admin",className:"flex items-center justify-center lg:justify-start gap-3 mb-6 p-2 rounded-xl transition-all hover:bg-white/5 group",children:[r.jsx("div",{className:"bg-gradient-to-br from-vibrant-gold/20 to-vibrant-gold/5 p-2.5 rounded-xl 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:r.jsx(i.default,{src:"/logo.png",alt:"logo",width:32,height:32,className:"drop-shadow-md"})}),(0,r.jsxs)("div",{className:"hidden lg:flex flex-col",children:[r.jsx("span",{className:"font-extrabold text-xl tracking-tight text-white leading-none font-display",children:"SCHOOL"}),r.jsx("span",{className:"text-[10px] text-vibrant-gold font-bold tracking-[0.2em] uppercase mt-1 drop-shadow-[0_0_10px_rgba(194,166,61,0.5)]",children:"Admin Panel"})]})]})}),r.jsx("div",{className:"relative z-10 flex-1 overflow-y-auto custom-scrollbar px-1 pb-4",children:r.jsx(n.ZP,{role:"admin"})}),r.jsx("div",{className:"relative z-10 hidden lg:block p-4 text-center border-t border-white/5",children:(0,r.jsxs)("p",{className:"text-[10px] text-white/30 font-mono tracking-wider",children:["v2.0.0 ",r.jsx("span",{className:"text-vibrant-gold/50",children:"Superior"})]})})]}),(0,r.jsxs)("div",{className:"w-[86%] md:w-[92%] lg:w-[84%] xl:w-[86%] ml-[14%] md:ml-[8%] lg:ml-[16%] xl:ml-[14%] flex flex-col bg-[#F3F4F6] relative",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-[300px] bg-gradient-to-b from-school-green-100/50 to-transparent pointer-events-none z-0"}),r.jsx("div",{className:"z-10 relative",children:r.jsx(s.Z,{})}),r.jsx("main",{className:"p-6 md:p-8 max-w-[1920px] mx-auto w-full z-10 relative flex-grow",children:e})]})]})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[8948,7070,8459,3706,4079,9404,2082,7343,9651,8341,7924,4064],()=>a(51428));module.exports=r})();