(()=>{var e={};e.id=4386,e.ids=[4386],e.modules={53524:e=>{"use strict";e.exports=require("@prisma/client")},47849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},6113:e=>{"use strict";e.exports=require("crypto")},92761:e=>{"use strict";e.exports=require("node:async_hooks")},6005:e=>{"use strict";e.exports=require("node:crypto")},71017:e=>{"use strict";e.exports=require("path")},57310:e=>{"use strict";e.exports=require("url")},71816:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>l.a,__next_app__:()=>p,originalPathname:()=>x,pages:()=>c,routeModule:()=>m,tree:()=>d}),s(6509),s(61778),s(32029),s(35866);var r=s(23191),a=s(88716),i=s(37922),l=s.n(i),n=s(95231),o={};for(let e in n)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>n[e]);s.d(t,o);let d=["",{children:["teacher",{children:["school-life",{children:["events",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,6509)),"C:\\School Management System\\Working\\V2\\src\\app\\teacher\\school-life\\events\\[id]\\page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,61778)),"C:\\School Management System\\Working\\V2\\src\\app\\teacher\\layout.tsx"],metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(s.bind(s,32029)),"C:\\School Management System\\Working\\V2\\src\\app\\layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,35866,23)),"next/dist/client/components/not-found-error"],metadata:{icon:[async e=>(await Promise.resolve().then(s.bind(s,73881))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],c=["C:\\School Management System\\Working\\V2\\src\\app\\teacher\\school-life\\events\\[id]\\page.tsx"],x="/teacher/school-life/events/[id]/page",p={require:s,loadChunk:()=>Promise.resolve()},m=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/teacher/school-life/events/[id]/page",pathname:"/teacher/school-life/events/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},79029:(e,t,s)=>{let r={"6f3dd40a1e5fc68b4c3b0af981db28e55cb447f3":()=>Promise.resolve().then(s.bind(s,3479)).then(e=>e.invalidateCacheAction)};async function a(e,...t){return(await r[e]()).apply(null,t)}e.exports={"6f3dd40a1e5fc68b4c3b0af981db28e55cb447f3":a.bind(null,"6f3dd40a1e5fc68b4c3b0af981db28e55cb447f3")}},33381:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,79404,23))},61778:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var r=s(19510),a=s(89948),i=s(28345),l=s(17710),n=s(57371);function o({children:e}){return(0,r.jsxs)("div",{className:"h-screen flex overflow-hidden bg-gray-50",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 relative",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-4 pb-2",children:(0,r.jsxs)(n.default,{href:"/teacher",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:[r.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:r.jsx(l.default,{src:"/logo.png",alt:"logo",width:32,height:32})}),(0,r.jsxs)("div",{className:"hidden lg:flex flex-col",children:[r.jsx("span",{className:"font-extrabold text-lg tracking-tight text-white leading-none font-display",children:"SCHOOL"}),r.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:"Teacher Panel"})]})]})}),r.jsx("div",{className:"relative z-10 flex-1 overflow-y-auto custom-scrollbar px-1 pb-4",children:r.jsx(a.ZP,{role:"teacher"})}),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%] flex flex-col bg-[#F3F4F6] overflow-hidden",children:[r.jsx(i.Z,{}),r.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden scrollbar-main",children:r.jsx("div",{className:"p-6 md:p-8 max-w-[1920px] mx-auto w-full",children:e})})]})]})}},6509:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var r=s(19510),a=s(67122),i=s(13538),l=s(58585),n=s(57371),o=s(82688),d=s(14120),c=s(90071);let x=async({params:e})=>{let t=await i.Z.schoolEvent.findUnique({where:{id:e.id}});return t?(0,r.jsxs)("div",{className:"bg-white p-6 rounded-md flex-1 m-4 mt-0",children:[r.jsx(a.Z,{title:"Event Details"}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 mt-4",children:[(0,r.jsxs)("div",{className:"border-b pb-4",children:[r.jsx("h1",{className:"text-3xl font-bold text-gray-800",children:t.title}),r.jsx("p",{className:"text-gray-500 mt-2 text-lg",children:t.description})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-lg",children:[r.jsx(o.Z,{className:"w-6 h-6 text-vibrant-gold"}),(0,r.jsxs)("div",{children:[r.jsx("p",{className:"text-sm text-gray-500",children:"Date"}),r.jsx("p",{className:"font-medium",children:new Date(t.date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-lg",children:[r.jsx(d.Z,{className:"w-6 h-6 text-purple-500"}),(0,r.jsxs)("div",{children:[r.jsx("p",{className:"text-sm text-gray-500",children:"Time"}),r.jsx("p",{className:"font-medium",children:t.time||"All Day"})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-lg",children:[r.jsx(c.Z,{className:"w-6 h-6 text-professional-green"}),(0,r.jsxs)("div",{children:[r.jsx("p",{className:"text-sm text-gray-500",children:"Location"}),r.jsx("p",{className:"font-medium",children:t.location||"TBD"})]})]})]}),r.jsx("div",{className:"flex gap-4 mt-8",children:r.jsx(n.default,{href:"/teacher/school-life/events",className:"px-6 py-2 bg-gray-200 text-gray-700 rounded-lg hover:bg-gray-300 transition-colors",children:"Back to Events"})})]})]}):(0,l.notFound)()}},67122:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var r=s(19510),a=s(57371),i=s(94126);let l=({title:e,description:t,createLink:s,createLabel:l})=>(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4 mb-6",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[r.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:e}),t&&r.jsx("p",{className:"text-gray-500 text-sm",children:t})]}),s&&l&&(0,r.jsxs)(a.default,{href:s,className:"flex items-center gap-2 bg-vibrant-gold text-white px-4 py-2 rounded-lg font-medium hover:bg-opacity-90 transition-opacity shadow-sm text-sm",children:[r.jsx(i.Z,{className:"w-4 h-4"}),l]})]})},13538:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var r=s(53524);let a=globalThis.prisma??new r.PrismaClient({log:["error"],datasources:{db:{url:process.env.DATABASE_URL}}})}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[8948,7070,8459,3706,4079,9404,2082,7343,9651,3224,7924],()=>s(71816));module.exports=r})();