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])},402303,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(/\/$/,"");function d(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 e(a){var b;let c=(a||"AAU").split(" ").filter(Boolean).slice(0,2).map(a=>a[0]).join("").toUpperCase()||"AA";return b=`
    <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120">
      <rect width="120" height="120" fill="#0f766e"/>
      <text x="50%" y="54%" dominant-baseline="middle" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="42" font-weight="700">${c}</text>
    </svg>
  `,`data:image/svg+xml;utf8,${encodeURIComponent(b)}`}function f(a){let b=String(a?.ar||a?.en||a||"").trim();return b?{ar:b,en:String(a?.en||a?.ar||a||"").trim()||b}:null}function g(a){var c;let d=String(a?.authorNameAr||"").trim(),g=String(a?.authorNameEn||d||"").trim(),h=String(a?.authorRoleAr||"هيئة التحرير").trim(),i=String(a?.authorRoleEn||h||"Editorial Team").trim(),j=(0,b.resolveMediaUrl)(a?.image),k=Array.isArray(c=a?.tags)?c.map(f).filter(Boolean):"string"==typeof c?c.split(",").map(a=>f(a)).filter(Boolean):[];return{id:String(a?.id||a?.name||""),title:{ar:String(a?.titleAr||""),en:String(a?.titleEn||a?.titleAr||"")},excerpt:{ar:String(a?.excerptAr||a?.descriptionAr||""),en:String(a?.excerptEn||a?.excerptAr||a?.descriptionEn||a?.descriptionAr||"")},content:{ar:String(a?.contentAr||""),en:String(a?.contentEn||a?.contentAr||"")},author:{name:{ar:d||"هيئة التحرير",en:g||"Editorial Team"},avatar:e(g||d||"AAU"),role:{ar:h,en:i}},category:{ar:String(a?.categoryAr||a?.category||"عام"),en:String(a?.categoryEn||a?.categoryAr||a?.category||"General")},image:j||e(String(a?.titleEn||a?.titleAr||"AAU")),publishedAt:String(a?.publishedAt||""),readTime:Number(a?.readTime||0),tags:k}}async function h(a){let b=await fetch(`${c}${a}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!b.ok)throw Error(`Blog API request failed: ${b.status}`);return b.json()}async function i(){try{let a=await h("/api/blog"),b=d(a);return(Array.isArray(b)?b:Array.isArray(b?.data)?b.data:[]).map(g)}catch{return[]}}async function j(a){try{let b=await h(`/api/blog/${encodeURIComponent(a)}`);return g(d(b))}catch{return null}}async function k(){let a=await i(),b=new Set;return a.map(a=>a.category).filter(a=>{let c=`${a.ar}::${a.en}`;return!(!a.ar&&!a.en||b.has(c))&&(b.add(c),!0)})}a.s(["getBlogById",()=>j,"getBlogCategories",()=>k,"getBlogList",()=>i])},40620,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/BlogPageContent.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/BlogPageContent.tsx <module evaluation>","default")},922892,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/BlogPageContent.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/BlogPageContent.tsx","default")},935138,a=>{"use strict";a.i(40620);var b=a.i(922892);a.n(b)},505441,a=>{"use strict";var b=a.i(907997),c=a.i(402303),d=a.i(935138);async function e(){let[a,e]=await Promise.all([(0,c.getBlogList)(),(0,c.getBlogCategories)()]);return(0,b.jsx)(d.default,{initialPosts:a,initialCategories:e})}a.s(["default",()=>e,"metadata",0,{title:"المدونة | Blog",description:"مقالات وأخبار جامعة الجيل الجديد - Al-Jeel Al-Jadeed University Blog and News"},"revalidate",0,3600])}];

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