module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},70864,a=>{a.n(a.i(233290))},102894,a=>{a.n(a.i(666188))},13718,a=>{a.n(a.i(685523))},118198,a=>{a.n(a.i(545518))},262212,a=>{a.n(a.i(866114))},365893,a=>{a.n(a.i(868852))},106432,a=>{"use strict";let b=(process.env.NEXT_PUBLIC_AAU_API_BASE_URL||process.env.AAU_API_BASE_URL||"https://edu.yemenfrappe.com").replace(/\/$/,"");function c(a){return a?.ok&&a?.data!==void 0?a.data:a?.data?.ok&&a?.data?.data!==void 0?a.data.data:a?.data??a}function d(a){let b=String(a?.status||"completed").toLowerCase();return{id:String(a?.id||a?.name||""),slug:String(a?.slug||a?.id||a?.name||""),titleAr:String(a?.titleAr||a?.title_ar||""),titleEn:String(a?.titleEn||a?.title_en||a?.titleAr||a?.title_ar||""),descAr:String(a?.descAr||a?.desc_ar||""),descEn:String(a?.descEn||a?.desc_en||a?.descAr||a?.desc_ar||""),students:Array.isArray(a?.students)?a.students:[],progress:a?.progress===void 0||a?.progress===null?void 0:Number(a.progress),year:a?.year===void 0||a?.year===null||a?.year===""?void 0:Number(a.year),status:"current"===b?"current":"completed",type:"graduation",categoryAr:String(a?.categoryAr||""),categoryEn:String(a?.categoryEn||a?.categoryAr||""),images:Array.isArray(a?.images)?a.images.filter(Boolean):[],detailsAr:String(a?.detailsAr||a?.details_ar||""),detailsEn:String(a?.detailsEn||a?.details_en||a?.detailsAr||a?.details_ar||""),startDate:String(a?.startDate||a?.start_date||""),endDate:String(a?.endDate||a?.end_date||"")}}async function e(a){try{let e=await fetch(`${b}${a}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!e.ok)return[];let f=await e.json(),g=c(f);return(Array.isArray(g)?g:Array.isArray(g?.data)?g.data:[]).map(d)}catch{return[]}}function f(){return e("/api/projects")}function g(){return e("/api/projects/current")}function h(){return e("/api/projects/completed")}async function i(a){try{let e=await fetch(`${b}/api/projects/${encodeURIComponent(a)}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!e.ok)return null;let f=await e.json();return d(c(f))}catch{return null}}async function j(){return[]}a.s(["getCompletedProjects",()=>h,"getCurrentProjects",()=>g,"getProjectBySlug",()=>i,"getProjectsList",()=>f,"getStudioProjects",()=>j])},153783,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/ProjectsStudioPageContent.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ProjectsStudioPageContent.tsx <module evaluation>","default")},257562,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/ProjectsStudioPageContent.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ProjectsStudioPageContent.tsx","default")},569804,a=>{"use strict";a.i(153783);var b=a.i(257562);a.n(b)},733,a=>{"use strict";var b=a.i(907997),c=a.i(106432),d=a.i(569804);async function e(){let a=await (0,c.getCurrentProjects)(),e=await (0,c.getCompletedProjects)(),f=await (0,c.getStudioProjects)();return(0,b.jsx)(d.default,{initialCurrentProjects:a,initialCompletedProjects:e,initialStudioProjects:f})}a.s(["default",()=>e,"dynamic",0,"force-dynamic","metadata",0,{title:"مشاريع التخرج | Graduation Projects",description:"مشاريع التخرج المبتكرة لطلاب جامعة الجيل الجديد - Al-Jeel Al-Jadeed University Graduation Projects Gallery"}])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__b5d2f52f._.js.map