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])},208005,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(/\/$/,""),d=/^[a-z0-9-]+$/i;async function e(a){let b=await fetch(`${c}${a}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!b.ok)throw Error(`News API request failed: ${b.status}`);return b.json()}function f(a){let c,e=String(a?.slug||a?.id||"");return{id:String(a?.id||""),slug:(c=String(e||"").trim())?d.test(c)?c:`n-${Buffer.from(c,"utf8").toString("base64url")}`:"",titleAr:String(a?.titleAr||""),titleEn:String(a?.titleEn||a?.titleAr||""),descriptionAr:String(a?.descriptionAr||""),descriptionEn:String(a?.descriptionEn||a?.descriptionAr||""),contentAr:String(a?.contentAr||""),contentEn:String(a?.contentEn||a?.contentAr||""),image:(0,b.resolveMediaUrl)(a?.image),date:String(a?.date||""),views:Number(a?.views||0),tags:Array.isArray(a?.tags)?a.tags:[]}}function g(a){return a?.ok&&a?.data!==void 0?a.data:a?.message?.ok&&a?.message?.data!==void 0?a.message.data:a?.data?.ok&&a?.data?.data!==void 0?a.data.data:a?.data!==void 0?a.data:a}async function h(){try{let a=await e("/api/aau/news?limit=100"),b=g(a);return(Array.isArray(b?.items)?b.items:Array.isArray(b)?b:[]).map(f)}catch{return[]}}async function i(a){try{let b=function(a){let b=String(a||"").trim();if(!b.startsWith("n-"))return b;try{return Buffer.from(b.slice(2),"base64url").toString("utf8")}catch{return b}}(a),c=await e(`/api/aau/news/${encodeURIComponent(b)}`),d=g(c);return f(d)}catch{return null}}a.s(["getNewsBySlug",()=>i,"getNewsList",()=>h])},230815,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/NewsPageContent.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/NewsPageContent.tsx <module evaluation>","default")},329298,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/NewsPageContent.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/NewsPageContent.tsx","default")},597405,a=>{"use strict";a.i(230815);var b=a.i(329298);a.n(b)},887003,a=>{"use strict";var b=a.i(907997),c=a.i(208005),d=a.i(597405);async function e(){let a=await (0,c.getNewsList)();return(0,b.jsx)(d.default,{initialNews:a})}a.s(["default",()=>e,"dynamic",0,"force-dynamic","metadata",0,{title:"الأخبار | News",description:"آخر أخبار وإعلانات جامعة الجيل الجديد - Latest News and Announcements from Al-Jeel Al-Jadeed University"},"revalidate",0,0])}];

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