(()=>{var e={};e.id=9066,e.ids=[9066],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")},41920:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>u,originalPathname:()=>m,pages:()=>c,routeModule:()=>p,tree:()=>d}),r(28452),r(46499),r(32029),r(35866);var a=r(23191),s=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 d=["",{children:["admin-secret",{children:["attendance",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,28452)),"C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\attendance\\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}}],c=["C:\\School Management System\\Working\\V2\\src\\app\\admin-secret\\attendance\\page.tsx"],m="/admin-secret/attendance/page",u={require:r,loadChunk:()=>Promise.resolve()},p=new a.AppPageRouteModule({definition:{kind:s.x.APP_PAGE,page:"/admin-secret/attendance/page",pathname:"/admin-secret/attendance",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:d}})},82408:(e,t,r)=>{Promise.resolve().then(r.bind(r,85203))},46226:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var a=r(69029),s=r.n(a)},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 a=r(91174),s=r(23078),n=r(92481),i=a._(r(86820));function o(e){let{props:t}=(0,s.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 a=r(10326),s=r(35047);let n=({page:e,count:t})=>{let r=(0,s.useRouter)(),n=e=>{let t=new URLSearchParams(window.location.search);t.set("page",e.toString()),r.push(`${window.location.pathname}?${t}`)};return(0,a.jsxs)("div",{className:"p-4 flex items-center justify-between text-gray-500",children:[a.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"}),a.jsx("div",{className:"flex items-center gap-2 text-sm",children:Array.from({length:Math.ceil(t/10)},(t,r)=>{let s=r+1;return a.jsx("button",{className:`px-2 rounded-sm ${e===s?"bg-lamaSky":""}`,onClick:()=>{n(s)},children:s},s)})}),a.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 a=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 s=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 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,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:n="",children:i,iconNode:c,...m},u)=>(0,a.createElement)("svg",{ref:u,...d,width:t,height:t,stroke:e,strokeWidth:s?24*Number(r)/Number(t):r,className:o("lucide",n),...!i&&!l(m)&&{"aria-hidden":"true"},...m},[...c.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(i)?i:[i]])),m=(e,t)=>{let r=(0,a.forwardRef)(({className:r,...n},l)=>(0,a.createElement)(c,{ref:l,iconNode:t,className:o(`lucide-${s(i(e))}`,`lucide-${e}`,r),...n}));return r.displayName=i(e),r}},28452:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d});var a=r(19510),s=r(34549),n=r(54654),i=r(97379);let o=(0,r(27162).Z)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),l=[{header:"Date",accessor:"date"},{header:"Student",accessor:"student"},{header:"Class",accessor:"class",className:"hidden md:table-cell"},{header:"Status",accessor:"status",className:"hidden md:table-cell"}];async function d({searchParams:e}){let{page:t,...r}=e,d=t?parseInt(t):1,{data:c,count:m}=await (0,s.getAllAttendance)(d,r);return(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-4",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"bg-black border border-gray-800 rounded-lg aspect-video relative overflow-hidden group",children:[a.jsx("div",{className:"absolute inset-0 bg-gray-900 flex items-center justify-center text-gray-700",children:a.jsx(o,{size:32})}),(0,a.jsxs)("div",{className:"absolute top-2 left-2 text-[10px] text-red-500 animate-pulse font-mono",children:["REC ● CAM-0",e]}),a.jsx("div",{className:"absolute bottom-0 left-0 w-full h-1/3 bg-gradient-to-t from-black to-transparent"})]},e))}),(0,a.jsxs)("div",{className:"bg-transparent p-4 rounded-md",children:[a.jsx("h1",{className:"text-xl font-bold text-white mb-4",children:"Attendance Logs"}),a.jsx("div",{className:"dark-table",children:a.jsx(i.Z,{columns:l,renderRow:e=>(0,a.jsxs)("tr",{className:"border-b border-gray-800 text-sm hover:bg-white/5 transition-colors text-gray-300",children:[a.jsx("td",{className:"p-4",children:new Date(e.date).toLocaleDateString()}),(0,a.jsxs)("td",{className:"font-bold text-gray-200",children:[e.student.name," ",e.student.surname]}),a.jsx("td",{className:"hidden md:table-cell text-gray-400",children:e.student.class.name}),a.jsx("td",{className:`hidden md:table-cell font-bold ${e.present?"text-green-500":"text-red-500"}`,children:e.present?"PRESENT":"ABSENT"})]},e.id),data:c})}),a.jsx("div",{className:"mt-4 opacity-70 hover:opacity-100 transition-opacity",children:a.jsx(n.ZP,{page:d,count:m})})]})]})}},54654:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>o});var a=r(68570);let s=(0,a.createProxy)(String.raw`C:\School Management System\Working\V2\src\components\common\Pagination.tsx`),{__esModule:n,$$typeof:i}=s;s.default;let o=(0,a.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:()=>s});var a=r(19510);let s=({columns:e,renderRow:t,data:r})=>(0,a.jsxs)("table",{className:"w-full mt-4",children:[a.jsx("thead",{children:a.jsx("tr",{className:"text-left text-gray-500 text-sm",children:e.map(e=>a.jsx("th",{className:e.className,children:e.header},e.accessor))})}),a.jsx("tbody",{children:r.map(e=>t(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,8341,6049,2937],()=>r(41920));module.exports=a})();