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))},750321,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){let c=String(a||"").trim();if(!c)return"";if(/^https?:\/\/assets\//i.test(c)&&(c=c.replace(/^https?:\/\/assets\//i,"/assets/")),/^\/\/assets\//i.test(c)&&(c=c.replace(/^\/\/assets\//i,"/assets/")),/^(https?:)?\/\//i.test(c))return c.startsWith("//")?`https:${c}`:c;if(/^(data|blob):/i.test(c))return c;let d=c.startsWith("/")?c:`/${c}`;return d.startsWith("/assets/")||d.startsWith("/files/")||d.startsWith("/private/files/")?`${b}${d}`:d}a.s(["resolveMediaUrl",()=>c])},502331,a=>{"use strict";var b=a.i(750321);let c=(process.env.NEXT_PUBLIC_AAU_API_BASE_URL||process.env.AAU_API_BASE_URL||"https://edu.yemenfrappe.com").replace(/\/$/,"");async function d(a){let b=await fetch(`${c}${a}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!b.ok)throw Error(`Centers API request failed: ${b.status}`);return b.json()}function e(a){return a?.ok===!0?a.data:a?.data?.ok===!0?a.data.data:a?.data!==void 0?a.data:a}function f(a){return{id:String(a?.id||""),titleAr:String(a?.titleAr||""),titleEn:String(a?.titleEn||a?.titleAr||""),descAr:String(a?.descAr||""),descEn:String(a?.descEn||a?.descAr||""),services:Array.isArray(a?.services)?a.services.map(a=>({ar:String(a?.ar||a?.value||""),en:String(a?.en||a?.ar||a?.value||"")})):[],programs:Array.isArray(a?.programs)?a.programs.map(a=>({ar:String(a?.ar||a?.value||""),en:String(a?.en||a?.ar||a?.value||"")})):[],image:(0,b.resolveMediaUrl)(a?.image),location:a?.location||"",phone:a?.phone||"",email:a?.email||""}}async function g(){try{let a=await d("/api/centers"),b=e(a);return(Array.isArray(b)?b:Array.isArray(a)?a:[]).map(f)}catch{return[]}}async function h(a){try{let b=await d(`/api/centers/${encodeURIComponent(a)}`),c=e(b);return f(c)}catch{return null}}a.s(["getCenterById",()=>h,"getCentersList",()=>g])},132279,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/CentersPageContent.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/CentersPageContent.tsx <module evaluation>","default")},201021,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/CentersPageContent.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/CentersPageContent.tsx","default")},451452,a=>{"use strict";a.i(132279);var b=a.i(201021);a.n(b)},333178,a=>{"use strict";var b=a.i(907997),c=a.i(451452),d=a.i(502331);async function e(){let a=await (0,d.getCentersList)();return(0,b.jsx)(c.default,{initialCenters:a})}a.s(["default",()=>e,"dynamic",0,"force-dynamic","metadata",0,{title:"مراكز الجامعة | University Centers",description:"المراكز البحثية والتدريبية في جامعة الجيل الجديد - Al-Jeel Al-Jadeed University Research and Training Centers"}])}];

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