(()=>{var e={};e.id=1952,e.ids=[1952],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")},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")},31578:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>u,originalPathname:()=>m,pages:()=>d,routeModule:()=>p,tree:()=>c}),r(53377),r(46499),r(32029),r(35866);var s=r(23191),a=r(88716),n=r(37922),i=r.n(n),o=r(95231),l={};for(let e in o)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);r.d(t,l);let c=["",{children:["admin-secret",{children:["feedback",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,53377)),"C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\feedback\\page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,46499)),"C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\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}}],d=["C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\feedback\\page.tsx"],m="/admin-secret/feedback/page",u={require:r,loadChunk:()=>Promise.resolve()},p=new s.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/admin-secret/feedback/page",pathname:"/admin-secret/feedback",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},82408:(e,t,r)=>{Promise.resolve().then(r.bind(r,85203))},46226:(e,t,r)=>{"use strict";r.d(t,{default:()=>a.a});var s=r(69029),a=r.n(s)},69029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return o}});let s=r(91174),a=r(23078),n=r(92481),i=s._(r(86820));function o(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=n.Image},85203:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var s=r(10326),a=r(35047);let n=({page:e,count:t})=>{let r=(0,a.useRouter)(),n=e=>{let t=new URLSearchParams(window.location.search);t.set("page",e.toString()),r.push(`${window.location.pathname}?${t}`)};return(0,s.jsxs)("div",{className:"p-4 flex items-center justify-between text-gray-500",children:[s.jsx("button",{disabled:!(10*(e-1)>0),className:"py-2 px-4 rounded-md bg-slate-200 text-xs font-semibold disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>{n(e-1)},children:"Prev"}),s.jsx("div",{className:"flex items-center gap-2 text-sm",children:Array.from({length:Math.ceil(t/10)},(t,r)=>{let a=r+1;return s.jsx("button",{className:`px-2 rounded-sm ${e===a?"bg-lamaSky":""}`,onClick:()=>{n(a)},children:a},a)})}),s.jsx("button",{className:"py-2 px-4 rounded-md bg-slate-200 text-xs font-semibold disabled:opacity-50 disabled:cursor-not-allowed",disabled:!(10*(e-1)+10<t),onClick:()=>{n(e+1)},children:"Next"})]})}},27162:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var s=r(71159);/**
 * @license lucide-react v0.556.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),i=e=>{let t=n(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),l=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};/**
 * @license lucide-react v0.556.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.556.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let d=(0,s.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:d,...m},u)=>(0,s.createElement)("svg",{ref:u,...c,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:o("lucide",n),...!i&&!l(m)&&{"aria-hidden":"true"},...m},[...d.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(i)?i:[i]])),m=(e,t)=>{let r=(0,s.forwardRef)(({className:r,...n},l)=>(0,s.createElement)(d,{ref:l,iconNode:t,className:o(`lucide-${a(i(e))}`,`lucide-${e}`,r),...n}));return r.displayName=i(e),r}},53377:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var s=r(19510),a=r(34549),n=r(54654),i=r(97379);let o=(0,r(27162).Z)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),l=[{header:"Event/Alert",accessor:"title"},{header:"Class",accessor:"class"},{header:"Start Time",accessor:"startTime",className:"hidden md:table-cell"}];async function c({searchParams:e}){let{page:t,...r}=e,c=t?parseInt(t):1,{data:d,count:m}=await (0,a.getAllEvents)(c,r);return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"bg-gradient-to-r from-red-900/20 to-transparent p-6 rounded-xl border border-red-500/20 flex items-center gap-4",children:[s.jsx("div",{className:"bg-red-500/20 p-3 rounded-full text-red-400",children:s.jsx(o,{size:24})}),(0,s.jsxs)("div",{children:[s.jsx("h2",{className:"text-white font-bold",children:"Feedback & Alerts"}),s.jsx("p",{className:"text-xs text-gray-400",children:"System anomalies and user reports."})]})]}),(0,s.jsxs)("div",{className:"bg-transparent p-4 rounded-md",children:[s.jsx("h1",{className:"text-xl font-bold text-white mb-4",children:"Event Logs"}),s.jsx("div",{className:"dark-table",children:s.jsx(i.Z,{columns:l,renderRow:e=>(0,s.jsxs)("tr",{className:"border-b border-gray-800 text-sm hover:bg-white/5 transition-colors text-gray-300",children:[s.jsx("td",{className:"p-4 font-bold text-gray-200",children:e.title}),s.jsx("td",{className:"text-gray-400",children:e.class?.name||"Global"}),s.jsx("td",{className:"hidden md:table-cell text-gray-400",children:new Date(e.startTime).toLocaleString()})]},e.id),data:d})}),s.jsx("div",{className:"mt-4 opacity-70 hover:opacity-100 transition-opacity",children:s.jsx(n.ZP,{page:c,count:m})})]})]})}},54654:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>o});var s=r(68570);let a=(0,s.createProxy)(String.raw`C:\School Management System\Working\V2\src\components\common\Pagination.tsx`),{__esModule:n,$$typeof:i}=a;a.default;let o=(0,s.createProxy)(String.raw`C:\School Management System\Working\V2\src\components\common\Pagination.tsx#default`)},97379:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var s=r(19510);let a=({columns:e,renderRow:t,data:r})=>(0,s.jsxs)("table",{className:"w-full mt-4",children:[s.jsx("thead",{children:s.jsx("tr",{className:"text-left text-gray-500 text-sm",children:e.map(e=>s.jsx("th",{className:e.className,children:e.header},e.accessor))})}),s.jsx("tbody",{children:r.map(e=>t(e))})]})}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8948,7070,8459,3706,4079,9404,2082,8341,6049,2937],()=>r(31578));module.exports=s})();