(()=>{var e={};e.id=627,e.ids=[627],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")},45271:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>l.a,__next_app__:()=>u,originalPathname:()=>m,pages:()=>c,routeModule:()=>x,tree:()=>d}),s(47595),s(46499),s(32029),s(35866);var r=s(23191),a=s(88716),n=s(37922),l=s.n(n),i=s(95231),o={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>i[e]);s.d(t,o);let d=["",{children:["admin-secret",{children:["students",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,47595)),"C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\students\\page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,46499)),"C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\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\\admin-secret\\students\\page.tsx"],m="/admin-secret/students/page",u={require:s,loadChunk:()=>Promise.resolve()},x=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/admin-secret/students/page",pathname:"/admin-secret/students",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},69898:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,92481,23)),Promise.resolve().then(s.t.bind(s,79404,23)),Promise.resolve().then(s.bind(s,85203))},46226:(e,t,s)=>{"use strict";s.d(t,{default:()=>a.a});var r=s(69029),a=s.n(r)},69029:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return o},getImageProps:function(){return i}});let r=s(91174),a=s(23078),n=s(92481),l=r._(s(86820));function i(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.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,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let o=n.Image},85203:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var r=s(10326),a=s(35047);let n=({page:e,count:t})=>{let s=(0,a.useRouter)(),n=e=>{let t=new URLSearchParams(window.location.search);t.set("page",e.toString()),s.push(`${window.location.pathname}?${t}`)};return(0,r.jsxs)("div",{className:"p-4 flex items-center justify-between text-gray-500",children:[r.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"}),r.jsx("div",{className:"flex items-center gap-2 text-sm",children:Array.from({length:Math.ceil(t/10)},(t,s)=>{let a=s+1;return r.jsx("button",{className:`px-2 rounded-sm ${e===a?"bg-lamaSky":""}`,onClick:()=>{n(a)},children:a},a)})}),r.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,s)=>{"use strict";s.d(t,{Z:()=>m});var r=s(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,s)=>s?s.toUpperCase():t.toLowerCase()),l=e=>{let t=n(e);return t.charAt(0).toUpperCase()+t.slice(1)},i=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),o=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 d={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 c=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:n="",children:l,iconNode:c,...m},u)=>(0,r.createElement)("svg",{ref:u,...d,width:t,height:t,stroke:e,strokeWidth:a?24*Number(s)/Number(t):s,className:i("lucide",n),...!l&&!o(m)&&{"aria-hidden":"true"},...m},[...c.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(l)?l:[l]])),m=(e,t)=>{let s=(0,r.forwardRef)(({className:s,...n},o)=>(0,r.createElement)(c,{ref:o,iconNode:t,className:i(`lucide-${a(l(e))}`,`lucide-${e}`,s),...n}));return s.displayName=l(e),s}},49832:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});let r=(0,s(27162).Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},47595:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var r=s(19510),a=s(34549),n=s(17710),l=s(57371),i=s(54654),o=s(97379),d=s(49832);let c=[{header:"Info",accessor:"info"},{header:"Student ID",accessor:"studentId",className:"hidden md:table-cell"},{header:"Grade",accessor:"grade",className:"hidden md:table-cell"},{header:"Phone",accessor:"phone",className:"hidden lg:table-cell"},{header:"Address",accessor:"address",className:"hidden lg:table-cell"},{header:"Actions",accessor:"action"}];async function m({searchParams:e}){let{page:t,...s}=e,m=t?parseInt(t):1,{data:u,count:x}=await (0,a.getAllStudents)(m,s);return(0,r.jsxs)("div",{className:"bg-transparent p-4 rounded-md flex-1 m-4 mt-0",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,r.jsxs)("h1",{className:"text-2xl font-bold text-white tracking-tight",children:["Student Database ",r.jsx("span",{className:"text-xs font-mono text-gray-500 ml-2",children:"SECURE VIEW"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-xs rounded-full bg-white/5 border border-white/10 px-3 py-2 focus-within:border-blue-500/50 transition-colors",children:[r.jsx(d.Z,{size:14,className:"text-gray-500"}),r.jsx("input",{type:"text",placeholder:"Search secure records...",className:"w-[200px] bg-transparent outline-none text-gray-300 placeholder:text-gray-600"})]})]}),r.jsx("div",{className:"dark-table",children:r.jsx(o.Z,{columns:c,renderRow:e=>(0,r.jsxs)("tr",{className:"border-b border-gray-800 text-sm hover:bg-white/5 transition-colors text-gray-300",children:[(0,r.jsxs)("td",{className:"flex items-center gap-4 p-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden border border-gray-700",children:r.jsx(n.default,{src:e.img||"/noAvatar.png",alt:"",width:40,height:40,className:"object-cover w-full h-full"})}),(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)("h3",{className:"font-semibold text-gray-200",children:[e.name," ",e.surname]}),r.jsx("p",{className:"text-xs text-gray-500",children:e.class?.name})]})]}),r.jsx("td",{className:"hidden md:table-cell text-gray-400",children:e.username}),r.jsx("td",{className:"hidden md:table-cell text-gray-400",children:e.class?.name[0]}),r.jsx("td",{className:"hidden lg:table-cell text-gray-400",children:e.phone}),r.jsx("td",{className:"hidden lg:table-cell text-gray-400",children:e.address}),r.jsx("td",{children:r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(l.default,{href:`/admin-secret/students/${e.id}`,className:"p-2 rounded-full bg-blue-900/30 text-blue-400 hover:bg-blue-900/50 hover:text-blue-300 transition-colors",children:"View"})})})]},e.id),data:u})}),r.jsx("div",{className:"mt-4 opacity-70 hover:opacity-100 transition-opacity",children:r.jsx(i.ZP,{page:m,count:x})})]})}},54654:(e,t,s)=>{"use strict";s.d(t,{ZP:()=>i});var r=s(68570);let a=(0,r.createProxy)(String.raw`C:\School Management System\Working\V2\src\components\common\Pagination.tsx`),{__esModule:n,$$typeof:l}=a;a.default;let i=(0,r.createProxy)(String.raw`C:\School Management System\Working\V2\src\components\common\Pagination.tsx#default`)},97379:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});var r=s(19510);let a=({columns:e,renderRow:t,data:s})=>(0,r.jsxs)("table",{className:"w-full mt-4",children:[r.jsx("thead",{children:r.jsx("tr",{className:"text-left text-gray-500 text-sm",children:e.map(e=>r.jsx("th",{className:e.className,children:e.header},e.accessor))})}),r.jsx("tbody",{children:s.map(e=>t(e))})]})}};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,8341,6049,2937],()=>s(45271));module.exports=r})();